Graphing quadratic functions — vertex, axis, direction, roots from equation

medium CBSE 4 min read

Question

Given a quadratic equation y=ax2+bx+cy = ax^2 + bx + c, how do we determine the vertex, axis of symmetry, direction of opening, and roots to sketch the graph?

Solution — Step by Step

The coefficient aa tells you everything about direction:

  • a>0a > 0: parabola opens upward (U-shaped, happy face)
  • a<0a < 0: parabola opens downward (inverted U, sad face)

The larger a|a|, the narrower the parabola. a<1|a| < 1 makes it wider than y=x2y = x^2.

The axis of symmetry is the vertical line:

x=b2ax = -\frac{b}{2a}

The vertex is the point on this axis:

Vertex=(b2a,  D4a)\text{Vertex} = \left(-\frac{b}{2a}, \; -\frac{D}{4a}\right)

where D=b24acD = b^2 - 4ac (the discriminant).

Alternatively, substitute x=b/(2a)x = -b/(2a) back into the equation to find the yy-coordinate.

The vertex is the minimum point when a>0a > 0 and the maximum point when a<0a < 0.

Set y=0y = 0: solve ax2+bx+c=0ax^2 + bx + c = 0.

x=b±D2ax = \frac{-b \pm \sqrt{D}}{2a}
  • D>0D > 0: two distinct real roots (parabola crosses x-axis at 2 points)
  • D=0D = 0: one repeated root (parabola touches x-axis at vertex)
  • D<0D < 0: no real roots (parabola does not touch x-axis)

The y-intercept is simply cc (put x=0x = 0).

Example: Sketch y=x24x+3y = x^2 - 4x + 3.

Here a=1a = 1 (upward), b=4b = -4, c=3c = 3.

Axis of symmetry: x=(4)/(2×1)=2x = -(-4)/(2 \times 1) = 2

Vertex: y=(2)24(2)+3=48+3=1y = (2)^2 - 4(2) + 3 = 4 - 8 + 3 = -1. So vertex = (2,1)(2, -1).

D=1612=4>0D = 16 - 12 = 4 > 0: two roots.

Roots: x=4±22=1x = \frac{4 \pm 2}{2} = 1 and 33.

y-intercept: c=3c = 3, so point (0,3)(0, 3).

Plot these points — vertex at (2,1)(2, -1), crosses x-axis at (1,0)(1, 0) and (3,0)(3, 0), y-intercept at (0,3)(0, 3) — and draw a smooth U-shaped curve.

flowchart TD
    A["y = ax2 + bx + c"] --> B["Check sign of a: up or down?"]
    B --> C["Find axis: x = minus b over 2a"]
    C --> D["Find vertex y-coordinate: substitute x back"]
    D --> E["Find discriminant D = b2 minus 4ac"]
    E --> F{"D value?"}
    F -->|"D greater than 0"| G["Two x-intercepts: use quadratic formula"]
    F -->|"D = 0"| H["One x-intercept at vertex"]
    F -->|"D less than 0"| I["No x-intercepts"]
    G --> J["Plot vertex, roots, y-intercept, draw curve"]
    H --> J
    I --> J

Why This Works

Every quadratic function is a parabola because the x2x^2 term creates a symmetric curve. Completing the square converts y=ax2+bx+cy = ax^2 + bx + c into y=a(xh)2+ky = a(x - h)^2 + k form, where (h,k)(h, k) is the vertex. The b/(2a)-b/(2a) formula for the axis of symmetry comes directly from this completion.

The discriminant determines how the parabola interacts with the x-axis because it tells us whether the quadratic equation has real solutions.

Alternative Method

Instead of memorising the vertex formula, complete the square directly. For y=x24x+3y = x^2 - 4x + 3: take half of bb (which is 2-2), square it (44), add and subtract: y=(x24x+4)4+3=(x2)21y = (x^2 - 4x + 4) - 4 + 3 = (x-2)^2 - 1. The vertex is immediately visible as (2,1)(2, -1). This method works for any quadratic and builds deeper understanding.

Common Mistake

Students forget to include the sign of aa in the vertex formula. They calculate x=b/2ax = -b/2a correctly but then find the y-coordinate by computing D/4a-D/4a and forget that aa could be negative. A safer approach: just substitute x=b/(2a)x = -b/(2a) back into the original equation to get the y-coordinate. This avoids the sign confusion entirely.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next