An expression such as is not true or false; it is just a recipe waiting for a number. Set it equal to something and it becomes a claim about , and the claim is true for some values and false for others. Finding exactly which ones is what solving means.
This lesson takes that from the easiest case to the first genuinely hard one. It assumes the laws of the previous lesson, since every step in a solution is one of them applied to both sides, and it ends with a formula for every quadratic that is derived here rather than quoted.
From expression to statement
An equation asserts that two expressions name the same number. Its solutions are the values of the unknown that make the assertion true, and to solve it is to replace it with a chain of equations having the same solutions until the last one reads .
The chain works because of the equality fact from the previous lesson: doing the same thing to two names for one number leaves two names for one number. Adding, subtracting, and multiplying by anything non-zero all preserve the solution set exactly, so nothing is gained or lost.
Two operations do not preserve it, and both are traps worth naming now. Multiplying by an expression that might be zero can invent solutions, since has one solution but has two. Squaring both sides does the same, because becomes , whose solutions are and , and fails in the original since the square root sign means the non-negative root. The fix is not to avoid these moves but to check every candidate in the original equation, which costs seconds.
Linear equations by inverse operations
A linear equation has the unknown to the first power only, and it always yields to the same strategy: undo the operations applied to , in reverse order. Collect all the terms on one side, all the numbers on the other, and divide by whatever multiplies .
Example. Solve .
Distribute: , so . Subtract from both sides: . Add : . Divide by : . Check in the original, which is not optional: the left is and the right is .
Now you. Solve and check it.
Answer
, so and . Checking, the left is and the right is .
Not every linear equation has exactly one solution. Reduce and the unknown vanishes, leaving , true for every : the equation was an identity in disguise. Reduce and you get , false for every , so there is no solution. A vanishing unknown is information, not a mistake, and which of the two you have is decided by whether what remains is true.
Quadratics, and why factoring is not enough
A quadratic equation is with not zero. When the left side factors over the integers the work is already done, because a product is zero exactly when one factor is: from read off and immediately.
The method is fast and it is unreliable, because most quadratics do not factor over the integers. The equation has perfectly good solutions and no integer pair multiplies to while adding to . Searching for a factorisation that does not exist can take a long time before you conclude anything, so a method that always works is worth having.
The one that always works comes from noticing which quadratics are easy. Anything of the form is solved in one line: take square roots, remembering both signs, so and . So the task is to turn any quadratic into that shape, and the technique for doing so is called completing the square.
Completing the square
The identity to exploit is . Given , matching the middle terms gives , so , and the perfect square that starts with those two terms is . It has an extra on the end, so subtract it back off: . That single line is the whole technique.
Example. Solve exactly, then to four decimal places.
Divide through by so the leading coefficient is : . Half of is , so , and the equation becomes , that is . Take roots: . Since , the solutions are and . Check the first: to the precision shown.
Now you. Solve by completing the square, exactly and to four decimals.
Answer
Divide by : . Half of is , so and . Then , and , giving and .
The formula, derived
Run that procedure once on the general equation and you never have to run it again. Start from and divide by , which is legal because is not zero:
Complete the square on the first two terms, with half the middle coefficient being :
Move the constants across and put them over the common denominator :
Take square roots of both sides. The right-hand denominator is a perfect square, so its root is , and
That is the quadratic formula, and it is not a fact to be memorised on authority: it is the completed square, done once with letters instead of numbers. Anyone who forgets it can rederive it in five lines. Check it against the worked example above, where , , : the formula gives , and , so or as before.
The discriminant tells you before you start
The quantity under the root, , is the discriminant, and it decides the character of the answer before any arithmetic. If it is positive there are two distinct real solutions. If it is zero the collapses and there is one, a repeated root at . If it is negative there are no real solutions at all, because no real number squares to a negative, which is precisely the gap left open in the first lesson at .
So can be dismissed in one step: , negative, no real solutions. This is not a failure of technique. The equation asks for a number whose square plus four times itself is , and on the real line there is none. The complex numbers supply two, and this course leaves them alone.
A repeated root is the boundary case between the two, and it is what a projectile problem gives when the object just grazes the height asked about. Discriminant zero is the algebraic signature of tangency, a fact that becomes visible as a picture in the next lesson but one.
A quadratic that came from somewhere
Formulas earn their keep on real problems. Throw a stone upward at m s⁻¹ from a cliff m above the sea. Ignoring air resistance, its height in metres after seconds is , where is half the gravitational acceleration of m s⁻².
Example. When does the stone hit the water?
Set : , or after multiplying by . The discriminant is , whose root is . So , giving s and s. Both are solutions of the equation; only one is a solution of the problem, since the stone was not in flight before it was thrown. Discarding a mathematically valid root on physical grounds is a normal part of modelling, and it should be done explicitly rather than silently.
Now you. A ball is thrown upward at m s⁻¹ from a m balcony, so . When does it land?
Answer
, discriminant , root . So s, the negative root being rejected.
The same quadratic answers other questions about the flight. The stone is highest when the two roots of coincide, which is when the discriminant vanishes, and by symmetry that is halfway between the roots of any horizontal cut: s, at which m.
What the formula reveals, and cannot do
Look at the formula rather than through it. The solutions are expressed in terms of , and , so as those coefficients vary the answers vary with them, and this is the first time in the course that a quantity has been described as depending on other quantities in a way no single equation captures. That dependence is the subject of the next lesson.
Two honest limits close this one. The formula is exact but not always the best way to compute: when is enormously larger than , subtracting two nearly equal numbers in the numerator loses precision, and numerical libraries compute one root by the formula and the other from the fact that the roots multiply to . And it does not generalise as far as one would hope. There is a formula for the cubic, published by Cardano in 1545, and one for the quartic, but Abel proved in 1824 that no formula in radicals exists for the general fifth-degree equation. Solving by formula stops at degree four, permanently.