Solving quadratic equations (§§10.1&10.2)

A quadratic equation is an equation whose sides are both polynomials of degree at most 2. A quadratic equation in one variable can always be solved over the complex numbers, and therefore over the real numbers by throwing out imaginary solutions. (You can also say that an equation is quadratic in a particular variable if it would always become a quadratic equation upon replacing all of the other variables with specific constants. Then an equation that is quadratic in any variable may be solved for that variable.) There are two main methods for doing this.

The most basic method uses these steps:

At this point, you should have the answer.

The tricky step is completing the square. Here, you have an expression of the form x2 + px, and you add p2/4 to get x2 + px + p2/4, which factors as (x + p/2)2. But instead of remembering the formula p2/4, you can also write it like this:

Then by thinking about the rule (A + B)2 = A2 + 2AB + B2, I fill in the second blank with half of p and then square this to fill in the first blank (which I also add to the other side of the equation).

Alternatively, you can use this method:

The quadratic formula says that the following two statements are equivalent: (Notice that a ≠ 0 precisely when the equation is nonlinear.) This formula may be derived by applying the first set of steps to the generic equation ax2 + bx + c = 0 (which is quadratic in x).

The quadratic formula can introduce rounding errors when a is close to zero, and you might also be in a situation where you don't know whether a is zero or not; for alternative versions of the quadratic formula that can be applied as long as at least one of a, b, and c is nonzero (and which tends to avoid rounding errors as long as at least one of them is far from zero), see The numerical analyst's quadratic formula (optional, on an external site with fancy formatting possibilities).

Finally, you can try to solve the equation by factoring. That's usually the fastest way when it works, but it doesn't always work; the other two methods are guaranteed to work every time.


Go back to the course homepage.
This web page was written by Toby Bartels, last edited on 2024 August 15. Toby reserves no legal rights to it.

The permanent URI of this web page is https://tobybartels.name/MATH-1100/2024FA/equations/.

HTML 5