Quadratic functions and the discriminant

Quadratic functions and the discriminant

Spec 2.3 · Edexcel A-Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A quadratic f(x)=ax2+bx+cf(x)=ax^2+bx+c has a parabola graph: U-shaped if a>0a>0, n-shaped if a<0a<0.
  • The line of symmetry is x=−b2ax=-\frac b{2a}; completing the square gives the turning point.
  • The discriminant b2−4acb^2-4ac: >0>0 two real roots, =0=0 one repeated root, <0<0 none.
  • "Real roots" means b2−4ac⩾0b^2-4ac\geqslant0.
  • Equations quadratic in x2x^2, cos⁡x\cos x or 2x2^x: substitute, solve, reject impossible values, then solve for xx.

Quadratic graphs

A parabola, U-shaped for a>0a>0 and n-shaped for a<0a<0, with yy-intercept cc, roots where it crosses the xx-axis, and a turning point.

A quadratic function has the form f(x)=ax2+bx+cf(x)=ax^2+bx+c with a≠0a\ne0. Its graph is a parabola: U-shaped if a>0a>0 (minimum) and n-shaped if a<0a<0 (maximum).

When sketching, find:

  • the yy-intercept (0,c)(0,c);
  • the roots, by solving f(x)=0f(x)=0 (factorising, completing the square, the formula or a calculator);
  • the turning point, on the line of symmetry x=−b2ax=-\frac b{2a}.
−112345−22468xy(1, 0)(3, 0)(0, 3)(2, −1)y = x² − 4x + 3
y = x² − 4x + 3: roots 1 and 3, y-intercept 3, turning point (2, −1).

What is the line of symmetry of y=x2−4x+3y=x^2-4x+3?

Completing the square

Write ax2+bx+c=a(x+b2a)2+c−b24aax^2+bx+c=a\left(x+\frac b{2a}\right)^2+c-\frac{b^2}{4a}. The turning point is (−b2a, c−b24a)\left(-\frac b{2a},\ c-\frac{b^2}{4a}\right).

ax2+bx+c=a(x+b2a)2+c−b24a.ax^2+bx+c=a\left(x+\frac b{2a}\right)^2+c-\frac{b^2}{4a}.

The turning point is at (−b2a, c−b24a)\left(-\frac b{2a},\ c-\frac{b^2}{4a}\right).

To solve 2(x−3)2=112(x-3)^2=11: x=3±112x=3\pm\sqrt{\frac{11}2}.

The form also proves positivity: n2−6n+10=(n−3)2+1≥1n^2-6n+10=(n-3)^2+1\ge1.

−11234567−10−5510xy(3, −11)(0, 7)y = 2(x − 3)² − 11
y = 2(x − 3)² − 11 has its minimum at (3, −11) and meets the y-axis at (0, 7).

Worked example

Complete the square for f(x)=2x2−12x+7f(x)=2x^2-12x+7.

Write x2+6x+2x^2+6x+2 in the form (x+p)2+q(x+p)^2+q.

The discriminant

b2−4acb^2-4ac shows whether there are two distinct real roots, one repeated root, or none.

For ax2+bx+c=0ax^2+bx+c=0 the discriminant is b2−4acb^2-4ac, the part under the root in the quadratic formula.

Example: x2+kx+16=0x^2+kx+16=0 has k2−64k^2-64. Repeated root when k=±8k=\pm8, no real roots for −8<k<8-8<k<8, and two real roots for k<−8k<-8 or k>8k>8.

"Real roots" includes equal roots, so use b2−4ac≥0b^2-4ac\ge0.

b2−4ac>0b^2-4ac>0

Roots:
Two distinct real roots
Graph:
Crosses the xx-axis twice

b2−4ac=0b^2-4ac=0

Roots:
One repeated root
Graph:
Touches the xx-axis

b2−4ac<0b^2-4ac<0

Roots:
No real roots
Graph:
Does not meet the xx-axis
−112345−2246810xyy = x² − 4x + c
y = x² − 4x + c. The discriminant is 16 − 4c. Drag c to change the roots.

How many real roots does 2x2+3x+5=02x^2+3x+5=0 have?

An unknown coefficient

Set up an inequality in the unknown and solve it by sketching.

When a coefficient is unknown, set up an inequality in the unknown and solve it.

Example: x2+px+(p+3)=0x^2+px+(p+3)=0. The discriminant is p2−4(p+3)=p2−4p−12=(p−6)(p+2)p^2-4(p+3)=p^2-4p-12=(p-6)(p+2).

  • Real roots: (p−6)(p+2)≥0(p-6)(p+2)\ge0, so p≤−2p\le-2 or p≥6p\ge6.
  • Equal roots: p=6p=6 (root x=−3x=-3) or p=−2p=-2 (root x=1x=1).

Sketch the quadratic in pp: "greater than" means outside the roots, "less than" means between them.

−5−4−3−2−10123456789-26

What values of pp solve p2−4p−12⩾0p^2-4p-12\geqslant0?

Quadratics in a function of xx

Substitute y=x2y=x^2, y=cos⁡xy=\cos x or y=2xy=2^x, solve the quadratic, reject impossible values, then solve for xx.

Some equations are quadratic in x2x^2, cos⁡x\cos x, 2x2^x or ln⁡x\ln x. Substitute, solve the quadratic, then solve for xx.

Reject impossible values: 2x>02^x>0 and −1≤cos⁡x≤1-1\le\cos x\le1, so 2x=−32^x=-3 has no solution.

Always go back and solve for xx from each value of yy.

−3−2−1123−2246810xy(−2, 0)(−1, 0)(1, 0)(2, 0)y = x⁴ − 5x² + 4
y = x⁴ − 5x² + 4 crosses the x-axis where (x² − 1)(x² − 4) = 0: x = ±1, ±2

x4−5x2+4=0x^4-5x^2+4=0

Let:
y=x2y=x^2
Solutions:
x=±1,±2x=\pm1,\pm2

2cos⁡2x−cos⁡x−1=02\cos^2x-\cos x-1=0

Let:
y=cos⁡xy=\cos x
Solutions:
0°,120°,240°0°,120°,240°

22x+1−9×2x+4=02^{2x+1}-9\times2^x+4=0

Let:
y=2xy=2^x
Solutions:
x=−1,2x=-1,2

Worked example

Solve 22x+1−9×2x+4=02^{2x+1}-9\times2^x+4=0.

How many solutions does 2x=−32^x=-3 have?

Try an exam question

Find the set of values of pp for which the equation x2+px+(p+8)=0x^2+px+(p+8)=0 has real roots.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

For which values of kk does the equation have a repeated root?

1 mark, marked against the mark scheme

Revision notes