Nonlinear equations and systems · Lesson 1

Solving quadratic equations

A quadratic equation has x2x^2 as its highest power. Before solving, get it into standard form: everything on one side and 0 on the other, ax2+bx+c=0ax^2 + bx + c = 0. A quadratic can have two real solutions, one, or none (Lesson 2 shows how to tell).

Square roots, when there is no separate xx-term. In (x−3)2=16(x - 3)^2 = 16, the inside is 4 or −4-4, so x−3=±4x - 3 = \pm 4 and x=7x = 7 or x=−1x = -1. The ±\pm matters: both 4 and −4-4 square to 16.

Factoring, when the numbers are friendly. For x2−5x−14=0x^2 - 5x - 14 = 0, find two numbers that multiply to −14-14 and add to −5-5: −7-7 and 2. So (x−7)(x+2)=0(x - 7)(x + 2) = 0. A product is 0 only when one of its factors is 0, so x−7=0x - 7 = 0 or x+2=0x + 2 = 0, which gives x=7x = 7 or x=−2x = -2. When each factor is xx plus or minus a number, the solutions have the opposite signs of those numbers. With a coefficient, as in 2x−5=02x - 5 = 0, solve the factor: x=52x = \frac{5}{2}.

The quadratic formula always works: x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}. Use it when factoring isn't quick or the answer choices contain square roots. The whole numerator is divided by 2a2a, not just the −b-b.

Completing the square turns the equation into the square-root kind. For x2+6x=7x^2 + 6x = 7, add the square of half of 6, which is 9, to both sides: (x+3)2=16(x + 3)^2 = 16, so x+3=±4x + 3 = \pm 4 and x=1x = 1 or x=−7x = -7. It is quickest when a=1a = 1 and bb is even.

Two habits save points. Divide out a common number first: 2x2−8x−10=02x^2 - 8x - 10 = 0 becomes x2−4x−5=0x^2 - 4x - 5 = 0. But never divide both sides by xx: in 3x2=12x3x^2 = 12x, dividing by xx loses the solution x=0x = 0. Move everything to one side and factor instead: 3x(x−4)=03x(x - 4) = 0, so x=0x = 0 or x=4x = 4.

The solutions of ax2+bx+c=0ax^2 + bx + c = 0 are the xx-intercepts of the graph of y=ax2+bx+cy = ax^2 + bx + c, as the graph below shows.

The graph of y = x^2 - 2x - 8−4−2246−10−8−6−4−224680xy(-2, 0)(4, 0)(1, -9)
The graph of y=x2−2x−8y = x^2 - 2x - 8 An upward-opening parabola with its vertex at (1, -9). It crosses the x-axis at (-2, 0) and (4, 0), so the equation x^2 - 2x - 8 = 0 has the two solutions -2 and 4.

Worked example Easy

x2−5x−14=0x^2 - 5x - 14 = 0

What are the solutions to the given equation?

  1. x=−7x = -7 and x=2x = 2
  2. x=−2x = -2 and x=7x = 7Answer
  3. x=−4x = -4 and x=14x = 14
  4. x=−1x = -1 and x=14x = 14

How to solve it

  1. Look for two numbers that multiply to −14-14 and add to −5-5: −7-7 and 2.
  2. Factor: (x−7)(x+2)=0(x - 7)(x + 2) = 0.
  3. Set each factor equal to 0: x−7=0x - 7 = 0 gives x=7x = 7, and x+2=0x + 2 = 0 gives x=−2x = -2.
  4. Check x=7x = 7: 49−35−14=049 - 35 - 14 = 0. Check x=−2x = -2: 4+10−14=04 + 10 - 14 = 0.

Why each choice is right or wrong

  • A. Incorrect. These are the numbers inside the factors, −7-7 and 2, with their signs kept. Each solution makes its factor 0, so x−7=0x - 7 = 0 gives x=7x = 7 and x+2=0x + 2 = 0 gives x=−2x = -2.
  • B. Correct. x2−5x−14=(x−7)(x+2)x^2 - 5x - 14 = (x - 7)(x + 2), and each factor is 0 at x=7x = 7 or x=−2x = -2. Both values make the left side 0.
  • C. Incorrect. This comes from the quadratic formula without dividing by 2a2a: 5±25+56=5±95 \pm \sqrt{25 + 56} = 5 \pm 9, which gives 14 and −4-4. Dividing by 2a=22a = 2 gives 7 and −2-2.
  • D. Incorrect. This uses (x−14)(x+1)(x - 14)(x + 1), whose numbers multiply to −14-14 but add to −13-13, so it expands to x2−13x−14x^2 - 13x - 14. The two numbers must also add to −5-5.

Worked example Medium

2(x+1)2−128=02(x + 1)^2 - 128 = 0

What is the positive solution to the given equation?

  1. 77Answer
  2. 99
  3. 82−18\sqrt{2} - 1
  4. 6363

How to solve it

  1. There is no separate xx-term, so isolate the square. Add 128: 2(x+1)2=1282(x + 1)^2 = 128. Divide by 2: (x+1)2=64(x + 1)^2 = 64.
  2. Take square roots, both signs: x+1=8x + 1 = 8 or x+1=−8x + 1 = -8.
  3. Subtract 1: x=7x = 7 or x=−9x = -9. The positive solution is 7.
  4. Check: 2(8)2−128=128−128=02(8)^2 - 128 = 128 - 128 = 0.

Why each choice is right or wrong

  • A. Correct. (x+1)2=64(x + 1)^2 = 64 gives x+1=±8x + 1 = \pm 8, so x=7x = 7 or x=−9x = -9, and 7 is the positive one.
  • B. Incorrect. This adds 1 to 8 instead of subtracting it, which gives x=9x = 9. From x+1=8x + 1 = 8, subtract 1 to get x=7x = 7.
  • C. Incorrect. This skips dividing by 2 and takes the square root of 128: x+1=128=82x + 1 = \sqrt{128} = 8\sqrt{2}, so x=82−1x = 8\sqrt{2} - 1. The 2 multiplies the square, so divide by it first to get (x+1)2=64(x + 1)^2 = 64.
  • D. Incorrect. This forgets to take the square root: it treats (x+1)2=64(x + 1)^2 = 64 as x+1=64x + 1 = 64, so x=63x = 63. Undo the square with a square root, x+1=±8x + 1 = \pm 8.

Worked example Hard

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

Which of the following is a solution to the given equation?

  1. −3+5-3 + \sqrt{5}
  2. 3+53 + \sqrt{5}Answer
  3. 3+253 + 2\sqrt{5}
  4. 6+256 + 2\sqrt{5}

How to solve it

  1. No two integers multiply to 4 and add to −6-6, and the choices contain square roots, so use the formula or complete the square.
  2. Formula with a=1a = 1, b=−6b = -6, c=4c = 4: x=6±36−162=6±202x = \frac{6 \pm \sqrt{36 - 16}}{2} = \frac{6 \pm \sqrt{20}}{2}.
  3. 20=25\sqrt{20} = 2\sqrt{5}, so x=6±252=3±5x = \frac{6 \pm 2\sqrt{5}}{2} = 3 \pm \sqrt{5}. Divide both terms by 2.
  4. Completing the square gives the same result: x2−6x=−4x^2 - 6x = -4, add 9 to both sides, (x−3)2=5(x - 3)^2 = 5, so x=3±5x = 3 \pm \sqrt{5}.

Why each choice is right or wrong

  • A. Incorrect. This uses b=−6b = -6 in place of −b-b at the start of the formula, which gives −6±252=−3±5\frac{-6 \pm 2\sqrt{5}}{2} = -3 \pm \sqrt{5}. The formula starts with −b-b, which is 6 here.
  • B. Correct. The formula gives 6±252=3±5\frac{6 \pm 2\sqrt{5}}{2} = 3 \pm \sqrt{5}, and completing the square gives (x−3)2=5(x - 3)^2 = 5, the same two solutions.
  • C. Incorrect. This divides only the 6 by 2 and leaves 252\sqrt{5} whole. The fraction bar divides the entire numerator, so both terms are halved.
  • D. Incorrect. This is the numerator 6+206 + \sqrt{20} written as 6+256 + 2\sqrt{5} without dividing by 2a=22a = 2.

Trap Keeping the signs from the factors

(x−7)(x+2)=0(x - 7)(x + 2) = 0 has solutions 7 and −2-2, not −7-7 and 2. The SAT often lists the pair with the factors' signs kept as a choice. Plug one solution back in for a two-second check.

Trap Losing a solution

Two moves lose solutions. Taking only the positive square root turns (x−3)2=16(x - 3)^2 = 16 into x=7x = 7 alone and loses x=−1x = -1. Dividing both sides by xx turns 3x2=12x3x^2 = 12x into x=4x = 4 alone and loses x=0x = 0. Write ±\pm every time you take a square root, and factor out xx instead of dividing by it.

Desmos When Desmos is faster

Move everything to one side and graph the result as y=y =, such as y=x2−5x−14y = x^2 - 5x - 14. Click the curve and Desmos marks its xx-intercepts with gray points. Click each one to see its coordinates, here (−2,0)(-2, 0) and (7,0)(7, 0). The xx-coordinates are the solutions.

If you'd rather not rearrange, graph each side as its own y=y = and click the points where the graphs cross. Their xx-coordinates are the solutions.

When the solutions are irrational, Desmos shows rounded decimals, such as 5.236 for 3+53 + \sqrt{5}. Type each answer choice on a new line, such as 3 + sqrt(5), to see its decimal and compare. For an equation that factors at a glance, solving by hand is just as fast.