How to Complete the Square: Walkthroughs for Finding Vertex and X-Intercepts

  • Thread starter Thread starter schlynn
  • Start date Start date
  • Tags Tags
    Square
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 3K views
schlynn
Messages
88
Reaction score
0

Homework Statement


I need to know how to complete the square, I need to know how to do this to get
(this is to find the vertex of the quadratic function and the x intercept(s)
f(x)=aX2+bX+c to f(x)=a(x-h)2+k
It would be helpfull to see walkthroughs for when a=1 and when "a" does not equal 1.
questions:
-3x2+9x+(1/4)
and
x2-6x-2

Homework Equations


I don't think there's any, just that to get y set x=0 and to get x set y=0, for the intersepts that is.
h=horizontal shift in the graph
k=vertical shift in the graph

there is this shortcut too...
f(x)=a(x-h)2+k
and the vertex will be
((-b/2a),c-(b2/4a))

The Attempt at a Solution


Well, I'm learning this all out of school, and the book doesn't really explain how to do this very well, so I have no idea what do to. Could someone make walkthroughs on how to solve both of the question? This will help me tremendusly as I have been stuck on what to do now.
 
on Phys.org
Here's a quadratic with leading coefficient one.

[tex] g(x) = x^2 + 6x -120[/tex]

  • Here [tex]b = 6[/tex]. Start by calculating half it

    [tex] \frac b 2 = 3[/tex]
  • Add and immediately subtract the square of 3, as shown here. (I've grouped the terms
    together for easier reading.) This changes the look of the right-hand-side, but since 9-9=0,
    no numerical change has occurred

    [tex] g(x) = \left( x^2 + 6x + 3^2 \right) - 3^2 - 120[/tex]
  • The portion in parentheses is [tex](x-3)^2[/tex], so we have

    [tex] g(x) = (x-3)^2 - 129[/tex]
  • The vertex is the point [tex](3,-129)[/tex]. The final step is to find the intercepts.
    [tex] \begin{align*}<br /> (x-3)^2 - 129 & = 0\\<br /> (x-3)^2 & = 129 \\<br /> x-3 & = \pm \sqrt{\, 129} \\<br /> x & = 3 \pm \sqrt{\, 120}<br /> \end{align*}[/tex]

    The intercepts are [tex](3 \pm \sqrt{\, 129}, 0 )[/tex].

For the second question

[tex] h(x) = 3x^2 + 12x - 111[/tex]

Here is the work to complete the square.

[tex] \begin{align*}<br /> h(x) & = 3x^2 + 12x - 111 \\<br /> & = 3 \left(x^2 + 4x \right) - 111\\<br /> & = 3 \left( \left(x^2 + 4x + 2^2\right) - 2^2 \right) - 111 \\<br /> & = 3 ((x+2)^2 - 4) - 111 \\<br /> & = 3(x+2)^2 - 12 - 111 = 3(x+2)^2 - 123<br /> \end{align*}[/tex]

The vertex is the point [tex](-2, -123)[/tex]. To find the intercepts

[tex] \begin{align*}<br /> 3(x+2)^2 - 123 & = 0\\<br /> 3(x+2)^2 & = 123\\<br /> (x+2)^2 & = \frac{123} 3 = 41\\<br /> x+2 & = \pm \sqrt{\, 41}\\<br /> x & = -2 \pm \sqrt{\, 41}<br /> \end{align*}[/tex]

The two intercepts are [tex](-2 \pm \sqrt{\, 41}, 0)[/tex].
 
statdad said:
[tex] g(x) = \left( x^2 + 6x + 3^2 \right) - 3^2 - 120[/tex]

[*] The portion in parentheses is [tex](x-3)^2[/tex], so we have

[tex] g(x) = (x-3)^2 - 129[/tex]

[*] The vertex is the point [tex](3,-129)[/tex].
Just a minor sign error there, Statdad.
 
[tex]ax^2 + bx + c = a(x^2 + \frac{b}{a} + \frac{c}{a})[/tex]
[tex]ax^2 + bx + c = a((x + \frac{b}{2a})^2 +\frac{c}{a})- \left[\frac{b}{2a}\right]^2[/tex]
[tex]ax^2 + bx + c =a(x + \frac{b}{2a})^2 - \left[\frac{b}{2a}\right]^2 + c[/tex]

Vertex for any function like
[tex](x+a)^2 + b= \left[\stackrel{-a}{ b}\right][/tex]

The reason for this is because for the function to be at its lowest value, given that the first part is squared it has to be equal to 0. The x value for this co-ordinate therefore has to be the negative of a. b is more obvious.

Intercepts

You can do this two ways (assuming that because you have completed the square therefore you cannot factorise) using the quadratic formula or an easier way, manipulating the completed square you have.

[tex](x+a)^2 - b = 0[/tex]
[tex](x+a)^2 = b[/tex]
[tex](x+a) = \sqrt{b}[/tex]
[tex]x = -a \pm \sqrt{b}[/tex]

What if b is positive

[tex](x+a)^2 + b = 0[/tex]

If b is positive then there is no solution for the function = 0. This is because [tex](x+a)^2[/tex] does not intersect the x-axis but touches it at (-a,0). Any increment to such a function will not have real roots.

You can prove this using the discriminant of the quadratic [tex]b^2 - 4ac[/tex].

Edit:

[tex]-3x^2+9x+\frac{1}{4}[/tex]

1. Take out the -3 for all the expressions
[tex]ax^2 + bx + c = a(x^2 + \frac{b}{a} + \frac{c}{a})[/tex]

2. Now complete the square within the brackets remembering that the co-efficient of x, b is now actually [tex]\frac{b}{a}[/tex] and becomes [tex]\frac{b}{2a}[/tex].
[tex]ax^2 + bx + c = a((x + \frac{b}{2a})^2 +\frac{c}{a}) - \left[\frac{b}{2a}\right]^2[/tex]

3. You can now muliply the constant out to get.
[tex]ax^2 + bx + c =a(x + \frac{b}{2a})^2 - \left[\frac{b}{2a}\right]^2 + c[/tex]


[tex]x^2-6x-2[/tex] You will be able to do now.
 
Last edited: