Vertex Form Calculator

Move a quadratic between standard, vertex and factored forms.

The coefficient of x², not 0.

The coefficient of x.

The constant term.

Try

Result

You entered1x2+−6x+51x^2 + -6x + 5

(x−3)2−4\displaystyle (x - 3)^2 - 4

Vertex

(3,−4)\displaystyle \left(3, -4\right)

Roots

x=1,x=5\displaystyle x = 1, x = 5
Show the work
  1. Vertex form of a quadratic

    Completing the square rewrites the quadratic so that the vertex (h,k)(h, k) can be read off. Here a=1a = 1, b=−6b = -6 and c=5c = 5.

    Using ax2+bx+c=a(x−h)2+kax^2 + bx + c = a\left(x - h\right)^2 + k

  2. x-coordinate of the vertex

    Expanding a(x−h)2a(x - h)^2 gives an xx term of −2ah-2ah, which must equal bb; solving for hh gives the vertex position.

    h=−b2a=−(−6)2×1=−(−6)2=3\begin{aligned} h &= -\frac{b}{2a} \\ &= -\frac{\left(-6\right)}{2 \times 1} \\ &= -\frac{\left(-6\right)}{2} \\ &= 3 \end{aligned}
  3. y-coordinate of the vertex

    Expanding a(x−h)2+ka(x - h)^2 + k gives a constant of ah2+kah^2 + k, which must equal cc; solving for kk gives the height of the vertex. Here h=3h = 3.

    k=c−ah2=5−1×32=5−9=−4\begin{aligned} k &= c - ah^2 \\ &= 5 - 1 \times 3^2 \\ &= 5 - 9 \\ &= -4 \end{aligned}
  4. Write in vertex form

    Put a=1a = 1, h=3h = 3 and k=−4k = -4 into the vertex form. Subtracting a negative hh adds, so the bracket reads (x+∣h∣)(x + |h|), and a kk of 0 is left out.

    Using a(x−h)2+ka\left(x - h\right)^2 + k

    1(x−3)2+(−4)=(x−3)2−41\left(x - 3\right)^2 + \left(-4\right) = \left(x - 3\right)^2 - 4
  5. Result

    So the quadratic is (x−3)2−4\left(x - 3\right)^2 - 4, with its vertex at (3,−4)\left(3, -4\right).

Worked examples