We cannot combine x2 and x as like terms. For the quadratic equations here, we'll rewrite one side as a product equal to 0.
1
Why We Need the Zero Trick
We want to find the values of x that make a quadratic equation true, starting with
x2+5x+6=0
To see why a product equal to 0 is useful, we'll first solve a different equation.
(x−3)(x+5)=0
Why We Need the Zero Trick
2x+3x2+5x+6=11=0xx=?=?
Text solution
Set each factor equal to zeroBecause the two parentheses multiply to 0, at least one of them must equal 0.
x−3=0orx+5=0
Solve each equation for xAdd 3 in the first equation and subtract 5 in the second to get x by itself.
x=3orx=−5
Both x=3 and x=−5 make the original equation true because each one turns one of the factors into 0, making the whole product 0.
A rectangle with side lengths ∣x−3∣ and ∣x+5∣ has area ∣(x−3)(x+5)∣. Its area is zero only at x=3 and x=−5, where one factor is zero. Everywhere else, both side lengths are positive, so neither the area nor the product is zero.
The rectangle for the two factors shrinks to zero area only at 3 and −5, where one of its sides shrinks to zero.
2
Solving Quadratic Equations by Factoring
The zero trick only works when factors are multiplied together, so when we have terms added or subtracted to equal zero, we first rewrite the left side as a product of factors:
x2+5x+6x2−2x−24=0and=0
Solving Quadratic Equations by Factoring
x2+5x+6(x+□)(x+□)=0=0
Text solution
For x2+5x+6=0:
Factor using two numbers that multiply to 6 and add to 5Since 2×3=6 and 2+3=5, rewrite the left side as two parentheses multiplying together.
(x+2)(x+3)=0
Set each factor equal to zero and solveSplit the product into two simple equations and solve for x in each.
x+2x+3=0=0⟹x=−2⟹x=−3
When negative signs are involved, as in x2−2x−24=0, we use the same steps while paying attention to the signs of the two numbers:
Factor using two numbers that multiply to −24 and add to −2Since −6×4=−24 and −6+4=−2, rewrite the left side as two factors multiplying together.
(x−6)(x+4)=0
Set each factor equal to zero and solveAdd 6 to solve the first equation and subtract 4 to solve the second.
x−6x+4=0=0⟹x=6⟹x=−4
Notice that for simple factors like (x−6)(x+4)=0, the solutions 6 and −4 have the opposite signs of the numbers inside the parentheses, because those are the values that cancel −6 and +4 to make 0.
3
Getting Equal to Zero First
Now let's see what to do when the right side of the equation is a number other than zero, including when the left side already has parentheses:
x2+4x(x+1)(x+4)=12and=10
Getting Equal to Zero First
x2+4x=12
x=?
Text solution
For x2+4x=12:
Subtract 12 from both sides to get zero on the rightWe cannot use the zero trick while 12 is on the right side because infinitely many pairs of numbers multiply to 12.
x2+4x−12=0
Factor and set each factor equal to zeroUse 6 and −2, which multiply to −12 and add to 4, then solve each simple equation.
(x+6)(x−2)=0
x+6x−2=0=0⟹x=−6⟹x=2
For (x+1)(x+4)=10, the existing parentheses are a trap because the right side is 10 instead of 0:
Multiply out the parentheses on the leftMultiplying out the left side lets us combine the constant terms after subtracting 10 from both sides.
x2+5x+4=10
Subtract 10 from both sides to make the right side zeroCombine 4 and −10 so 0 is alone on the right.
x2+5x−6=0
Factor the new expression and solveUse 6 and −1, which multiply to −6 and add to 5, and set each new factor to 0.
(x+6)(x−1)=0
x+6x−1=0=0⟹x=−6⟹x=1
Plugging x=1 back into the original equation gives (1+1)(1+4)=(2)(5)=10, which works even though neither parenthesis is equal to 10.
4
Common Factors, Differences of Squares, and Perfect Squares
Next, let's solve quadratics where the constant term is missing, the middle x-term is missing, or the two factors turn out to be identical:
x2−7xx2−9x2−6x+9=0,=0,and=0
Common Factors, Differences of Squares, and Perfect Squares
x2−7x=0
x=?
Text solution
When the plain number is missing, as in x2−7x=0:
Pull out the common factor xBoth terms share an x, so factoring it out in front writes the left side as x times x−7.
x(x−7)=0
Set each factor equal to zero and solveThe first factor is x itself and the second is x−7.
xx=0=0orx−7orx=0=7
When the middle x-term is missing, as in x2−9=0:
Factor the difference of squares into opposite signsTwo numbers that multiply to −9 and add to 0 are 3 and −3.
(x+3)(x−3)=0
Set each factor equal to zero and solveEach parenthesis gives one of the two opposite solutions.
x+3x−3=0=0⟹x=−3⟹x=3
When the expression is a perfect square, as in x2−6x+9=0:
Factor using two numbers that multiply to 9 and add to −6Both numbers are −3, giving two identical factors.
(x−3)(x−3)=0
Set the repeated factor equal to zeroBecause both parentheses are the same, setting them to 0 gives the same equation twice.
x−3=0⟹x=3
Here, the quadratic equation has only one solution, x=3, because both factors give the same number.
In the 2×2 box for (x−3)(x−r)=0, all three special cases come from the second solution r:r=0 makes the number corner zero (x2−3x=0), r=−3 makes the two x-corners cancel out (x2−9=0), and r=3 makes both factors the same so there is only one solution (x2−6x+9=0).
With one solution at 3, where you put the second solution on the number line decides which terms show up in the quadratic equation.
5
Solving When x2 Has a Coefficient
Now let's solve a quadratic equation where dividing by the coefficient of x2 would introduce fractions.
2x2+7x+3=0
Solving When x² Has a Coefficient
2x2+7x+3=0
x=?
Text solution
Factor the left side using a 2×2 boxMultiply the 2 and the 3 to get 6, split 7x into 6x and 1x (since 6 and 1 multiply to 6 and add to 7), and pull out the common factors along each row and column.
(2x+1)(x+3)=0
Set each factor equal to zeroWrite out both simple equations so the 2 in front of x is clear before solving.
2x+1=0orx+3=0
Solve for x in each equationSubtract 1 and divide by 2 in the first equation, and subtract 3 in the second.
2xx+3=−1=0⟹x=−21⟹x=−3
When a factor has a number in front of x, like 2x+1, just flipping the sign of +1 no longer gives the solution, so take a second to write out 2x+1=0 to remember to divide by 2.
6
Area Problems and Complete Game Plan
Finally, let's use factoring to find the dimensions of a real-world object: suppose you are building a rectangular wooden deck whose length is 3 feet longer than its width, and you have enough wood to cover an area of 40 square feet. What should the width and length of the deck be?
Area Problems and Complete Game Plan
Text solution
Write an equation for the areaCalling the width x and the length x+3, multiply width by length to equal the area of 40 square feet.
x(x+3)=40
Multiply out the left side and subtract 40 to get zero on the rightBecause the right side is 40 instead of 0, multiply x into the parentheses first and then subtract 40 from both sides.
x2+3xx2+3x−40=40=0
Factor and solve for xUse 8 and −5, which multiply to −40 and add to 3, and set each factor equal to 0.
(x+8)(x−5)=0
x+8x−5=0=0⟹x=−8⟹x=5
Keep only the solution that makes sense for a real lengthA deck cannot have a width of −8 feet, so discard x=−8; the width is x=5 feet and the length is 5+3=8 feet.
The algebra gives x=−8 alongside x=5 because when x=−8, the two negative numbers −8 and −5 also multiply to +40, even though only the positive 5 ft by 8 ft deck can be built in real life.
Two negative values can satisfy the area equation, even though they cannot be the deck's side lengths.
Key concepts
Every quadratic equation you solve by factoring follows one connected game plan built around the zero trick:
Get 0 on one side before you factor
Two factors multiplying to 0 must include a zero factor. If the product is non-zero, neither factor is zero. If a number is sitting on the right, subtract it over first (x2+4x=12⟹x2+4x−12=0). If the left side is already factored but the right side is not 0, such as (x+1)(x+4)=10 or x(x+3)=40, do not set the factors equal to 10 or 40. Multiply the parentheses out first, subtract the number over to get =0, and then factor the new expression. On the other hand, if the equation is already factored and equal to 0, like (x−3)(x+5)=0, do not multiply it out; go straight to setting each factor equal to 0.
Match the factoring method to the terms you see
No constant number (x2−7x=0): Pull the common factor x out in front to get x(x−7)=0, which gives x=0 or x=7. Never drop the front x, because it gives the solution x=0.
Difference of squares (x2−9=0): Split the difference of squares into opposite signs (x+3)(x−3)=0 to get x=−3 or x=3.
Three terms starting with x2(x2−2x−24=0): Find the two numbers that multiply to the last number (−24) and add to the middle number (−2) to get (x−6)(x+4)=0, giving x=6 or x=−4. When both factors are identical, such as (x−3)(x−3)=0, the perfect square gives only one solution, x=3.
A number in front of x2(2x2+7x+3=0): If the front number doesn't divide out evenly, multiply the front and last numbers (2×3=6) to split the middle term in a 2×2 box and pull out row and column factors to get (2x+1)(x+3)=0.
Set each factor equal to 0 and check real-world answers
Write out each equation like 2x+1=0⟹x=−21 so you don't miss fractions, and in geometry problems, discard negative solutions that cannot be real lengths.
7
Practice
1
Solve (x+4)(x−7)=0.
Watch out for the common mistake of reading the signs directly off the parentheses and writing x=4 or x=−7; solving each equation flips the sign so the factor cancels to 0.
The equation is already written as two factors multiplying to 0. What equation does each parenthesis give when you set it equal to 0?
Because the product already equals 0, set each factor equal to 0:
x+4=0orx−7=0
Watch out for the common mistake of reading the signs directly off the parentheses and writing x=4 or x=−7; solving each equation flips the sign so the factor cancels to 0:
x=−4orx=7
Answer: x=−4 or x=7
2
Solve x2+9x+20=0.
Be careful not to stop at the factor numbers and write x=4 or x=5. Subtracting 4 and 5 to make each factor equal 0 makes both solutions negative.
Find two numbers that multiply to 20 and add to 9 to rewrite the left side as two parentheses multiplying to 0.
The numbers 4 and 5 multiply to 20 and add to 9, so the equation factors as
(x+4)(x+5)=0
Set each factor equal to 0 and solve. Be careful not to stop at the factor numbers and write x=4 or x=5. Subtracting 4 and 5 to make each factor equal 0 makes both solutions negative:
x+4x+5=0=0⟹x=−4⟹x=−5
Answer: x=−4 or x=−5
3
Solve x2−5x=14.
Do not factor the left side as x(x−5)=14 and set the factors equal to 14 (which gives the wrong answers x=14 and x=19). Subtract 14 from both sides first so the right side is 0.Watch the signs here: choosing +7 and −2 adds to +5 instead of −5 and leads to the opposite answers x=−7 or x=2. Since the sum is −5, the larger number gets the negative sign (−7 and +2).
Look at the right side first. What needs to happen before you try to factor?
Do not factor the left side as x(x−5)=14 and set the factors equal to 14 (which gives the wrong answers x=14 and x=19). Subtract 14 from both sides first so the right side is 0:
x2−5x−14=0
Now find two numbers that multiply to −14 and add to −5. Watch the signs here: choosing +7 and −2 adds to +5 instead of −5 and leads to the opposite answers x=−7 or x=2. Since the sum is −5, the larger number gets the negative sign (−7 and +2):
(x−7)(x+2)=0
x−7x+2=0=0⟹x=7⟹x=−2
Answer: x=7 or x=−2
4
Solve x2+6x=0.
There is no plain number at the end. What common factor can you pull out in front of both terms?
Pull out the common factor x:
x(x+6)=0
Set each of the two factors equal to 0. Don't divide away or ignore the x out in front and write only x=−6. Dividing by x requires x=0, so it would exclude the solution x=0. That front x is a factor of the product and gives the solution x=0:
xx=0=0orx+6orx=0=−6
Answer: x=0 or x=−6
5
Solve x2−25=0.
The middle x-term is missing (0x). How does a difference of squares split into factors?
The two numbers that multiply to −25 and add to 0 are 5 and −5, so the left side factors into opposite signs:
(x+5)(x−5)=0
Set each factor equal to 0. Watch out for only taking the positive number and writing just x=5, because both factors give a solution:
x+5x−5=0=0⟹x=−5⟹x=5
Answer: x=−5 or x=5
6
Solve x2−10x+25=0.
Be careful not to confuse this perfect square with a difference of squares and write x=5 or x=−5, and don't keep the minus sign from the parenthesis to get x=−5. Both factors give the exact same equation.
What two numbers multiply to +25 and add to −10?
Both numbers are −5, because (−5)×(−5)=25 and −5+(−5)=−10. This gives two identical factors:
(x−5)(x−5)=0
Be careful not to confuse this perfect square with a difference of squares and write x=5 or x=−5, and don't keep the minus sign from the parenthesis to get x=−5. Both factors give the exact same equation:
x−5=0⟹x=5
Answer: x=5
7
Solve 3x2+7x+2=0.
On the first factor, don't just flip the sign of +1 to write x=−1 (or divide 3 by −1 to get x=−3). Subtract 1 and divide by 3.
Set up a 2×2 box with 3x2 and 2. What two numbers multiply to 3×2=6 and add to 7?
Since 3×2=6, split 7x into 6x and 1x inside the 2×2 box and pull out the common factors along the rows and columns:
(3x+1)(x+2)=0
Set each factor equal to 0:
3x+1=0orx+2=0
On the first factor, don't just flip the sign of +1 to write x=−1 (or divide 3 by −1 to get x=−3). Subtract 1 and divide by 3:
3xx+2=−1=0⟹x=−31⟹x=−2
Answer: x=−31 or x=−2
8
Solve (x+2)(x−5)=8.
Do not fall into the trap of setting x+2=8 and x−5=8 (which gives x=6 and x=13, but only x=6 happens to satisfy the original equation) or setting the existing factors to 0(x=−2 and x=5). Because the right side is 8 instead of 0, multiply out the parentheses first.
Multiply out the parentheses, then subtract 8 from both sides before factoring again.
Do not fall into the trap of setting x+2=8 and x−5=8 (which gives x=6 and x=13, but only x=6 happens to satisfy the original equation) or setting the existing factors to 0(x=−2 and x=5). Because the right side is 8 instead of 0, multiply out the parentheses first:
x2−3x−10=8
Subtract 8 from both sides to get 0 on the right:
x2−3x−18=0
Now factor using −6 and 3, which multiply to −18 and add to −3:
(x−6)(x+3)=0
x−6x+3=0=0⟹x=6⟹x=−3
Answer: x=6 or x=−3
9
A rectangular garden has a length that is 4 feet longer than its width and an area of 45 square feet. What are the width and length of the garden?
Watch out for keeping x=−9 or mistaking the two numbers 5 and −9 for the width and length: a garden cannot have a negative width, so discard x=−9.
Call the width x and the length x+4, write an equation for the area, and get 0 on one side before factoring.
Multiplying width by length to get the area of 45 square feet gives
x(x+4)=45
Multiply x in on the left and subtract 45 from both sides so the right side is 0:
x2+4xx2+4x−45=45=0
Factor using 9 and −5, which multiply to −45 and add to 4:
(x+9)(x−5)=0
x+9x−5=0=0⟹x=−9⟹x=5
Watch out for keeping x=−9 or mistaking the two numbers 5 and −9 for the width and length: a garden cannot have a negative width, so discard x=−9. The width is x=5 feet, and plugging x=5 into x+4 gives the length of 5+4=9 feet.