James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout

Quadratics

The three forms of a quadratic, the vertex and axis of symmetry, completing the square, the quadratic formula and the discriminant, and quadratic inequalities.

SL 2.62.7SL + HL extensionPaper 1Paper 2≈ 60 min to work through
Before you start: factorising and the quadratic formula. See Before you start SL › sections A and E.

1What you need to know

Tick these off as you go. By the end of the page you should be able to do all of them without notes.

  • Use the forms ax2+bx+c, a(x−p)(x−q) and a(x−h)2+kSL 2.6
  • Find the vertex and the axis of symmetry x=−b2aSL 2.6
  • Complete the squareSL 2.6
  • Solve quadratic equations by factorising and by the formulaSL 2.7
  • Use the discriminant to decide the number of real rootsSL 2.7
  • Solve quadratic inequalitiesSL 2.7

2Notes & worked examples

Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.

The big idea

A quadratic ax2+bx+c always makes a U-shaped (or upside-down U) curve called a parabola. Each way of writing it shows a different feature, and the discriminant tells you how many times it crosses the x-axis without solving.

2.1 Three forms

If a>0 the parabola opens upwards and has a minimum point; if a<0 it opens downwards and has a maximum point. Every parabola is symmetrical about a vertical line through its vertex, called the axis of symmetry. The same quadratic can be written in three ways, and you should choose the form that shows what the question wants:

FormWhat it shows
y=ax2+bx+cy-intercept c; axis x=−b2a
y=a(x−p)(x−q)x-intercepts p and q; axis x=p+q2
y=a(x−h)2+kvertex (h,k)

If a>0 the curve opens upwards (a minimum); if a<0 it opens downwards (a maximum).

Axis of symmetry In formula booklet
x=−b2a
Why x=−b2a?

The roots from the quadratic formula are −b+Δ2a and −b−Δ2a. The axis of symmetry is halfway between them, at their average, which is −b2a. This works even when there are no real roots.

Worked example 1Paper 1
Find the vertex of y=2x2−8x+3.
Axis: x=−−82(2)=2.
y=2(4)−16+3=−5
Vertex (2,−5), a minimum since a>0.

2.2 Completing the square

Completing the square rewrites a quadratic as a(x−h)2+k. Since a square is never negative, the smallest value of (x−h)2 is 0, when x=h. So for a>0 the minimum value is k, at the vertex (h,k).

x2+bx+c=(x+b2)2−(b2)2+c. If a≠1, take a out as a factor of the x terms first.

Worked example 2Paper 1
Write x2−6x+11 in the form (x−h)2+k, and state the vertex.
Half of −6 is −3: (x−3)2=x2−6x+9.
x2−6x+11=(x−3)2−9+11=(x−3)2+2
Vertex (3,2).

2.3 The quadratic formula and the discriminant

The quadratic formula comes from completing the square on ax2+bx+c=0, and it always works, even when the quadratic does not factorise.

Formulae In formula booklet
x=−b±b2−4ac2aΔ=b2−4ac

Δ>0: two distinct real roots. Δ=0: one repeated root (the vertex touches the x-axis). Δ<0: no real roots.

Why does Δ decide?

The discriminant Δ=b2−4ac sits under the square root in the formula. If it is positive, ±Δ gives two different answers. If it is zero, +0 and −0 give the same answer. If it is negative, there is no real square root, so there are no real roots: the parabola never reaches the x-axis.

Worked example 3Paper 1
Find the values of k for which x2+kx+9=0 has equal roots.
Equal roots: Δ=0.
k2−4(1)(9)=0⇒k2=36
k=6 or k=−6

2.4 Quadratic inequalities

Find the roots, sketch the parabola, then read off where it is above (>0) or below (<0) the x-axis.

Worked example 4Paper 1
Solve x2−x−6>0.
(x−3)(x+2)=0: roots −2 and 3.
The parabola opens upwards, so it is above the axis outside the roots.
A sketch makes this obvious.
x<−2 or x>3
Worked example 5 (faded)Paper 1
How many real roots does 2x2+3x+5=0 have?
Δ=32−4(2)(5)= −31  ← you work this out
So the number of real roots is 0  ← you work this out
On your TI-Nspire Calculator tricks →

Graph the quadratic and use menu → 6: Analyze Graph → Zero for the roots and Minimum/Maximum for the vertex. Or Numerical Solve (menu → 3 → 1) with a guess near each root.

3Explore it

Change a, h and k in y=a(x−h)2+k. Watch the vertex, the roots and the discriminant.

★HL extension

Extra depth for HL: harder worked examples and HL-standard exam questions.

HL questions use the discriminant with a parameter more often, and expect you to recognise quadratics in disguise: equations in ex, 2x or x2 that become quadratics after a substitution.

Conditions on a parameter

"ax2+bx+c>0 for all x" means the parabola is entirely above the x-axis: it must open upwards (a>0) and have no real roots (b2−4ac<0). Both conditions are needed.

Worked example H1Paper 1
Find the values of k for which kx2+(k+3)x+4>0 for all real x.
Need k>0 and (k+3)2−16k<0
k2−10k+9<0⇒(k−1)(k−9)<0⇒1<k<9
Combined with k>0: 1<k<9.
Here the second condition already implies the first, but you must check.
Worked example H2Paper 1
The line y=mx+1 is a tangent to the curve y=x2+4. Find the possible values of m.
x2+4=mx+1⇒x2−mx+3=0
Tangent: one repeated root, so m2−12=0
m=±23

Quadratics in disguise

If an equation contains a2x and ax, or x4 and x2, substitute u=ax or u=x2. Solve the quadratic in u, then go back to x, rejecting impossible values (for example ax can never be negative).

Worked example H3Paper 1
Solve 4x−6×2x+8=0.
Let u=2x, so 4x=u2: u2−6u+8=0
4x=(22)x=(2x)2.
u=2 or u=4
2x=2⇒x=1; 2x=4⇒x=2
Worked example H4Paper 1
Solve ex+6e−x=5.
Multiply by ex: e2x−5ex+6=0
(ex−2)(ex−3)=0
x=ln2 or x=ln3

HL exam-style questions

Question 1Paper 1[5 marks]

The equation x2+(k−1)x+k+2=0 has no real roots.

  • (a)Show that k2−6k−7<0.[2]
  • (b)Hence find the set of possible values of k.[3]
(a)
(k−1)2−4(k+2)<0M1
k2−2k+1−4k−8<0AG A1
(b)
(k−7)(k+1)M1
critical values −1 and 7A1
−1<k<7A1
Question 2Paper 1[5 marks]

Solve the equation e2x−7ex+12=0, giving your answers in exact form.

u=ex: u2−7u+12=0M1
(u−3)(u−4)=0A1
ex=3 or ex=4A1
x=ln3, x=ln4A1A1

4Common mistakes & exam tips

Common mistakes

  • Sign errors in x=−b2a when b is negative.
  • Completing the square with a≠1 without taking a out first.
  • Using Δ≥0 when the question says "two distinct roots" (that needs Δ>0).
  • Writing an inequality answer such as 3<x<−2, which is impossible: think about the sketch.
  • Dividing by k when k could be 0.

Exam tips

  • "Distinct real roots" means Δ>0; "real roots" means Δ≥0; "no real roots" means Δ<0; "touches the axis" or "equal roots" means Δ=0.
  • In context (projectiles, area), check which root makes sense.
  • Always sketch for inequalities.

5Practice

Fluency questions build the basics. Problem-solving questions make you think about which method to use.

FluencyP1
Write down the vertex of y=(x+1)2−4.
(−1,−4)
FluencyP2
Solve x2+2x−8=0.
(x+4)(x−2)=0: x=−4 or x=2.
FluencyP3
Find the discriminant of x2−4x+1.
16−4=12
FluencyP4
Write down the axis of symmetry of y=2(x−1)(x−5).
x=3
Problem solvingP5
x2+(k−2)x+4=0 has no real roots. Find the possible values of k.
(k−2)2−16<0⇒−4<k−2<4, so −2<k<6.
Problem solvingP6
y=x2+bx+c crosses the x-axis at 1 and 3. Find b and c.
y=(x−1)(x−3)=x2−4x+3: b=−4, c=3.

6Exam-style questions

Original questions in the style of the IB exam, with full markschemes. Give yourself about 1 minute per mark.

Question 1Paper 1[7 marks]

f(x)=x2−6x+5.

  • (a)Write f(x) in the form (x−h)2+k.[2]
  • (b)Write down the coordinates of the vertex.[1]
  • (c)Find the x-intercepts.[2]
  • (d)Write down the range of f.[1]
  • (e)Solve f(x)<0.[1]
(a)
(x−3)2−9+5M1
(x−3)2−4A1
(b)
(3,−4)A1
(c)
(x−1)(x−5)=0M1
x=1, x=5A1
(d)
f(x)≥−4A1
(e)
1<x<5A1
Question 2Paper 1[5 marks]

The equation kx2−4x+k=0 has two distinct real roots. Find the possible values of k.

Δ=16−4k2A1
16−4k2>0M1
k2<4A1
−2<k<2A1
k≠0 (otherwise the equation is not quadratic)R1
Question 3Paper 2[6 marks]

A ball is thrown upwards. Its height in metres after t seconds is h=−4.9t2+14t+1.5.

  • (a)Find the maximum height of the ball.[2]
  • (b)Find when the ball hits the ground.[2]
  • (c)Find the length of time for which the ball is more than 8 m above the ground.[2]
(a)
Vertex at t=149.8=1.43M1
11.5 mA1
(b)
h=0M1
t=2.96 sA1
(c)
h=8: t=0.583 and t=2.27M1
1.69 sA1

7Check yourself

Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.

8Past-paper practice

Once you're scoring well above, try real IB questions. Your school or teacher will have these papers.

PaperQuestionFocusDifficulty
Nov 2025 · TZ1 · Paper 1Q4Two quadratics with vertices on a line; find parameters★☆☆
Nov 2024 · Paper 1Q6Solve quadratic inequality; find largest domain for invertibility★★☆
May 2023 · TZ2 · Paper 1Q5Find linear functions satisfying a composite equation★★☆
May 2024 · TZ1 · Paper 1Q10Rational function graph and a quadratic with given symmetry★★★
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake