Algebra • Step-by-Step

Solve x² - 5x + 6 = 0 with Steps

Solve x² - 5x + 6 = 0 step by step using factoring and the quadratic formula. Find the roots x = 2 and x = 3 with full working.

Problem Statement
x2−5x+6=0x^2 - 5x + 6 = 0
Final Result
x1=2,x2=3x_1 = 2, \quad x_2 = 3

Formula Required: Quadratic Formula & Factoring

Identify a = 1, b = -5, c = 6. Find two numbers that multiply to 6 and add to -5 (-2 and -3).

x=−b±b2−4ac2aor(x−p)(x−q)=0x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \quad \text{or} \quad (x - p)(x - q) = 0

Step-by-Step Solution

6 Steps
1

Write the equation in standard quadratic form $ax^2 + bx + c = 0$.

x2−5x+6=0x^2 - 5x + 6 = 0
2

Find two numbers that multiply to $c = 6$ and add up to $b = -5$.

(−2)×(−3)=6,(−2)+(−3)=−5(-2) \times (-3) = 6, \quad (-2) + (-3) = -5
3

Write the quadratic expression in factored form.

(x−2)(x−3)=0(x - 2)(x - 3) = 0
4

Set each factor equal to zero and solve for $x$.

x−2=0  ⟹  x1=2orx−3=0  ⟹  x2=3x - 2 = 0 \implies x_1 = 2 \quad \text{or} \quad x - 3 = 0 \implies x_2 = 3
5

Verify each root by substituting back into the original equation.

Check x=2:  (2)2−5(2)+6=4−10+6=0  ✓Check x=3:  (3)2−5(3)+6=9−15+6=0  ✓\text{Check } x = 2: \; (2)^2 - 5(2) + 6 = 4 - 10 + 6 = 0 \;\checkmark \\[6pt] \text{Check } x = 3: \; (3)^2 - 5(3) + 6 = 9 - 15 + 6 = 0 \;\checkmark
6

Structural Insight (Vieta's Formulas): Notice how the sum and product of the roots directly confirm the original coefficients.

Sum of roots: x1+x2=−ba=5,Product: x1⋅x2=ca=6\text{Sum of roots: } x_1 + x_2 = -\frac{b}{a} = 5, \quad \text{Product: } x_1 \cdot x_2 = \frac{c}{a} = 6

Try It Yourself or Edit Equation

Interactive Calculator
1. Operation

Awaiting Input

Enter any equation like 2x + 8 = 20 or x² - 5x + 6 = 0 to get step-by-step solutions.

Common Questions About Solve x² - 5x + 6 = 0

What are the roots of x² - 5x + 6 = 0?

The roots are x = 2 and x = 3. By factoring: (x - 2)(x - 3) = 0.

Related Math Problems with Steps