📘 CodingMarble Learn

Quadratic Functions and Their Graphs

A quadratic function is y = ax² + bx + c with a ≠ 0. Its graph is a U-shaped curve called a parabola. If a > 0 it opens up and has a lowest point; if a < 0 it opens down and has a highest point. That turning point is the vertex, at x = −b/2a. In vertex form y = a(x − h)² + k the vertex is (h, k).

🎬 Step-by-step story

  1. Take y = x². Square each x and plot the point. The points join into a U-shaped curve. It is called a parabola.
  2. Now change a. A big a makes the U narrow. A small a makes it wide. A negative a turns it upside down.
  3. In y = (x − h)² + k, h slides the curve right or left and k slides it up or down. The turning point, the vertex, sits at (h, k).
  4. Most functions come as y = ax² + bx + c. Find the vertex with x = −b/2a, then put that x back in to get y.
  5. A ball thrown up follows a parabola. The vertex tells the highest point. Where the curve meets the axis, the ball is on the ground.
  6. Your turn. Move a, h and k and watch the vertex, the mirror line and the roots change.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why is the graph curved and not straight?

Because y grows as x times x. Going from x = 1 to 2 adds 3, from 2 to 3 adds 5, from 3 to 4 adds 7. The steps keep growing, so the graph bends. See the table of dots in step 1.

Why does y = (x − 2)² move to the right, not the left?

The lowest value, 0, now happens when x − 2 = 0, that is at x = 2. So the bottom of the U has moved to x = 2, on the right. Watch it slide in step 3.

What does a do if the shape stays a parabola?

a stretches the curve up or down. Bigger |a| makes y grow faster, so the U is narrower; a negative a flips it. See step 2.

Where does x = −b/2a come from?

Completing the square turns ax² + bx + c into a(x + b/2a)² + something. The bracket is smallest (zero) when x = −b/2a, so that is where the vertex is. Step 4 works it out line by line.

How do I know if the vertex is a maximum or a minimum?

Look at the sign of a. Positive a: U shape, lowest point, minimum. Negative a: ∩ shape, highest point, maximum. The ball in step 5 has a = −5, so its vertex is the top.

Can a parabola have no roots?

Yes. If a U-shaped curve has its vertex above the x-axis, it never comes down to meet it. In free play, set a = 1 and k = 2 and the green root dots disappear.

What is a quadratic function?

A function is a rule that gives one output y for each input x.

A quadratic function has the rule y = ax² + bx + c. Here a, b and c are fixed numbers and a ≠ 0. The highest power of x is 2.

You can spot a quadratic in a table too. For x = 0, 1, 2, 3, 4 the y-values of y = x² are 0, 1, 4, 9, 16. The first differences are 1, 3, 5, 7. The second differences are all 2. Equal second differences mean the pattern is quadratic.

The graph of every quadratic function is a parabola. It is a smooth U or ∩ shape. It is never a straight line and never has sharp corners.

Key features of a parabola

Transformations and vertex form

Start with the parent graph y = x². Every other parabola is this one stretched, flipped or moved.

Vertex form: y = a(x − h)² + k.

So the vertex is (h, k) and the axis is x = h.

From standard to vertex form (completing the square): y = x² − 6x + 5 = (x² − 6x + 9) − 9 + 5 = (x − 3)² − 4. Vertex (3, −4).

Factored form y = a(x − p)(x − q) shows the roots p and q directly. The axis is halfway: x = (p + q)/2.

Quadratic functions and equations

Solving ax² + bx + c = 0 is the same as asking: where does the parabola cross the x-axis?

If the roots are not neat, read approximate roots from the graph, or narrow them down with a table: if y changes sign between x = 1 and x = 2, a root lies between them.

Parabola and a line: to see where y = x² meets y = x + 2, set x² = x + 2, so x² − x − 2 = 0, giving x = 2 or x = −1. Two meeting points. If the new equation has D = 0 the line only touches (a tangent); if D < 0 they never meet.

Maximum and minimum problems

Many real questions ask for "the most" or "the least". If the quantity is a quadratic, the answer is at the vertex.

  1. Write the quantity as a quadratic in one variable.
  2. Find the vertex with x = −b/2a (or vertex form).
  3. Check it makes sense (length positive, time inside the allowed range).

Example: 40 m of fence makes a rectangle. If one side is x, the other is 20 − x. Area A = x(20 − x) = −x² + 20x. Vertex at x = −20/(2·(−1)) = 10. Largest area = 10 × 10 = 100 m². The best rectangle is a square.

Try it: a paper-ball parabola

Throw a paper ball gently across a room in front of a wall. Ask a friend to film it on a phone. Pause the video every few frames and mark the ball on the screen with a pen or a sticky note. Join the marks: you get a ∩-shaped parabola. The highest mark is the vertex. Now open the 3D above, set a negative a and try to match your curve.

Key formulas and definitions

Worked examples

1. Say whether y = −2x² + 3 opens up or down and give its vertex.

a = −2 is negative, so it opens down (∩). There is no bx term, so b = 0 and the vertex is at x = 0, y = 3. Vertex (0, 3), a maximum.

2. Write the vertex, axis and range of y = 3(x + 1)² − 5.

Compare with a(x − h)² + k: h = −1, k = −5. Vertex (−1, −5). Axis x = −1. a = 3 > 0, so the range is y ≥ −5.

3. Find the vertex of y = x² − 4x + 3 and sketch it.

a = 1, b = −4. x = −b/2a = 4/2 = 2. y = 4 − 8 + 3 = −1. Vertex (2, −1). y-intercept 3. Roots: (x − 1)(x − 3) = 0, so x = 1 and 3. Plot these five facts and draw a U through them.

4. Write y = 2x² + 8x + 5 in vertex form.

Take 2 out of the first two terms: y = 2(x² + 4x) + 5. Complete the square: x² + 4x = (x + 2)² − 4. So y = 2[(x + 2)² − 4] + 5 = 2(x + 2)² − 3. Vertex (−2, −3).

5. A ball's height is h = 20t − 5t² metres after t seconds. Find the highest point and when it lands.

a = −5, b = 20. t = −20/(2 × −5) = 2 s. h(2) = 40 − 20 = 20 m, the highest point. Landing: h = 0 → 5t(4 − t) = 0 → t = 0 or t = 4. It lands after 4 s.

6. A shop sells x bags a day at a profit P = −x² + 30x − 125 rupees. How many bags give the most profit?

a = −1, b = 30. x = −30/(−2) = 15 bags. P(15) = −225 + 450 − 125 = ₹100. Selling 15 bags gives the most profit, ₹100.

7. Where does y = x² meet the line y = 2x + 3?

Set x² = 2x + 3 → x² − 2x − 3 = 0 → (x − 3)(x + 1) = 0. x = 3 gives y = 9; x = −1 gives y = 1. Meeting points (3, 9) and (−1, 1).

Common mistakes

Practice quiz

1. The graph of y = ax² + bx + c is called a:
2. y = −x² + 4 opens:
3. The vertex of y = (x − 5)² + 2 is:
4. The axis of symmetry of y = x² + 6x + 1 is:
5. If b² − 4ac < 0, the parabola:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is the difference between a quadratic equation and a quadratic function?

A quadratic function y = ax² + bx + c is a rule that gives a whole curve. A quadratic equation ax² + bx + c = 0 asks for the special x-values where that curve meets the x-axis.

How do you find the vertex of a parabola quickly?

Use x = −b/2a, then put that x into the function to get y. If it is already in vertex form a(x − h)² + k, the vertex is just (h, k).

What is the axis of symmetry?

It is the vertical line through the vertex, x = −b/2a. Fold the graph along it and the two halves match.

Where this is taught

Canada (Ontario)Grade 10Quadratic Relations of the Form y = ax2 + bx + c
Canada (Ontario)Grade 10Quadratic Relations of the Form y = ax2 + bx + c
Canada (Ontario)Grade 11A. Mathematical Models
Canada (Ontario)Grade 11A. Quadratic Functions
Canada (Ontario)Grade 11A. Characteristics of Functions
PolandLiceum ogólnokształcące, klasa IIFunctions
RomaniaClasa a IX-aAlgebra: Functions
Ukraine9 класFunctions
USA (Common Core, NGSS, AP)Grade 9Quadratic functions and modeling
USA (Common Core, NGSS, AP)Grade 10Quadratic functions and modeling
Japan中学3年Functions
Japan高校1年Quadratic functions
Japan高校(専門学科)1〜3年Advanced Mathematics I
South Korea중학교 3학년Quadratic functions
South Korea고등학교 1학년Equations and inequalities
South Korea고등학교 1학년Equations and inequalities
Russia9 классFunctions
Russia9 классFunctions
China九年级(初三)Ch.26 Quadratic functions

Learn first

Related lessons

All Maths lessons