Algebra · real student question

Solve the equation x^2 - 2x - 4 = 0.

Question

Solve

x22x4=0x^2-2x-4=0

Step-by-step solution

  1. Check for a factorisation first. We need integers with product 4-4 and sum 2-2: the pairs (1,4)(1,-4) and (2,2)(2,-2) and (4,1)(4,-1) give sums 3-3, 00 and 33. None works, so use the formula with a=1a=1, b=2b=-2, c=4c=-4.

  2. Compute the discriminant.

    Δ=(2)24(1)(4)=4+16=20\Delta=(-2)^2-4(1)(-4)=4+16=20

    Positive, so two distinct real roots.

  3. Substitute into the quadratic formula.

    x=2±202x=\frac{2\pm\sqrt{20}}{2}

  4. Simplify the surd and cancel. 20=4520=4\cdot 5, so 20=25\sqrt{20}=2\sqrt5 and every term carries a factor 22:

    x=2±252=1±5x=\frac{2\pm 2\sqrt5}{2}=1\pm\sqrt5

    Cancelling before simplifying the radical would be wrong: 2±2021±20\tfrac{2\pm\sqrt{20}}{2}\neq 1\pm\sqrt{20}, because the 22 must divide both numerator terms.

  5. Check by completing the square. x22x4=(x1)25x^2-2x-4=(x-1)^2-5, which vanishes exactly when (x1)2=5(x-1)^2=5, i.e. x=1±5x=1\pm\sqrt5 \checkmark. Numerically x3.2361x\approx 3.2361 or 1.2361-1.2361.

Answer

x=1+53.2361orx=151.2361x=1+\sqrt{5}\approx 3.2361\quad\text{or}\quad x=1-\sqrt{5}\approx-1.2361

Need to solve a different problem like this? Open the solver →