Completing the square and the quadratic formula: Difference between revisions

From Applied Science
(No difference)

Revision as of 03:58, 8 February 2022

Completing the square is best viewed with a geometric perspective. First let me show a figure:

The graphical association is pretty clear. What, sometimes, is not very obvious, is the fact that [math]\displaystyle{ (a + b)^2 }[/math] can be seen as literal. The whole square has its side given by a sum of two shorter sides, [math]\displaystyle{ a }[/math] and [math]\displaystyle{ b }[/math].

The idea of completing the square is to rewrite quadratic equations in a form that has a term in the form [math]\displaystyle{ (a + b)^2 }[/math]. We all learn at school that quadratic equations have this form [math]\displaystyle{ ax^2 + bx + c }[/math]. When [math]\displaystyle{ c = 0 }[/math] it's easy to calculate the roots because we can factor out in the form [math]\displaystyle{ x(ax + b) }[/math]. Then we solve a linear equation. If we have an equation with the form [math]\displaystyle{ x^2 + bx }[/math] it's really the same as [math]\displaystyle{ a^2 + ab }[/math] as the figure above shows.

Graphically, we have this:

[math]\displaystyle{ x^2 + bx + \left(\frac{b}{2}\right)^2 = \left(x + \frac{b}{2}\right)^2 }[/math] (Notice that to complete the square we did increase the total area)

It's kinda funny how most textbooks mention this topic without making the association with the squares. Squares, literally squares.

Reference: I have seen all that graphical reasoning in the site mathisfun.

Proof of the formula to solve 2nd degree polynomial equations

We can use the process of completing the squares to find a formula to solve quadratic equations. Try to isolate [math]\displaystyle{ x }[/math] in [math]\displaystyle{ ax^2 + bx + c = 0 }[/math]. You are quickly going to see that, due to the equation having both [math]\displaystyle{ x }[/math] and [math]\displaystyle{ x^2 }[/math], it's going to be hard to achieve it. We really have to rewrite the equation to successfully isolate [math]\displaystyle{ x }[/math]. Look back at the previous figure, the only difference between [math]\displaystyle{ ax^2 + bx + c }[/math] and [math]\displaystyle{ x^2 + bx }[/math] is that we have a constant multiplying the square (making it larger or smaller) and a lonely constant.

Don't be fooled by the figure. The square [math]\displaystyle{ x^2 }[/math] is obviously larger, but remember that the sides are variable. We don't know the length of [math]\displaystyle{ x }[/math].



1st we can divide everything by [math]\displaystyle{ a }[/math] because if [math]\displaystyle{ a = 0 }[/math] we no longer have a quadratic equation:

[math]\displaystyle{ x^2 + \frac{b}{a}x + \frac{c}{a} = 0 \iff x^2 + \frac{b}{a}x = -\frac{c}{a} }[/math]

If we have [math]\displaystyle{ x^2 + mx }[/math], can we guess the missing term to have a complete square? It's [math]\displaystyle{ \left(\frac{m}{2}\right)^2 }[/math] because the middle term is always 2 x 1st x 2nd terms. Therefore:

[math]\displaystyle{ x^2 + \frac{b}{a}x + \left(\frac{b}{2a}\right)^2 = -\frac{c}{a} + \left(\frac{b}{2a}\right)^2 }[/math] (we did not change the area of the square because both sides of the equation remain equal to each other. To put it into a different perspective. To add the same number to both sides of an equation is the same thing as to add zero to one side only. In other words, it's the same as adding [math]\displaystyle{ (y - y) }[/math] to either side.)

File:Square_complete3.png I'm leaving this error here for reference. The mistake in this reasoning is that the square to the right has an area that is obviously smaller than the initial area to to the left. That's why this reasoning is going to yield a formula that is somewhat similar to the formula that we are looking for, but with some key differences.

Bhaskara's Formula: I have no idea why in Brazil the formula to solve quadratic equations bears that name, while other countries in the world do not make that association with quadratic equations and that Indian mathematician. Another curious fact is that there are two mathematicians with that name and most people don't know that. One lived thousands of years before Christ, the other hundreds of years after Christ.

Completing the cube: one may have wondered if the same procedure can work for cubes. The geometric idea is quite applicable. However, we have to impose a certain condition. The cubic equation must be such that it only has one root, the cubic root.