【配方法:頂點式及解一元二次方程】Completing the Square: Vertex Form and Solving Quadratics

SketchMath 數學團隊 SketchMath Maths Team | 更新 Updated 2026-10-20

配方法把 x² + bx + c 化為 (x + b/2)² + c − (b/2)²。對於 y = a(x − h)² + k,頂點是 (h, k),對稱軸是 x = h,而 k 是最小值(a > 0)或最大值(a < 0)。Completing the square rewrites x² + bx + c as (x + b/2)² + c − (b/2)². For y = a(x − h)² + k the vertex is (h, k), the axis is x = h, and k is the minimum (a > 0) or maximum (a < 0).

用 AI 逐步解配方法題目 Solve it with AI練習 27 條 DSE 模擬題 Practise 27 DSE-style questions
y = (x − 3)² + k 的頂點永遠在 x = 3 上。拖動 k:k = 0 時剛好與 x 軸相切,k 為負數時有兩個根。k = −4 即例題 1。 The graph of y = (x − 3)² + k keeps its vertex above x = 3. Drag k: it touches the x-axis when k = 0 and has two roots when k is negative. k = −4 is Example 1. 自己試試 → Try it yourself →

配方法公式 Completing the Square Formulas

首項係數為 1Monic casex² + bx = (x + b/2)² − (b/2)²
一般情況General caseax² + bx + c = a(x + b/2a)² + c − b²/4a
y = a(x − h)² + k 的頂點Vertex of y = a(x − h)² + k(h, k)
解方程Solving(x − h)² = −k/a gives x = h ± √(−k/a)
↑ 返回頁頂 Back to top

配方法 Completing the square

去找出二次方程的最大值和最小值,我們會使用配方法,同時配方法嘅運算概念亦可以幫我哋解答到點解會有兩根之和積嘅公式。二次方程嘅一般式為 ax² + bx + c,而配方法嘅方程式則為 y = a(x − h)² + k。要將一般式轉變為配方法方程,我哋可以基於一個原則,就係想將一般式方程變成 (a + b)² 或 (a − b)² 嘅樣式,就比如大家喺恆等式嗰課學過:(a + b)² ≡ a² + 2ab + b²、(a − b)² ≡ a² − 2ab + b²。

例子:y = 4x² + 16x + 5 = 4(x² + 4x) + 5 = 4(x + 2)² − 16 + 5 = 4(x + 2)² − 11。

To find the maximum or minimum of a quadratic we use completing the square. The idea also explains the results for the sum and product of roots. The general form of a quadratic is ax² + bx + c, and the completed-square form is y = a(x − h)² + k. To change from one to the other, turn the expression into the shape of (a + b)² or (a − b)², from the identities (a + b)² ≡ a² + 2ab + b² and (a − b)² ≡ a² − 2ab + b².

Example: y = 4x² + 16x + 5 = 4(x² + 4x) + 5 = 4(x + 2)² − 16 + 5 = 4(x + 2)² − 11.

↑ 返回頁頂 Back to top

配方法圖解法 Graph from the Completed-square Form

理解二次函數嘅另一種方法是通過繪製圖像。對於 y = a(x − h)² + k(a、h、k 為常數實數),我哋可以直接讀出:

  • 開口方向:方程常數 a 前面的符號,如 + 則開口向上(有最低點),如 − 則開口向下(有最高點)。
  • 頂點 Vertex:拋物線的最低點或最高點,座標 (h, k)。
  • 對稱軸 Axis of symmetry:通過頂點、垂直於 x 軸的直線 x = h,是拋物線的鏡像反射線。
  • x 軸截點(root 根):亦即是方程的解,基於拋物線是否接觸到 x 軸,可以有 2 個解、1 個解或是無解。
  • y 軸截點:所有拋物線必定會穿過 y 軸一次,截點是 y = ah² + k(令 x = 0)。

Another way to understand a quadratic is to draw its graph. For y = a(x − h)² + k with real constants a, h, k, you read off:

  • Direction of opening: a positive a opens upwards (a lowest point), a negative a opens downwards (a highest point).
  • Vertex: the lowest or highest point of the parabola, at (h, k).
  • Axis of symmetry: the vertical line through the vertex, x = h, the mirror line of the parabola.
  • x-intercepts (roots): the solutions of the equation, where the graph meets the x-axis: two, one or none.
  • y-intercept: every parabola crosses the y-axis exactly once, at y = ah² + k (put x = 0).
↑ 返回頁頂 Back to top

配方法與兩根之和積 Sum/Product of roots Completing the Square and the Sum and Product of Roots

設一條二次方程 ax² + bx + c = 0,其兩個根為 α 及 β,則 α + β = −b/a,αβ = c/a。有時候題目會要求考生喺計算完 α + β 及 αβ 之後再繼續延伸方程,要理解常用結果點樣得嚟,我哋可以利用配方法。

一)試展開 α² + β²,使其成為 α + β 或 αβ 的項式。當我哋學咗配方法之後,就會知道 α² + β² 中間只要加返個 2αβ,就係一條好完美嘅恆等式 (α + β)²。然而由於我哋唔可以粒亂加啲數落條式到,加完要減返先得:α² + β² = α² + β² + 2αβ − 2αβ = (α + β)² − 2αβ。

二)試展開 |α − β|,使其成為 α + β 或 αβ 的項式。呢一題相對會複雜少少,|α − β| 唔可以直接展開,唯一方法就係變成恆等式 (α − β)²,但因為唔可以就咁加個 2 次方,所以出面要加返個開方 balance 返:|α − β| = √[(α − β)²] = √(α² − 2αβ + β²) = √(α² + β² − 2αβ)。由例(一),α² + β² = (α + β)² − 2αβ,所以 |α − β| = √[(α + β)² − 4αβ]。仔細一睇,所有項已經變成 α + β 或 αβ,咁就完成啦!

For a quadratic ax² + bx + c = 0 with roots α and β: α + β = −b/a and αβ = c/a. Sometimes you must go on from α + β and αβ to some other expression, and completing the square explains the usual results.

1. Expand α² + β² in terms of α + β and αβ. Adding 2αβ in the middle makes a perfect square, and what you add you must subtract again: α² + β² = α² + β² + 2αβ − 2αβ = (α + β)² − 2αβ.

2. Expand |α − β|. It cannot be expanded directly, so square it and take the root back: |α − β| = √[(α − β)²] = √(α² − 2αβ + β²) = √(α² + β² − 2αβ). By example 1, α² + β² = (α + β)² − 2αβ, so |α − β| = √[(α + β)² − 4αβ]. Now every term is α + β or αβ.

↑ 返回頁頂 Back to top

配方法例題詳解 Worked Examples

例題 1 Example 1:頂點式及最小值 Vertex form and minimum value

把 x² − 6x + 5 寫成 (x − h)² + k 的形式,並寫出最小值。Write x² − 6x + 5 in the form (x − h)² + k, and state its minimum value.

  1. −6 的一半是 −3:x² − 6x + 5 = (x − 3)² − 9 + 5Half of −6 is −3: x² − 6x + 5 = (x − 3)² − 9 + 5
  2. = (x − 3)² − 4

答案: Answer: (x − 3)² − 4;最小值 −4(當 x = 3)(x − 3)² − 4; minimum value −4 at x = 3

例題 2 Example 2:首項係數不是 1 Coefficient of x² is not 1

把 2x² + 8x − 3 配方,並求頂點。Complete the square for 2x² + 8x − 3 and find the vertex.

  1. 2(x² + 4x) − 3
  2. 2[(x + 2)² − 4] − 3 = 2(x + 2)² − 8 − 3

答案: Answer: 2(x + 2)² − 11;頂點 (−2, −11)2(x + 2)² − 11; vertex (−2, −11)

例題 3 Example 3:用配方法解方程 Solve by completing the square

解 x² + 4x − 1 = 0。Solve x² + 4x − 1 = 0.

  1. (x + 2)² − 4 − 1 = 0, so (x + 2)² = 5
  2. x + 2 = ± √5

答案: Answer: x = −2 ± √5

↑ 返回頁頂 Back to top

💡 應試陷阱與秘訣 Exam Traps & Secrets

⚠️ 先提取首項係數 Factor out a first對 2x² + 8x − 3,只把 2 從含 x 的項提出。在括號內加減 (b/2)²,之後把減去的部分乘以 2。For 2x² + 8x − 3 take the 2 out of the x terms only. Add and subtract (b/2)² inside the bracket, then multiply the subtracted part by 2.
⚠️ h 的正負 Sign of h(x + 2)² 代表 h = −2,頂點的 x 坐標是 −2。(x + 2)² means h = −2, so the vertex is at x = −2.
↑ 返回頁頂 Back to top

✏️ 自我測試:互動練習 Self-Test: Interactive Practice

溫習方法:點擊以下任何題目,即時在坐標網格載入並核對計算步驟。How to study: click any question to load it on the coordinate grid and check your steps.

(頂點式 Vertex form)把 y = x² + 10x + 7 寫成 (x + p)² + q,並寫出頂點。Express y = x² + 10x + 7 in the form (x + p)² + q and state the vertex.
(最大值 Maximum value)求 5 + 6x − x² 的最大值。Find the maximum value of 5 + 6x − x².
(解方程 Solve)用配方法解 3x² − 12x + 2 = 0。Solve 3x² − 12x + 2 = 0 by completing the square.
↑ 返回頁頂 Back to top

配方法練習題(DSE 模擬題) Exercises: DSE-Style Practice

SketchMath 題庫內的 DSE 風格練習,選擇題及長題目均附解答。 DSE-style practice from the SketchMath question bank, with solutions for every MC and long question.

一元二次方程及複數 · 中四
20 條選擇題 20 MC · 7 條長題目 7 long questions

常見問題 Frequently Asked Questions

↑ 返回頁頂 Back to top

相關主題 Related Topics

因式分解 Factorization聯立方程 Simultaneous Equations一元二次方程 Quadratic Equations in One Unknown函數與圖像 Functions and GraphsHKDSE 數學全部課題 HKDSE Math: all topicsDSE 數學公式表(全課題) HKDSE Maths Formula SheetDSE 數學練習(按年級) DSE Maths Practice by Form
配方法 DSE 練習題 Try a DSE Practice Question