Loading [MathJax]/jax/output/HTML-CSS/jax.js
Table of Contents

Solving quadratic equations

What would you do if you were asked to find x in the equation x2=45x+23? This is called a quadratic equation since it contains the unknown variable x squared. The name name comes from the Latin quadratus, which means square. Quadratic equations come up very often so mathematicians came up with a general formula for solving these equations. We will learn about this formula in this section.

Before we can apply the formula, we need to rewrite the equation in the form ax2+bx+c=0, where we moved all the numbers and xs to one side and left only 0 on the other side. This is the called the standard form of the quadratic equation. For example, to get the expression x2=45x+23 into the standard form, we can subtract 45x+23 from both sides of the equation to obtain x245x23=0. What are the values of x that satisfy this formula?

Claim

The solutions to the equation ax2+bx+c=0, are x1=b+b24ac2a   and   x2=bb24ac2a.

Let us now see how this formula is used to solve the equation x245x23=0. Finding the two solutions is a simple mechanical task of identifying a, b and c and plugging these numbers into the formula: x1=45+4524(1)(23)2=45.5054, x2=454524(1)(23)2=0.5054.

Proof of claim

This is an important proof. You should know how to derive the quadratic formula in case your younger brother asks you one day to derive the formula from first principles. To derive this formula, we will use the completing-the-square technique which we saw in the previous section. Don't bail out on me now, the proof is only two pages.

Starting from the equation ax2+bx+c=0, our first step will be to move c to the other side of the equation ax2+bx=c, and then to divide by a on both sides x2+bax=ca.

Now we must complete the square on the left-hand side, which is to say we ask the question: what are the values of h and k for this equation to hold (xh)2+k=x2+bax=ca? To find the values for h and k, we will expand the left-hand side to obtain (xh)2+k=x22hx+h2+k. We can now identify h by looking at the coefficients in front of x on both sides of the equation. We have 2h=ba and hence h=b2a.

So what do we have so far: (x+b2a)2=(x+b2a)(x+b2a)=x2+b2ax+xb2a+b24a2=x2+bax+b24a2. If we want to figure out what k is, we just have to move that last term to the other side: (x+b2a)2b24a2=x2+bax.

We can now continue with the proof where we left off x2+bax=ca. We replace the left-hand side by the complete-the-square expression and obtain (x+b2a)2b24a2=ca. From here on, we can use the standard procedure for solving equations. We put all the constants on the right-hand side (x+b2a)2=ca+b24a2. Next we take the square root of both sides. Since the square function maps both positive and negative numbers to the same value, this step will give us two solutions: x+b2a=±ca+b24a2. Let's take a moment to cleanup the mess on the right-hand side a bit: ca+b24a2=(4a)c(4a)a+b24a2=4ac+b24a2=b24ac2a.

Thus we have: x+b2a=±b24ac2a, which is just one step away from the final answer x=b2a±b24ac2a=b±b24ac2a. This completes the proof.

Alternative proof of claim

To have a proof we don't necessarily need to show the derivation of the formula as we did. The claim was that x1 and x2 are solutions. To prove the claim we could have simply plugged x1 and x2 into the quadratic equation and verified that we get zero. Verify on your own.

Applications

The Golden Ratio

The golden ratio, usually denoted φ=1+52=1.6180339 is a very important proportion in geometry, art, aesthetics, biology and mysticism. It comes about from the solution to the quadratic equation x2x1=0.

Using the quadratic formula we get the two solutions: x1=1+52=φ,x2=152=1φ.

You can learn more about the various contexts in which the golden ratio appears from the excellent wikipedia article on the subject. We will also see the golden ratio come up again several times in the remainder of the book.

Explanations

Multiple solutions

Often times, we are interested in only one of the two solutions to the quadratic equation. It will usually be obvious from the context of the problem which of the two solutions should be kept and which should be discarded. For example, the time of flight of a ball thrown in the air from a height of 3 meters with an initial velocity of 12 meters per second is obtained by solving a quadratic equation 0=(4.9)t2+12t+3. The two solutions of the quadratic equation are t1=0.229 and t2=2.678. The first answer t1 corresponds to a time in the past so must be rejected as invalid. The correct answer is t2. The ball will hit the ground after t=2.678 seconds.

Relation to factoring

In the previous section we discussed the quadratic factoring operation by which we could rewrite a quadratic function as the product of two terms f(x)=ax2+bx+c=(xx1)(xx2). The two numbers x1 and x2 are called the roots of the function: this is where the function f(x) touches the x axis.

Using the quadratic equation you now have the ability to factor any quadratic equation. Just use the quadratic formula to find the two solutions x1 and x2 and then you can rewrite the expression as (xx1)(xx2).

Some quadratic expression cannot be factored, however. These correspond to quadratic functions whose graphs do not touch the x axis. They have no solutions (no roots). There is a quick test you can use to check if a quadratic function f(x)=ax2+bx+c has roots (touches or crosses the x axis) or doesn't have roots (never touches the x axis). If b24ac>0 then the function f has two roots. If b24ac=0, the function has only one root. This corresponds to the special case when the function touches the x axis only at one point. If b24ac<0, the function has no real roots. If you try to use the formula for finding the solutions, you will fail because taking the square root of a negative number is not allowed. Think about it—how could you square a number and obtain a negative number?