Name the numbers
n and n+5 The numbers differ by 5, so call the smaller one n and the larger one n + 5.
Form the equation
n(n+5)=84 Their product is 84.
Expand and rearrange
n2+5n=84⇒n2+5n−84=0 Multiply out, then subtract 84 so the equation equals zero.
Look for the pair of numbers
product=−84,sum=5 For n2 + bn + c the two numbers in the brackets must multiply to c=−84 and add to b=5.
List the factor pairs of -84
(−84)×1,(−42)×2,(−28)×3,(−21)×4,(−14)×6,(−12)×7,(−7)×12,(−6)×14,(−4)×21,(−3)×28,(−2)×42,(−1)×84 Write out every pair of whole numbers whose product is -84, then test which pair also adds to 5.
Choose the pair that works
(−7)×12=−84,(−7)+12=5 -7 and 12 pass both tests, so they are the numbers that go in the brackets.
Write the factorised equation
(n−7)(n+12)=0 The product of the brackets is zero — this is the form the null-factor law needs.
Check the factorisation by expanding
(n−7)(n+12)=n2+5n−84 Multiplying the brackets back out returns the original quadratic, so the factorisation is right.
Apply the null-factor law
n−7=0orn+12=0 If several things multiply to give zero, at least one of them must be zero. So set each bracket equal to zero in turn.
Solve bracket 1
n−7=0⇒n=7 Solve the little linear equation n−7=0 to get n=7.
Solve bracket 2
n+12=0⇒n=−12 Solve the little linear equation n+12=0 to get n=−12.
State the solutions
n=7 or n=−12 Each bracket gives one solution, so a quadratic that factorises into two different brackets has two solutions.
Reject the impossible solution
n=−12 is rejected, so n=7 Both numbers must be positive, so the negative root cannot be the answer.
Answer the question that was asked
7 and 12 The numbers are n=7 and n+5=12. Check: 12−7=5 and 7×12=84.
Check the solution n=7
(7)2+5(7)−84=49+35−84=0 Substituting n=7 back into the original quadratic gives 0, so this solution is correct.