JJxSly

Completing the Square on the Standard Form of Quadratic

I wanted to see what LaTeX would look like here so this is a brief progression I put together for going from the standard form of a quadratic to the vertex form using completing the square. There's more background and a geometric perspective I think is helpful here, but I wanted to try it out.

Given: f(x)=ax2+bx+c.
First move the c constant to the other side, since we want to focus on the variables to "complete the square:"

f(x)c=ax2+bx

Factor out an a:

f(x)c=a(x2+bax)

Take ((12)(ba))2 or (b2a)2=b24a2 and add to both sides (adding by zero):1

f(x)c+a(b24a2)=a(x2+bax+b24a2)

Then factor the x2+bax+b24a2 term and simplify the c+a(b24a2) term:2

f(x)k=a(x+b2a)2

Rewrite:

  1. You can distribute the a on the right-hand side to notice why we're multiplying by a on the left-hand side.

  2. we can let k=c+a(b24a2) since it is some constant. Also k=4acb24a when you add the fraction. Notice that the constant term inside the parenthesis for the right-hand side of the equation is just b2a.

#Blaugust2024