【配方法:頂點式及解一元二次方程】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).
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)
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².
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 αβ.
⚠️ 先提取首項係數 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.