【一元二次方程 Quadratic Equation:根之和、根之積、配方法、判別式】Quadratic Equations: Roots, Discriminant, Sum and Product of Roots, Completing the Square

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

一元二次方程 Quadratic Equation 係數學 DSE 必修課題,通常會透過計算或圖像方式去求證方程嘅解、座標、兩根之和與積等。SketchMath 為大家介紹所有公式定理及應用,並附上相關題目示範!A quadratic equation is ax² + bx + c = 0. Solve it by common factor, grouping, identities, the cross method or the quadratic formula x = [−b ± √(b² − 4ac)] / 2a. The discriminant b² − 4ac tells you how many real roots there are, and the roots satisfy α + β = −b/a and αβ = c/a.

用 AI 逐步解一元二次方程題目 Solve it with AI練習 27 條 DSE 模擬題 Practise 27 DSE-style questions

原創練習、提示、詳解與免費 PDF / Original exercises, hints, solutions & free PDF →

拖動係數,看拋物線及其根移動。 Drag the coefficients and watch the parabola and its roots move. 自己試試 → Try it yourself →

一元二次方程公式 Quadratic Formulas

二次公式Quadratic formulax = [−b ± √(b² − 4ac)] / 2a
判別式 ΔDiscriminant ΔΔ = b² − 4ac:> 0 兩個實根,= 0 一個重根,< 0 沒有實根Δ = b² − 4ac: > 0 two roots, = 0 one repeated root, < 0 no real root
兩根之和及積Sum and product of rootsα + β = −b/a,αβ = c/aα + β = −b/a, αβ = c/a
頂點Vertexx 座標 −b/2ax-coordinate −b/2a
配方法Completing the squarey = a(x − h)² + k,頂點 (h, k)y = a(x − h)² + k, vertex (h, k)
↑ 返回頁頂 Back to top

解一元二次方程 Quadratic Equation Solver Solving Quadratic Equations

一元二次方程喺數字上嘅表現方式為:ax² + bx + c = 0,當中 a、b、c 為常數,x 則為未知數。想得到一元二次方程嘅解,我哋可以用以下方法去處理:

  1. 抽公因式 Taking Common Factor Method
  2. 拼項法 Grouping Terms Method
  3. 恆等式 Identities
  4. 十字相乘法 Cross Method
  5. 二次公式 Quadratic Formula

相信大家都有見過有啲解二次方程嘅問題會要求大家用根號表示,如果同學直接將常數撳入去計數機,會發現出到嚟係一抽小數點後數字,根本用唔到嚟做答案。呢個時候,就要先理解計數機裡面其實係一條「二次公式」:x = [−b ± √(b² − 4ac)] / 2a。其中,± 表示取兩個值,一個加號,一個減號,分別代表兩個解。√ 表示平方根,計算次序為先計算 b² − 4ac 將答案開根,然後 −b 加/減去答案,再將答案除 2a,以得出最終答案。

A quadratic equation is written ax² + bx + c = 0, where a, b, c are constants and x is the unknown. To get its solutions you can use:

  1. Taking common factor
  2. Grouping terms
  3. Identities
  4. Cross method
  5. Quadratic formula

If a question asks for the answer in surd form, keying the constants into the calculator gives a long decimal that you cannot use. The calculator is really running the quadratic formula: for ax² + bx + c = 0, x = [−b ± √(b² − 4ac)] / 2a. The ± means one root with a plus and one with a minus. Work out b² − 4ac first and take its square root, then add or subtract it from −b, and divide by 2a.

↑ 返回頁頂 Back to top

一元二次方程判別式 Discriminant (Δ Delta) Discriminant Δ (Delta)

喺計算二次公式嘅時候,我哋會發現 b² − 4ac 影響住最終答案嘅數目,例如:

  • 大於零,即 b² − 4ac > 0,則最終有兩個不相等的實數解
  • 等於零,即 b² − 4ac = 0,則最終有一個實數解,稱為重根
  • 小於零,即 b² − 4ac < 0,則最終沒有實數解(因負數不能被開方)

因此 b² − 4ac 又被稱為判別式,用於判斷方程有幾多個實根。當然,亦可以透過圖解法去得出方程唔同嘅數值。

In the quadratic formula, b² − 4ac decides how many answers there are:

  • b² − 4ac > 0: two unequal real roots
  • b² − 4ac = 0: one real root, called a repeated root
  • b² − 4ac < 0: no real roots (a negative number has no square root)

So b² − 4ac is called the discriminant. You can also read the roots from the graph.

拖動 y = x² − 4x + c 中的 c:判別式 Δ = 16 − 4c 決定曲線與 x 軸相交兩點、相切一點,還是沒有交點。 Drag c in y = x² − 4x + c: Δ = 16 − 4c decides whether the curve cuts the x-axis twice, touches it once, or misses it.
↑ 返回頁頂 Back to top

一元二次方程圖解法 Solving a Quadratic Equation by Graph

解二次方程的另一種方法是通過繪製二次函數的圖像來觀察方程的解。繪畫二次方程圖像時,我哋需要先透過方程嘅常數去搵出「開口方向」、「頂點 Vertex」、「對稱軸 Axis of symmetry」、「x 軸截點 x-intercept(root 根)」及「y 軸截點 y-intercept」。設方程 ax² + bx + c = 0,其中 a、b、c 是為常數實數。

  • 開口方向:拋物線的開口分為向上或向下,向上的話會有最低點,向下會有最高點。判別開口方向:方程常數 a 前面的符號,如 + 則開口向上,如 − 則開口向下。
  • 頂點 Vertex:拋物線的最低點或最高點。頂點 x 座標:−b/2a 或將兩個根相加除二;頂點 y 座標:把 −b/2a 代入方程的未知數 x 裡計算。
  • 對稱軸:於頂點上下延伸而成且垂直於 x 軸的線,是拋物線的鏡像反射線,亦即是頂點的 x 座標。表達方式:x = 頂點的 x 座標(例:x = 2)。
  • x 軸截點(root 根):亦即是方程的解,基於拋物線是否接觸到 x 軸,可以有 2 個解、1 個解或是無解。
  • y 軸截點:所有拋物線必定會穿過 y 軸一次,可以是正數、負數或等於 0。y 軸截點 = 方程的常數 c(需要連前方的符號)。

Another way to solve a quadratic equation is to draw the graph of the quadratic function and read the solutions off it. To draw it, first find the direction of opening, the vertex, the axis of symmetry, the x-intercepts (the roots) and the y-intercept, for ax² + bx + c = 0 with constant a, b, c.

  • Direction of opening: a positive a opens upwards (there is a lowest point), a negative a opens downwards (there is a highest point).
  • Vertex: the x-coordinate is −b/2a, or the average of the two roots; put it back into the equation to get the y-coordinate.
  • Axis of symmetry: the vertical line through the vertex, x = the x-coordinate of the vertex (e.g. x = 2).
  • x-intercepts (roots): the solutions of the equation; the parabola may touch the x-axis twice, once, or not at all.
  • y-intercept: every parabola crosses the y-axis once, at the constant term c (with its sign).
拖動 b:頂點在 x = −b/2,對稱軸通過頂點,y 截距永遠是 c = −3。 Drag b: the vertex is at x = −b/2, the axis of symmetry passes through it, and the y-intercept stays at c = −3.
↑ 返回頁頂 Back to top

由已知根建立一元二次方程 Forming Quadratic Equations with Given Roots Forming a Quadratic Equation with Given Roots

由圖可得知以下信息:開口方向:上(即常數 a 前面是 +);頂點 x 坐標:1.5(1 + 2 除二);對稱軸:x = 1.5;x 軸截點:1 及 2(2 個實根);y 軸截點:2。因此可以寫出方程:

(x − 1)(x − 2) = 0
x² − 2x − x + 2 = 0
x² − 3x + 2 = 0

Suppose a graph opens upwards (a is positive), has its vertex at x = 1.5 (the average of 1 and 2), the axis of symmetry x = 1.5, x-intercepts 1 and 2 (two real roots) and y-intercept 2. Then the equation is:

(x − 1)(x − 2) = 0
x² − 2x − x + 2 = 0
x² − 3x + 2 = 0

拖動第二個根 p:方程 (x − 1)(x − p) = 0 展開為 x² − (1 + p)x + p = 0。 Drag the second root p: the equation (x − 1)(x − p) = 0 expands to x² − (1 + p)x + p = 0.
↑ 返回頁頂 Back to top

兩根之和 兩根之積 Sum/Product of roots Sum and Product of Roots

設一條二次方程的兩個根為 α 及 β,即可知方程應為:

(x − α)(x − β) = 0
x² − xβ − xα + αβ = 0
x² − x(α + β) + αβ = 0

以上方程分別對應一般式 ax² + bx + c = 0,當中 a = 1,b = −(α + β),c = αβ。由此可知:α + β = −b/a,αβ = c/a。

【範例】若一個二次方程式之二根為 1、6,求此二次方程式。方法一:兩根之和 = 1 + 6 = 7,兩根之積 = 1 × 6 = 6,∴ 此二次方程式為 x² − (α + β)x + αβ = 0,即 x² − 7x + 6 = 0。方法二:(x − 1)(x − 6) = 0,得 x² − 7x + 6 = 0。

【範例】設 α、β 為二次方程式 x² + 3x − 5 = 0 的兩根,求 α + β、αβ 之値。解:α + β = −b/a = −3/1 = −3,αβ = c/a = −5/1 = −5。

Let the two roots of a quadratic equation be α and β. Then the equation is:

(x − α)(x − β) = 0
x² − xβ − xα + αβ = 0
x² − x(α + β) + αβ = 0

Comparing with the general form ax² + bx + c = 0: a = 1, b = −(α + β), c = αβ. So α + β = −b/a and αβ = c/a.

Example: a quadratic has roots 1 and 6. Sum = 1 + 6 = 7, product = 1 × 6 = 6. The equation is x² − (α + β)x + αβ = 0, i.e. x² − 7x + 6 = 0. Or: (x − 1)(x − 6) = 0 gives x² − 7x + 6 = 0.

Example: α and β are the roots of x² + 3x − 5 = 0. Find α + β and αβ. α + β = −b/a = −3/1 = −3, αβ = c/a = −5/1 = −5.

拖動根 α:兩根之和 α + β 及兩根之積 αβ 永遠等於 −b/a 及 c/a。 Drag the root α: the sum α + β and the product αβ equal −b/a and c/a every time.
↑ 返回頁頂 Back to top

應用 兩根之和 兩根之積 Application of Sum/Product of roots Applications of the Sum and Product of Roots

除咗上面嘅基本題目,有時候題目會要求考生喺計算完 α + β 及 αβ 之後再繼續延伸方程,呢個時候就需要背好以下嘅常用方程:

  • α² + β² = (α + β)² − 2αβ
  • (α − β)² = (α + β)² − 4αβ
  • 1/α + 1/β = (α + β)/αβ
  • α³ + β³ = (α + β)³ − 3αβ(α + β)

要理解以上方程點樣得嚟,首先要學識配方法!

Besides the basic questions, you may be asked to go on from α + β and αβ to some other expression. For that, learn these common results:

  • α² + β² = (α + β)² − 2αβ
  • (α − β)² = (α + β)² − 4αβ
  • 1/α + 1/β = (α + β)/αβ
  • α³ + β³ = (α + β)³ − 3αβ(α + β)

To see where they come from, first learn completing the square.

↑ 返回頁頂 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。

對於配方法 y = a(x − h)² + k:a 為正數時開口向上,亦即有最小值;a 為負數時開口向下,亦即有最大值。最大值或最小值的座標為 (h, k)。

To find the maximum or minimum of a quadratic, use completing the square. The idea behind it also explains the list of results above. The general form 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.

For y = a(x − h)² + k: a positive a opens upwards, so there is a minimum; a negative a opens downwards, so there is a maximum. The maximum or minimum point is (h, k).

頂點為配方法最小值的拋物線 A parabola with its minimum at the completed-square vertex
y = 4x² + 16x + 5 = 4(x + 2)² − 11:無論 x 是多少,y 都不會低於頂點的 −11。 y = 4x² + 16x + 5 = 4(x + 2)² − 11: whichever x you choose, y never goes below the vertex value −11.
↑ 返回頁頂 Back to top

一元二次方程例題詳解 Worked Examples

例題 1 Example 1:用二次公式解方程 Solving with the quadratic formula

解 x² − 4x − 1 = 0,答案以根號表示。Solve x² − 4x − 1 = 0, leaving the answer in surd form.

  1. b² − 4ac = 16 + 4 = 20
  2. x = (4 ± √20)/2 = 2 ± √5

答案: Answer: x = 2 + √5 或 x = 2 − √5。x = 2 + √5 or x = 2 − √5.

例題 2 Example 2:運用兩根之和及積 Using the sum and product of roots

α、β 是 x² + 3x − 5 = 0 的兩根。求 α² + β²。α and β are the roots of x² + 3x − 5 = 0. Find α² + β².

  1. α + β = −3, αβ = −5
  2. α² + β² = (−3)² − 2(−5) = 9 + 10 = 19

答案: Answer: 19。19.

↑ 返回頁頂 Back to top

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

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

(判別式 Discriminant)求 k 的範圍,使 x² + kx + 9 = 0 有兩個不相等的實根。Find the range of k so that x² + kx + 9 = 0 has two distinct real roots.
(配方法 Completing the square)把 y = 2x² − 8x + 3 寫成 a(x − h)² + k 的形式。Write y = 2x² − 8x + 3 in the form a(x − h)² + k.
↑ 返回頁頂 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

更多關於多項式 More about Polynomials軌跡 Locus函數與圖像 Functions and GraphsHKDSE 數學全部課題 HKDSE Math: all topicsDSE 數學公式表(全課題) HKDSE Maths Formula SheetDSE 數學練習(按年級) DSE Maths Practice by Form
一元二次方程 DSE 練習題 Try a DSE Practice Question