【函數圖像變換:平移、反射及伸縮】Graph Transformations: Translation, Reflection and Stretching of y = f(x)
SketchMath 數學團隊 SketchMath Maths Team | 更新 Updated 2026-10-20
y = f(x) + k 向上移 k;y = f(x − h) 向右移 h;y = −f(x) 沿 x 軸反射;y = f(−x) 沿 y 軸反射;y = a·f(x) 垂直伸展 a 倍;y = f(bx) 水平壓縮為 1/b。y = f(x) + k shifts up by k; y = f(x − h) shifts right by h; y = −f(x) reflects in the x-axis; y = f(−x) reflects in the y-axis; y = a·f(x) stretches vertically by a; y = f(bx) squeezes horizontally by 1/b.
拖動 h:紅色圖像 y = (x − h)² + 3 是灰色圖像 y = x² 向右移 h 個單位、向上移 3 個單位。h = 2 即例題 1 的頂點 (2, 3)。 Drag h: the red graph y = (x − h)² + 3 is the grey graph y = x² moved h units to the right and 3 units up. h = 2 gives the vertex (2, 3) of Example 1. 自己試試 → Try it yourself →
圖像變換規則 Transformation Rules
上下平移Translation up / downy = f(x) + k
左右平移Translation right / lefty = f(x − h) (right if h > 0)
平移:圖像上下左右移動 Translation: Moving the Graph Up, Down, Left or Right
y = f(x) + k 把圖像向上移 k 個單位(k 為負則向下)。y = f(x − h) 把圖像向右移 h 個單位。每一點都移動相同的距離,形狀不變。
y = f(x) + k moves the graph up by k (down if k is negative). y = f(x − h) moves it right by h. Every point moves the same way, so the shape does not change.
拖動 k:灰色的 y = x² 變成 y = x² + k 上下移動,頂點由 (0, 0) 移到 (0, k)。 Drag k: the grey graph y = x² moves up and down as y = x² + k, and its vertex goes from (0, 0) to (0, k).
y = a·f(x) 把圖像垂直伸展 a 倍。y = f(bx) 把圖像水平壓縮為 1/b(與很多同學的直覺相反)。
y = a·f(x) stretches the graph vertically by the factor a. y = f(bx) squeezes it horizontally by the factor 1/b (the opposite of what many students expect).
拖動 s:紅色的 y = s sin x 變得更高,綠色的 y = sin(sx) 則變得更窄。 Drag s: the red graph y = s sin x gets taller, while the green graph y = sin(sx) gets narrower.
A transformation of a function means adding different elements (adding, subtracting, multiplying, dividing) in different places of f(x) to get a new graph g(x). Comparing the new and old graphs tells us more, for example how the range and domain change. Three kinds of transformation matter: translating, stretching / compressing and reflecting.
由於二次方程為一個對稱的拋物線,因此圖像將於對稱軸 x = 1.5 左右向上延伸。若然唔肯定圖像應該點畫,不妨試下代負數、0、正數等唔同嘅數值入去,並且數值唔好相差咁近,咁就可以得出一個更完整嘅圖像!
DSE 常見函數類型:1. 直線方程、2. 二次方程、3. 指數函數、4. 對數函數 (log)、5. sin x、6. cos x、7. tan x。
Before learning to transform graphs, revise how to draw one. Example: draw y = x² − 3x + 2.
Make a table of x and y, with 4 to 5 values:
x
0
1
1.5
2
5
y
2
0
−0.25
0
12
Plot the points (0, 2), (1, 0), (1.5, −0.25), (2, 0), (5, 12) and join them with a smooth curve.
A quadratic is a symmetric parabola, so the graph goes up on both sides of the axis of symmetry x = 1.5. If you are not sure how the graph looks, try negative, zero and positive values that are not too close together.
The graphs that appear most often in HKDSE: 1. straight line, 2. quadratic, 3. exponential, 4. logarithmic, 5. sin x, 6. cos x, 7. tan x.
函數上下移動 Translating the Function Graph Upwards/Downwards Translating Up and Down
向上移動:f(x) + k;向下移動:f(x) − k。注意:k 喺 f(x) 之外。
設例子 y = x² − 3x + 2,即 f(x) = x² − 3x + 2,如果我哋後面加入一個常數 k,就會變成 f(x) + k = x² − 3x + 2 + k。由於原先方程入面嘅常數項「2」係 y 軸截距,因此新嘅函數圖像 y 軸截距會由「2」變成「2 + k」,亦即代表新函數圖像比舊函數圖像向上垂直移動了 k 個單位。減 k 亦同樣道理,圖像向下垂直移動了 k 個單位。
Move up: f(x) + k. Move down: f(x) − k. Note that k is outside f(x).
Example:y = x² − 3x + 2, so f(x) = x² − 3x + 2. Adding a constant k gives f(x) + k = x² − 3x + 2 + k. The constant term 2 is the y-intercept, so the y-intercept changes from 2 to 2 + k: the new graph is the old graph moved up k units. Subtracting k moves it down k units.
設例子 y = 2x + 6,假設 y = 0,我哋可以知道 x = −3,亦即 x 截距為 −3。對於新函數 f(x + k),x 截距由 x + k = −3 得出,即 x = −3 − k,新值比舊值多咗個「−k」,因此向左移動 k 格;同樣道理,f(x − k) 的 x 最後數值會多了「+ k」,亦即向右移動 k 格。
Move left: f(x + k). Move right: f(x − k). Note that k is inside f(x), and remember: plus goes left, minus goes right.
Example: for y = 2x + 6, y = 0 gives x = −3. For the new function f(x + k) the x-intercept is found from x + k = −3, so x = −3 − k: the new value has an extra "−k", so the graph moves left k units. In the same way, f(x − k) gives an extra "+k" and moves the graph right k units.
設例子 f(x) = x² − 3x + 2,頂點 x = 1.5,x 截距係 1 及 2。如果變成 f(x ÷ 2),本來【x = ?】這種答案現在會變成【x ÷ 2 = ?】,所以將原有的 x 值乘 2:頂點移到 x = 3,截距移到 2 及 4。如果變成 f(2x),本來【x = ?】現在變成【2x = ?】,所以將原有的 x 值除以 2:頂點移到 x = 0.75,截距移到 0.5 及 1。y 值不變。於是圖像以左右的方向(沿 x 軸)壓扁或拉長。
Stretch: f(x ÷ k). Compress: f(k · x). Note that k is inside f(x), and that dividing by k stretches while multiplying by k compresses.
Example:f(x) = x² − 3x + 2 has its vertex at x = 1.5 and x-intercepts at 1 and 2. For f(x ÷ 2) every old answer "x = ?" now becomes "x ÷ 2 = ?", so each old x-value is multiplied by 2: the vertex moves to x = 3 and the intercepts to 2 and 4. For f(2x) every old answer becomes "2x = ?", so each old x-value is divided by 2: the vertex moves to x = 0.75 and the intercepts to 0.5 and 1. The y-values do not change. The graph is stretched or squashed in the left-right direction.
把圖像 y = f(x) 沿 x 軸或 y 軸作反射 Reflecting the Graph in x-axis/y-axis Reflecting
−f(x):上下反射(沿 x 軸);f(−x):左右反射(沿 y 軸)。
「反射」係一個比較簡單嘅概念,可以咁樣去記:設 y = x + 1,依家將負號塞喺出面,即係最後會導致 y = −(x + 1),亦即係最終 y 嘅答案會乘咗個負,y 座標上下顛倒;於是乎得知 −f(x) 係上下反射,f(−x) 就自然係左右反射啦!例子:y = −(x² − 3x + 2) 的圖像是 y = x² − 3x + 2 沿 x 軸的鏡像;y = 2(−x) + 4 的圖像是 y = 2x + 4 沿 y 軸的鏡像。
−f(x) reflects the graph up-down (in the x-axis); f(−x) reflects it left-right (in the y-axis).
A way to remember it: for y = x + 1, put the minus sign outside to get y = −(x + 1), so every y-answer is multiplied by −1 and the y-coordinates turn upside down. Hence −f(x) flips up-down, and f(−x) naturally flips left-right. Examples: the graph of y = −(x² − 3x + 2) is the mirror image of y = x² − 3x + 2 in the x-axis; the graph of y = 2(−x) + 4 is the mirror image of y = 2x + 4 in the y-axis.
⚠️ 水平平移的符號是相反的 The sign of the horizontal shift is backwardsf(x − 3) 是向右移 3 個單位,f(x + 3) 是向左移。想想哪個 x 會得出原來的值。f(x − 3) moves the graph 3 units to the right, and f(x + 3) to the left. Think of which x gives the old value.
⚠️ 水平變換是作用在 x 上 Horizontal changes act on x, not on the whole functionf(2x) 把每個點的 x 坐標減半(壓縮為 1/2),與很多同學的直覺相反。f(2x) halves every x-coordinate (a squeeze by 1/2), the opposite of what many students expect.
溫習方法:點擊以下任何題目,即時在坐標網格載入並核對計算步驟。How to study: click any question to load it on the coordinate grid and check your steps.
(組合變換 Combined)y = f(x) 的最低點是 (1, −2),寫出 y = 3f(x − 2) + 1 的最低點。The graph of y = f(x) has a minimum point at (1, −2). Write the minimum point of y = 3f(x − 2) + 1.
(描述變換 Describe)描述 y = x² 變成 y = x² − 6x + 11 的變換。Describe the transformation from y = x² to y = x² − 6x + 11.
(畫圖 Sketch)以 f(x) = 2^x,畫 y = f(x) 及 y = f(−x) + 2。Sketch y = f(x) and y = f(−x) + 2 for f(x) = 2^x.