← Back to High School Math

Solving Quadratic Equations

High School Math · Algebra 2Preview

1. Introduction

A quadratic equation is any equation that can be rearranged into the standard form

ax2+bx+c=0,a0.ax^2 + bx + c = 0, \qquad a \neq 0.

The condition a0a \neq 0 is essential: if a=0a = 0 the x2x^2 term disappears and we are left with the linear equation bx+c=0bx + c = 0, which behaves completely differently. The presence of the squared term is exactly what gives quadratics their characteristic U-shaped parabola graph and their ability to have up to two solutions.

Quadratics appear everywhere in mathematics and science. The path of a thrown ball, the shape of a satellite dish, the area of a rectangle whose dimensions are related, the profit of a business as a function of price — all of these are modeled by quadratics. In physics, the height of a projectile under gravity is a quadratic in time; in geometry, the area of a square depends quadratically on its side length. Learning to solve them reliably is one of the central skills of algebra, and it unlocks calculus, physics, and economics later on.

Every quadratic solving method ultimately traces back to one idea: rewriting the equation so that xx appears only once, inside a square or inside a factored product. Factoring exploits the Zero Product Property; completing the square forces a perfect-square trinomial; the quadratic formula is completing the square applied to the general case. The discriminant Δ=b24ac\Delta = b^2 - 4ac predicts the number and type of roots before you compute them, and Vieta's formulas connect the roots back to the coefficients for fast checks and elegant problems.

In this article we build the topic from the ground up: what a quadratic is, the three main solving techniques, how the discriminant classifies roots, how Vieta's formulas work, and how the graph of a parabola encodes the same information algebraically. By the end you should be able to look at any quadratic and choose the fastest correct path to its solutions.

2. Core Concepts

2.1 What the equation is asking

Solving ax2+bx+c=0ax^2 + bx + c = 0 means finding every value of xx that makes the left side equal to zero. Graphically, y=ax2+bx+cy = ax^2 + bx + c is a parabola, and the solutions (also called roots or zeros) are exactly the xx-coordinates where that parabola crosses the xx-axis. A parabola can cross the xx-axis twice, touch it once, or miss it entirely, which is why a quadratic can have two, one, or zero real solutions.

The vertex of the parabola sits at x=b2ax = -\tfrac{b}{2a}, on the axis of symmetry. If the two roots are real and distinct, they are symmetric about this vertical line — a geometric fact that Vieta's formulas capture algebraically.

2.2 Standard form and rearranging

Before applying any method, put the equation in standard form with all terms on one side and zero on the other. For example, x2=5x6x^2 = 5x - 6 must become x25x+6=0x^2 - 5x + 6 = 0. The Zero Product Property and the quadratic formula both require the equation to equal zero; factoring a nonzero right-hand side is meaningless.

Identify aa, bb, and cc carefully, including signs. In 3x22x2=03x^2 - 2x - 2 = 0, we have a=3a = 3, b=2b = -2, and c=2c = -2. A common slip is to forget that bb is negative.

2.3 The Zero Product Property

The engine behind factoring is a simple but powerful fact named the Zero Product Property: if a product of numbers equals zero, then at least one of the factors must be zero.

pq=0p=0  or  q=0.pq = 0 \quad \Longrightarrow \quad p = 0 \ \text{ or } \ q = 0.

This is true only for the number zero — there is no analogous rule for, say, pq=12pq = 12. So whenever we can write a quadratic as a product equal to zero, we can break it into separate, easy linear equations. Each linear factor mx+n=0mx + n = 0 gives one root x=nmx = -\tfrac{n}{m}.

2.4 Factoring and the sum-product pattern

When a=1a = 1, the trinomial x2+bx+cx^2 + bx + c factors as (x+p)(x+q)(x + p)(x + q) where pp and qq multiply to cc and add to bb. Expanding confirms this:

(x+p)(x+q)=x2+(p+q)x+pq.(x + p)(x + q) = x^2 + (p + q)x + pq.

So the middle coefficient is the sum of the two numbers and the constant term is their product. For x25x+6x^2 - 5x + 6, we need numbers multiplying to 66 and adding to 5-5: those are 2-2 and 3-3, giving (x2)(x3)=0(x - 2)(x - 3) = 0.

2.5 Completing the square (the source of everything)

Every solving method ultimately traces back to completing the square, the idea of forcing a perfect-square trinomial. Recall the perfect-square identity:

(x+b2)2=x2+bx+b24.\left(x + \tfrac{b}{2}\right)^2 = x^2 + bx + \tfrac{b^2}{4}.

So the expression x2+bxx^2 + bx is "missing" the constant b24\tfrac{b^2}{4} to become a perfect square. We can add and subtract it without changing the value:

x2+bx=(x+b2)2b24.x^2 + bx = \left(x + \tfrac{b}{2}\right)^2 - \frac{b^2}{4}.

This single algebraic move rewrites any quadratic so the variable appears only once, inside a square. We can then take square roots and solve. Applying it to the general equation produces the quadratic formula itself.

2.6 Deriving the quadratic formula

Start from the general equation and complete the square. This derivation is worth following once carefully, because it explains why the formula looks the way it does.

ax2+bx+c=0.ax^2 + bx + c = 0.

Divide by aa (allowed since a0a \neq 0):

x2+bax+ca=0.x^2 + \frac{b}{a}x + \frac{c}{a} = 0.

Move the constant and complete the square on the left:

x2+bax=ca,x^2 + \frac{b}{a}x = -\frac{c}{a},

(x+b2a)2b24a2=ca.\left(x + \frac{b}{2a}\right)^2 - \frac{b^2}{4a^2} = -\frac{c}{a}.

Add b24a2\tfrac{b^2}{4a^2} to both sides and combine over a common denominator:

(x+b2a)2=b24ac4a2.\left(x + \frac{b}{2a}\right)^2 = \frac{b^2 - 4ac}{4a^2}.

Take the square root of both sides (the ±\pm captures both roots):

x+b2a=±b24ac2a.x + \frac{b}{2a} = \pm \frac{\sqrt{b^2 - 4ac}}{2a}.

Finally isolate xx:

x=b±b24ac2a.x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}.

This is the quadratic formula, and it works for every quadratic, no guessing required.

2.7 The discriminant

The quantity under the square root has its own name, the discriminant:

Δ=b24ac.\Delta = b^2 - 4ac.

Because we take Δ\sqrt{\Delta}, its sign decides what kind of solutions we get:

  • Δ>0\Delta > 0: two distinct real roots (parabola crosses the xx-axis twice).
  • Δ=0\Delta = 0: one repeated real root, x=b2ax = -\tfrac{b}{2a} (parabola is tangent to the xx-axis).
  • Δ<0\Delta < 0: two complex conjugate roots (parabola never touches the xx-axis).

The discriminant lets you predict the situation before doing any heavy computation. When Δ\Delta is a perfect square, the roots are rational; when it is positive but not a perfect square, the roots are irrational.

2.8 Vieta's formulas

There is a beautiful shortcut linking the roots x1,x2x_1, x_2 to the coefficients. If we factor a(xx1)(xx2)=ax2+bx+ca(x - x_1)(x - x_2) = ax^2 + bx + c and expand, matching coefficients gives Vieta's formulas:

x1+x2=ba,x1x2=ca.x_1 + x_2 = -\frac{b}{a}, \qquad x_1 \cdot x_2 = \frac{c}{a}.

These let you check answers instantly and solve many problems without ever finding the roots individually. For example, if the sum of the roots of x27x+10=0x^2 - 7x + 10 = 0 is 77 and the product is 1010, the roots must be 22 and 55.

2.9 Vertex form and the graph

Completing the square also produces vertex form:

y=a(xh)2+k,y = a(x - h)^2 + k,

where (h,k)(h, k) is the vertex. For y=x2+6x+5y = x^2 + 6x + 5, completing the square gives y=(x+3)24y = (x + 3)^2 - 4, so the vertex is (3,4)(-3, -4). Setting y=0y = 0 in vertex form is another route to solving the equation: (x+3)2=4(x + 3)^2 = 4 leads directly to x=1x = -1 or x=5x = -5.

The sign of aa determines whether the parabola opens upward (a>0a > 0) or downward (a<0a < 0). A downward-opening parabola can have two real roots only if its vertex is above the xx-axis.

2.10 Complex roots

When Δ<0\Delta < 0, the square root step involves 1=i\sqrt{-1} = i. The solutions are complex conjugates: if r+sir + si is a root, then rsir - si is the other. For x2+2x+5=0x^2 + 2x + 5 = 0, we get x=1±2ix = -1 \pm 2i. Complex roots do not appear on the real xx-axis, but they are fully valid solutions of the equation.

2.11 The AC method for a1a \neq 1

When the leading coefficient is not 11, the AC method extends the sum-product idea. For ax2+bx+cax^2 + bx + c, compute acac and find two numbers that multiply to acac and add to bb. Split the middle term, then factor by grouping. This is algebraically equivalent to factoring aa times a trinomial with a=1a = 1 after dividing through, but the AC method avoids fractions when possible.

Continue reading with Premium

Upgrade to read the full article and unlock all Premium features.

Free

  • Unlimited practice — all difficulties
  • 3 hints / day
  • Community solutions
  • 2 timed mocks / month

Premium

  • Full article + all 57+ theory guides
  • Unlimited hints on practice problems
  • Unlimited timed mock exams & PDF worksheets
Log in