Algebra · Quadratic function

Quadratic function

A quadratic function has the form f(x) = ax² + bx + c with a ≠ 0; its graph is a parabola. Change its coefficients, vertex or roots and see how the different forms describe the same curve.

01

Quadratic functions in this visualization

A quadratic function is a function f(x)=ax2+bx+cf(x) = ax^2 + bx + c with a≠0a \ne 0. Its graph is a parabola, opening up when a>0a > 0 and down when a<0a < 0. This page writes one quadratic in three equivalent forms: the mode dial at the top of the panel picks the one you turn, and all three stay in step while you drag the graph or turn the controls.

Standard · vertex · factored form
y=ax2+bx+c=a(x−h)2+k=a(x−x1)(x−x2)y = ax^2 + bx + c = a(x - h)^2 + k = a(x - x_1)(x - x_2)

Each form shows one feature of the graph. In the standard form, cc gives the y-intercept: the graph crosses the y-axis at the hollow point (0,c)(0, c); its mirror image (2h,c)(2h, c) shows the symmetry. The vertex form shows the vertex (h,k)(h, k) and the axis of symmetry x=hx = h. The factored form shows the roots, where the graph meets the x-axis; over the real numbers it exists only when the discriminant is not negative.

Vertex and roots from a, b, c
h=−b2a,k=c−b24a,Δ=b2−4ac,r1,2=−b±Δ2ah = -\frac{b}{2a},\quad k = c - \frac{b^2}{4a},\qquad \Delta = b^2 - 4ac,\quad r_{1,2} = \frac{-b \pm \sqrt{\Delta}}{2a}
Completing the square: from standard to vertex form
ax2+bx+c=a(x2+bax)+c=a(x2+bax+b24a2)−b24a+c=a(x+b2a)2+c−b24a\begin{aligned} ax^2 + bx + c &= a\left(x^2 + \frac{b}{a}x\right) + c \\ &= a\left(x^2 + \frac{b}{a}x + \frac{b^2}{4a^2}\right) - \frac{b^2}{4a} + c \\ &= a\left(x + \frac{b}{2a}\right)^2 + c - \frac{b^2}{4a} \end{aligned}
02

Things to notice

  • Completing the square is a translation: the three steps above turn the standard form into the vertex form, and a(x−h)2+ka(x - h)^2 + k is y=ax2y = ax^2 moved hh along the x-axis and kk up or down. Turning hh or kk in the vertex form, or dragging the vertex, draws y=ax2y = ax^2 and the two moves.
  • Δ>0\Delta > 0: two real roots; Δ=0\Delta = 0: one double root, the vertex on the axis; Δ<0\Delta < 0: no real roots — the equation ax2+bx+c=0ax^2 + bx + c = 0 then has two complex conjugate roots, which are not points of this graph.
  • aa is the same number in all three forms: it sets how wide the parabola is and which way it opens. Turning bb alone does not slide the graph sideways; the vertex runs along the parabola y=c−ax2y = c - ax^2. Turning aa alone holds something different in each form: in the standard form (0,c)(0, c) and the tangent y=bx+cy = bx + c there stay put — every parabola touches that line at that point — and the vertex runs along the line y=c+b2xy = c + \tfrac{b}{2}x; in the vertex form the vertex stays; in the factored form the roots stay and the vertex rides the axis of symmetry.
  • The page computes with exact fractions, so the forms show exact decimals, fractions or square roots. A number too long to show is rounded, and its equation is then written with ≈. The two axes share one scale, except in the thrown-ball highlight; a note on the graph says so whenever they do not.
03

Controls

  • The mode dial picks the form you turn: the standard form sets aa, bb and cc (knobs), the vertex form aa and the vertex (h,k)(h, k), the factored form aa and the two roots (thumbwheels for fine steps); with no real roots the factored position is blocked. Open Conversion details to see the other two forms' numbers with the textbook formulas.
  • Grabbing a point on the graph switches to its form. Drag the vertex to move the parabola, a root along the x-axis (aa and the other root stay; an irrational other root is first written to six decimal places, a change too small to see; a double root moves the whole parabola sideways), or the y-intercept along the y-axis (only cc changes); drag elsewhere to pan. Click any number to type it, as a decimal or a fraction such as 3/4.
  • Presentation mode opens a full-screen view for projectors (the arrow keys move the parabola; H hides the answers: only the numbers of the form you turn stay, the other two forms and the conversions show question marks).
04

Related