Quadratics

Solving Quadratic Equations by Factoring

To solve a quadratic by factoring, rewrite it as ax2+bx+c=0ax^2+bx+c=0, factor the left side into two binomials, and set each binomial equal to 00. Each of those two linear equations gives one solution.

(x−r1)(x−r2)=0  ⇒  x=r1 or x=r2(x-r_1)(x-r_2)=0 \;\Rightarrow\; x=r_1 \text{ or } x=r_2

Try it with your numbers

Show every step

The method is quick when it applies and quietly useless when it does not, so the real skill is knowing which case you are in. Below you will find the pair-hunting trick for each type of quadratic, the setup error that produces confident wrong answers, a ten-second check, and a test that tells you before you start whether factoring can work at all.

How does solving quadratics by factoring work?

The method rests on one fact: if AB=0AB=0, then A=0A=0 or B=0B=0. The reason is short. If A≠0A\neq 0, you can multiply both sides by 1A\tfrac1A and get B=0B=0. Zero is the only number with this power: knowing AB=12AB=12 tells you almost nothing about AA and BB, but knowing AB=0AB=0 pins one of them down.

A quadratic in standard form has a squared term, which is awkward to undo directly. Factoring turns it into a product of two linear expressions, and the property above splits that into two easy equations. When the factored form is (x−r1)(x−r2)=0(x-r_1)(x-r_2)=0, the solutions are r1r_1 and r2r_2.

Other routes exist: the square root method and completing the square both work on any quadratic, and factoring beats them when the roots are rational numbers. The full routine has four steps:

  1. Move every term to one side so the other side is 00.
  2. Take out any common factor.
  3. Factor the rest into two binomials.
  4. Set each factor to 00 and solve.

Factoring quadratics with a leading coefficient of 1

Expanding (x+m)(x+n)(x+m)(x+n) gives x2+(m+n)x+mnx^2+(m+n)x+mn. So factoring x2+bx+cx^2+bx+c means finding two numbers whose product is cc and whose sum is bb. The signs come straight from the signs of cc and bb. If cc is positive, both numbers share the sign of bb. If cc is negative, the numbers have opposite signs, and the one with the larger absolute value carries the sign of bb.

Example 1. Solve x2+3x−28=0x^2+3x-28=0.

Since c=−28c=-28 is negative, the pair has opposite signs, so the sum is the difference of the two sizes. Factor pairs of 2828 are 1⋅281\cdot 28, 2⋅142\cdot 14 and 4⋅74\cdot 7. Only 44 and 77 differ by 33, and the larger one takes the plus sign, giving 77 and −4-4.

x2+3x−28=(x+7)(x−4)=0x^2+3x-28=(x+7)(x-4)=0

x+7=0 ⇒ x=−7x−4=0 ⇒ x=4x+7=0\ \Rightarrow\ x=-7\qquad\qquad x-4=0\ \Rightarrow\ x=4

Check: (−7)2+3(−7)−28=49−21−28=0(-7)^2+3(-7)-28=49-21-28=0, and 42+3(4)−28=16+12−28=04^2+3(4)-28=16+12-28=0.

The trap sits in the last step. A solution is the opposite of the number inside its bracket: (x+7)(x+7) gives x=−7x=-7, not 77. Ask “what value of xx makes this bracket zero?” instead of copying the number.

Quick check

Solve x2−x−12=0x^2-x-12=0.

How do you solve by factoring when a is not 1?

When a≠1a\neq 1, the pair of numbers must multiply to acac and still add to bb. You then use the pair to split the middle term and finish by grouping. This is often called the AC method.

Example 2. Solve 6x2+7x−3=06x^2+7x-3=0.

Here ac=6⋅(−3)=−18ac=6\cdot(-3)=-18 and b=7b=7. The pair 99 and −2-2 has product −18-18 and sum 77. Split the middle term and group:

6x2+9x−2x−3=06x^2+9x-2x-3=0

3x(2x+3)−1(2x+3)=03x(2x+3)-1(2x+3)=0

(2x+3)(3x−1)=0(2x+3)(3x-1)=0

Then 2x+3=02x+3=0 gives x=−32x=-\tfrac32, and 3x−1=03x-1=0 gives x=13x=\tfrac13.

The usual slip happens in the second group. Factoring −2x−3-2x-3 means pulling out −1-1, which leaves (2x+3)(2x+3). If the two brackets do not match, a sign went wrong in that pair. The order of the split does not matter, so 6x2−2x+9x−36x^2-2x+9x-3 ends at the same answer.

Shortcut for the slow step

Any rational root of ax2+bx+c=0ax^2+bx+c=0 has the form pq\tfrac{p}{q}, where pp divides cc and qq divides aa. For 6x2+7x−36x^2+7x-3, that limits the numerators to factors of 33 and the denominators to factors of 66.

Take out the greatest common factor before you hunt for pairs. In 12x2+30x−18=012x^2+30x-18=0, dividing by 66 gives 2x2+5x−3=02x^2+5x-3=0, and the numbers in your search shrink from −216-216 to −6-6. The constant never produces a solution on its own, because 6=06=0 is false.

Why does the equation have to equal zero first?

Wrong versus right solving of x(x − 3) = 10, showing the zero first setup gives 5 and −2
Reading x(x − 3) = 10 as x = 10 or x − 3 = 10 fails, because 13 · 10 is 130; expanding to x² − 3x − 10 = 0 gives the true roots 5 and −2.

The zero product property says nothing about a product equal to 1010. Students who see x(x−3)=10x(x-3)=10 often write x=10x=10 or x−3=10x-3=10, which gives x=13x=13. Test it: 13⋅10=13013\cdot 10=130, not 1010. Many pairs multiply to 1010, so neither factor has to equal 1010.

The correct setup expands, moves everything to the left, and only then factors:

x(x−3)=10 ⇒ x2−3x−10=0 ⇒ (x−5)(x+2)=0x(x-3)=10\ \Rightarrow\ x^2-3x-10=0\ \Rightarrow\ (x-5)(x+2)=0

So x=5x=5 or x=−2x=-2. Check: 5⋅2=105\cdot 2=10, and (−2)(−5)=10(-2)(-5)=10.

A second trap works the opposite way: dividing by xx. From x2=5xx^2=5x, dividing both sides by xx leaves x=5x=5 and loses the solution x=0x=0. Dividing by a variable silently discards any root that makes it zero. Move the term over instead: x2−5x=0x^2-5x=0, so x(x−5)=0x(x-5)=0, and both 00 and 55 survive.

Special cases: no constant term, squares and double roots

Three patterns come up constantly, and each is faster than the general pair hunt.

Pattern Factored form Solutions
ax2+bx=0ax^2+bx=0 x(ax+b)=0x(ax+b)=0 x=0x=0 and x=−bax=-\tfrac ba
x2−k2=0x^2-k^2=0 (x−k)(x+k)=0(x-k)(x+k)=0 x=kx=k and x=−kx=-k
x2+2kx+k2=0x^2+2kx+k^2=0 (x+k)2=0(x+k)^2=0 x=−kx=-k only

With no constant term, one root is always 00. For 5x2=20x5x^2=20x, move and factor: 5x(x−4)=05x(x-4)=0, so x=0x=0 or x=4x=4. With a coefficient on the square, the difference of squares still works: 9x2−16=(3x−4)(3x+4)9x^2-16=(3x-4)(3x+4), giving x=±43x=\pm\tfrac43.

A sum of squares behaves differently. x2+9=0x^2+9=0 has no real factorization, and its solutions are x=±3ix=\pm 3i, which belong to the world of complex numbers.

A perfect square trinomial gives a double root. In x2−10x+25=0x^2-10x+25=0, both factors are (x−5)(x-5), so the only solution is x=5x=5. The equation has one answer counted twice, and on a graph the parabola touches the x-axis without crossing it. Recognizing the pattern a2±2ab+b2a^2\pm 2ab+b^2 saves the whole pair search.

Quick check

Solve 4x2−25=04x^2-25=0.

How can you tell if a quadratic will factor?

Compute D=b2−4acD=b^2-4ac before you search. The solutions of ax2+bx+c=0ax^2+bx+c=0 are −b±D2a\frac{-b\pm\sqrt{D}}{2a}, so they are rational exactly when DD is a perfect square. Rational solutions are what factoring produces from integer coefficients, so a perfect square means a factorization exists, and anything else means your pair hunt will never succeed.

Two quick cases: 6x2+7x−36x^2+7x-3 has D=49+72=121=112D=49+72=121=11^2, so it factors, as Example 2 showed. But x2+2x−5x^2+2x-5 has D=4+20=24D=4+20=24, which is not a square, so no integer pair exists.

When to stop hunting

If you have tried every factor pair of acac and none sums to bb, compute DD. A non-square DD means the answer is irrational, and the quadratic formula gives it directly.

This is where the discriminant earns its keep, and it sorts every quadratic into four cases:

  • DD is a positive perfect square: two rational roots, and it factors.
  • D=0D=0: one double root, a perfect square trinomial.
  • DD is positive but not a square: two irrational roots, so use the quadratic formula. For x2+2x−5=0x^2+2x-5=0 it gives x=−1±6x=-1\pm\sqrt6.
  • D<0D<0: no real roots, and the solutions are complex.

How do you check solutions from factoring quickly?

Sum and product check of roots for 6x² + 7x − 3 = 0 using −b/a and c/a
For 6x² + 7x − 3 = 0, the roots −3/2 and 1/3 add to −7/6 and multiply to −1/2, matching −b/a and c/a.

Substituting each answer back into the original equation always works, but a faster test exists. For ax2+bx+c=0ax^2+bx+c=0, the two roots satisfy r1+r2=−bar_1+r_2=-\tfrac ba and r1r2=car_1r_2=\tfrac ca. These relations come from expanding a(x−r1)(x−r2)a(x-r_1)(x-r_2), and they also appear when you add and multiply the two roots in the derivation of the quadratic formula.

Test Example 2, where the roots were −32-\tfrac32 and 13\tfrac13 for 6x2+7x−3=06x^2+7x-3=0:

−32+13=−96+26=−76=−ba−32⋅13=−12=−36=ca-\tfrac32+\tfrac13=-\tfrac96+\tfrac26=-\tfrac76=-\tfrac ba\qquad\qquad -\tfrac32\cdot\tfrac13=-\tfrac12=\tfrac{-3}{6}=\tfrac ca

Both match, so the answer is right. The check takes about ten seconds and catches the most common error, a flipped sign. It also works as a prediction: before factoring, you know the roots must add to −ba-\tfrac ba and multiply to ca\tfrac ca.

Try this: Solve x2−9x+14=0x^2-9x+14=0 by factoring. Then, without substituting, confirm that your two roots add to 99 and multiply to 1414.

What do the factored solutions mean on a graph?

The solutions of ax2+bx+c=0ax^2+bx+c=0 are the x-intercepts of the parabola y=ax2+bx+cy=ax^2+bx+c, which is why they are also called zeros. Factored form y=a(x−r1)(x−r2)y=a(x-r_1)(x-r_2) makes this visible: the output is 00 whenever one of the brackets is 00. The leading coefficient aa only controls the opening direction and width, so infinitely many parabolas share the same two intercepts.

Symmetry gives you the rest. The axis of symmetry sits halfway between the intercepts, so x=r1+r22x=\tfrac{r_1+r_2}{2}, which equals −b2a-\tfrac{b}{2a}. For y=x2+3x−28y=x^2+3x-28, the roots −7-7 and 44 give x=−7+42=−32x=\tfrac{-7+4}{2}=-\tfrac32, and −32⋅1=−32-\tfrac{3}{2\cdot1}=-\tfrac32 agrees.

That axis is also the x-coordinate of the vertex, so you can find the vertex of the parabola without any extra algebra: y=(−32)2+3(−32)−28=94−92−28=−1214y=\left(-\tfrac32\right)^2+3\left(-\tfrac32\right)-28=\tfrac94-\tfrac92-28=-\tfrac{121}{4}. With the intercepts and the vertex, you have what you need for graphing quadratic functions accurately.

Quick check

A parabola crosses the x-axis at x=−1x=-1 and x=7x=7. What is its axis of symmetry?

Where does factoring quadratics show up in real problems?

Area, motion and profit problems all produce quadratics, and factoring solves them when the numbers are friendly. The extra step is deciding which solutions make sense in context.

Example 3. A rectangular garden is 33 m longer than it is wide, and its area is 4040 m². Find the dimensions.

Let the width be ww, so the length is w+3w+3:

w(w+3)=40 ⇒ w2+3w−40=0 ⇒ (w+8)(w−5)=0w(w+3)=40\ \Rightarrow\ w^2+3w-40=0\ \Rightarrow\ (w+8)(w-5)=0

So w=−8w=-8 or w=5w=5. A width cannot be negative, so w=5w=5 m and the length is 88 m. Check: 5⋅8=405\cdot 8=40.

A ball thrown upward from the ground at 4848 ft/s has height h=−16t2+48th=-16t^2+48t. Setting h=0h=0 gives −16t(t−3)=0-16t(t-3)=0, so t=0t=0 (the launch) and t=3t=3 (the landing). Both solutions mean something, which is why the context decides what to keep. More setups like these are in quadratic word problems.

Factoring also powers quadratic inequalities. Since x2+3x−28=(x+7)(x−4)x^2+3x-28=(x+7)(x-4), the expression changes sign only at −7-7 and 44. It is positive outside that interval and negative between them: at x=0x=0 the value is −28-28, and at x=5x=5 it is 1212.

Practice problems

0 of 5 solved

  1. Solve x2+5x+6=0x^2+5x+6=0.

  2. Solve x2−2x−15=0x^2-2x-15=0.

  3. Solve 3x2−12x=03x^2-12x=0.

  4. Solve 2x2+5x−3=02x^2+5x-3=0.

  5. Solve x(2x+1)=15x(2x+1)=15.

Common questions

What is the zero product property?

It says that if two numbers multiply to give zero, at least one of them must be zero. That is why a factored quadratic equal to zero can be split into two separate linear equations. It only works when the other side of the equation is exactly zero.

Can every quadratic equation be solved by factoring?

No. Factoring over the integers only works when the discriminant b2−4acb^2-4ac is a perfect square. For anything else, such as x2+2x−5=0x^2+2x-5=0, use the quadratic formula or completing the square.

How do you factor a quadratic when a is not 1?

Multiply aa and cc, find two numbers with that product and a sum of bb, and use them to split the middle term. Then factor by grouping. For 2x2+5x−32x^2+5x-3, the numbers are 66 and −1-1, which leads to (2x−1)(x+3)(2x-1)(x+3).

What if the quadratic is not equal to zero?

Move every term to one side first so the other side is 00. For example, x(x−3)=10x(x-3)=10 becomes x2−3x−10=0x^2-3x-10=0. Skipping this step produces wrong answers, because the zero product property needs a product equal to zero.

Can factoring give only one solution?

Yes. When the quadratic is a perfect square, such as x2−10x+25=(x−5)2x^2-10x+25=(x-5)^2, both factors are identical and there is a single solution, x=5x=5, called a double root. The parabola touches the x-axis at one point instead of crossing it.

Is factoring or the quadratic formula better?

Factoring is faster when the coefficients are small and the discriminant is a perfect square. The quadratic formula always works, so it is the safe choice when no factor pair appears after a short search.

Up next