Skip to content
spmaddmath.com.my
Tuition

Study

SyllabusFormulasMethodsExam & PapersTools
LocationsPricingBlogOur TeachersContact
EN

Worked examples · Quadratic Functions

Quadratic Functions, Worked Examples (medium)

Three fully worked medium Quadratic Functions problems: finding a range of values from the discriminant, forming a new equation from the sum and product of roots, and solving a quadratic inequality. Attempt each first, then check every line against ours.

How to use this set

These three medium Quadratic Functions problems ask you to combine ideas rather than apply a single rule. You will use the discriminant to find a range of values of an unknown, the sum and product of roots to build a brand-new equation, and a sign analysis to solve a quadratic inequality.

Each is solved line by line so no step is hidden.

Attempt every question on paper before reading our solution, cover the working, do it fully, then compare. Medium questions are where careless sign errors and half-finished conclusions cost the most, so check each line and make sure your final statement answers exactly what was asked.

Three worked examples

Q1[3 marks]

Find the range of values of pp for which the equation x2+px+4=0x^2 + px + 4 = 0 has two distinct real roots.

Show worked solution

Two distinct real roots occur when the discriminant is positive: b24ac>0b^2-4ac > 0. Here a=1a=1, b=pb=p and c=4c=4.

p24(1)(4)>0    p216>0p^2 - 4(1)(4) > 0 \;\Rightarrow\; p^2 - 16 > 0

Factorise the left side as a difference of two squares:

(p4)(p+4)>0(p-4)(p+4) > 0

This product is positive outside the roots p=4p=-4 and p=4p=4. So the solution is:

p<4orp>4p < -4 \quad \text{or} \quad p > 4

Check p=5p=5: discriminant =2516=9>0=25-16=9>0, two distinct roots, consistent. Check p=0p=0: discriminant =16<0=-16<0, no real roots, correctly excluded.

Q2[4 marks]

The roots of x25x+2=0x^2 - 5x + 2 = 0 are α\alpha and β\beta. Form a quadratic equation whose roots are α+1\alpha+1 and β+1\beta+1.

Show worked solution

For ax2+bx+c=0ax^2+bx+c=0, the sum of roots is ba-\frac{b}{a} and the product is ca\frac{c}{a}. Here a=1a=1, b=5b=-5, c=2c=2, so:

α+β=51=5,αβ=21=2\alpha+\beta = -\frac{-5}{1} = 5, \qquad \alpha\beta = \frac{2}{1} = 2

Now find the sum of the new roots α+1\alpha+1 and β+1\beta+1:

(α+1)+(β+1)=α+β+2=5+2=7(\alpha+1)+(\beta+1) = \alpha+\beta+2 = 5+2 = 7

And the product of the new roots:

(α+1)(β+1)=αβ+α+β+1=2+5+1=8(\alpha+1)(\beta+1) = \alpha\beta + \alpha + \beta + 1 = 2 + 5 + 1 = 8

A quadratic equation with these roots is x2(sum)x+(product)=0x^2 - (\text{sum})x + (\text{product}) = 0:

x27x+8=0x^2 - 7x + 8 = 0

The new sum 77 and product 88 are both consistent with shifting each original root up by 11.

Q3[3 marks]

Find the range of values of xx for which x2x6<0x^2 - x - 6 < 0.

Show worked solution

First find where the expression equals zero by factorising:

x2x6=(x3)(x+2)x^2 - x - 6 = (x-3)(x+2)

So the critical values are x=3x=3 and x=2x=-2. The graph of y=x2x6y=x^2-x-6 is a parabola opening upward, so yy is negative between the two roots.

2<x<3-2 < x < 3

Check inside with x=0x=0: 006=6<00-0-6=-6<0, satisfied. Check outside with x=4x=4: 1646=6>016-4-6=6>0, not satisfied, confirming the range.

Q4[3 marks]

Express f(x)=x26x+11f(x) = x^2 - 6x + 11 in the form (xh)2+k(x-h)^2+k, and state the minimum value of f(x)f(x) and the corresponding value of xx.

Show worked solution

Complete the square by halving the coefficient of xx, which is 6-6, to get 3-3, then adjust the constant so the expression stays equal.

f(x)=x26x+11=(x3)29+11f(x) = x^2 - 6x + 11 = (x-3)^2 - 9 + 11

Simplify the constant terms to reach the completed-square form.

f(x)=(x3)2+2f(x) = (x-3)^2 + 2

Answer

Since (x3)20(x-3)^2 \ge 0 for all real xx, the minimum value of f(x)f(x) is 22, occurring at x=3x=3. Check: f(3)=918+11=2f(3) = 9-18+11=2, which matches.

Q5[4 marks]

Find the value of kk for which the straight line y=2x+ky = 2x + k is a tangent to the curve y=x2+4x+7y = x^2 + 4x + 7.

Show worked solution

A tangent touches the curve at exactly one point, so substitute the line into the curve's equation and set the resulting discriminant to zero.

x2+4x+7=2x+k    x2+2x+(7k)=0x^2 + 4x + 7 = 2x + k \;\Rightarrow\; x^2 + 2x + (7-k) = 0

For one repeated root, b24ac=0b^2-4ac=0 with a=1a=1, b=2b=2, c=7kc=7-k.

(2)24(1)(7k)=0    428+4k=0    k=6(2)^2 - 4(1)(7-k) = 0 \;\Rightarrow\; 4 - 28 + 4k = 0 \;\Rightarrow\; k = 6

Answer

k=6k=6. Check: with k=6k=6, x2+2x+1=(x+1)2=0x^2+2x+1=(x+1)^2=0 gives the single touching point x=1x=-1, where y=2(1)+6=4y=2(-1)+6=4 on both the line and the curve.

Q6[4 marks]

Solve the equation x413x2+36=0x^4 - 13x^2 + 36 = 0 for real values of xx.

Show worked solution

This equation is quadratic in x2x^2: let y=x2y=x^2, then factorise and solve for yy.

y213y+36=(y4)(y9)=0    y=4 or y=9y^2 - 13y + 36 = (y-4)(y-9) = 0 \;\Rightarrow\; y = 4 \text{ or } y = 9

Substitute back x2=yx^2=y and take square roots of each value.

x2=4    x=±2,x2=9    x=±3x^2 = 4 \;\Rightarrow\; x=\pm2, \qquad x^2=9 \;\Rightarrow\; x=\pm3

Answer

The equation has four real solutions: x=3,2,2,3x = -3, -2, 2, 3. Check: at x=2x=2, 1613(4)+36=1652+36=016-13(4)+36=16-52+36=0, and at x=3x=3, 8113(9)+36=81117+36=081-13(9)+36=81-117+36=0, confirming both.

Q7[4 marks]

A rectangular garden is to be fenced using 2424 m of fencing around all four sides. If the width is xx m, express the area AA in terms of xx, and find the value of xx that gives the maximum area, together with this maximum area.

Show worked solution

Since the perimeter is 2424 m, the length is 12x12-x, so the area is:

A=x(12x)=12xx2A = x(12-x) = 12x - x^2

Complete the square to find the maximum, since the coefficient of x2x^2 is negative.

A=(x212x)=[(x6)236]=36(x6)2A = -(x^2-12x) = -[(x-6)^2 - 36] = 36 - (x-6)^2

Answer

Since (x6)20(x-6)^2 \ge 0, AA is greatest when x=6x=6, giving a maximum area of 3636 m2^2 (the garden is then a 6 m×6 m6\text{ m} \times 6\text{ m} square). Check: A(6)=6(126)=36A(6) = 6(12-6) = 36, matching.

Q8[3 marks]

The graph of a quadratic function has a minimum point at (2,9)(2,-9) and passes through the point (0,1)(0,-1). Find the equation of the function in the form f(x)=ax2+bx+cf(x)=ax^2+bx+c.

Show worked solution

A quadratic with minimum point (2,9)(2,-9) can be written in vertex form f(x)=a(x2)29f(x) = a(x-2)^2 - 9. Substitute the point (0,1)(0,-1) to find aa.

a(02)29=1    4a=8    a=2a(0-2)^2 - 9 = -1 \;\Rightarrow\; 4a = 8 \;\Rightarrow\; a = 2

Substitute a=2a=2 back and expand to the general form.

f(x)=2(x2)29=2x28x1f(x) = 2(x-2)^2 - 9 = 2x^2 - 8x - 1

Answer

f(x)=2x28x1f(x) = 2x^2-8x-1. Check: f(2)=8161=9f(2)=8-16-1=-9 (the minimum) and f(0)=1f(0)=-1, both matching the given information.

Key method points

  • For a condition on the roots, translate it into the discriminant: >0>0 two distinct real roots, =0=0 two equal roots, <0<0 no real roots.
  • A discriminant inequality such as p216>0p^2-16>0 factorises to (p4)(p+4)>0(p-4)(p+4)>0, giving a range, not a single value.
  • Sum of roots =ba=-\frac{b}{a} and product =ca=\frac{c}{a}; build a new equation with x2(sum)x+(product)=0x^2-(\text{sum})x+(\text{product})=0.
  • For an upward parabola, the expression is negative between its roots and positive outside them, sketch or test a point to decide.
  • Always confirm your range with one value inside and one outside.

Common slips to avoid

The classic errors here are sign and direction. Writing b24ac>0b^2-4ac>0 with the wrong sign of bb distorts the range; forgetting that an upward parabola is negative between its roots reverses a quadratic inequality; and when forming a new equation, mixing up the sum with the product spoils the middle and last terms.

Sketch the parabola and test one value, and always state the range in full, p<4p<-4 or p>4p>4, not just p2>16p^2>16.

How a teacher helps

Medium questions reward students who read carefully and finish cleanly. Our teachers coach two habits in particular: turning a worded condition ("two distinct roots") into the right discriminant inequality, and deciding the direction of a quadratic inequality by picturing the parabola rather than guessing.

We check that your final line answers the question asked, a range written as p<4p<-4 or p>4p>4, not just p2>16p^2>16. Lessons are in English, and because Add Math is marked analytically, we show you how each line of clear working banks its own marks.

Get 1-to-1 help.

Book a Trial Class

Frequently asked questions

How do I turn "two distinct real roots" into an inequality?

Distinct real roots need the discriminant to be positive, so write b24ac>0b^2-4ac>0, substitute the coefficients, and solve the resulting inequality. Equal roots use =0=0; no real roots use <0<0.

Which way round does a quadratic inequality go?

Find the roots, then picture the parabola. For an upward-opening curve the expression is negative between the roots and positive outside them.

Testing a single value settles the direction if you are unsure.

How do I form an equation from new roots without finding the roots themselves?

Use the sum and product. Compute the new sum and new product from α+β\alpha+\beta and αβ\alpha\beta, then write x2(sum)x+(product)=0x^2-(\text{sum})x+(\text{product})=0.

Do I earn marks for the discriminant step even if I slip later?

Yes. Add Math is marked analytically, so a correctly formed and simplified discriminant inequality earns method marks on its own.

Source:SRC-DSKP-EN

Written by the spmaddmath.com.my editorial team.· Last updated 5 September 2026

Ready to get started?

Book a Trial Classfrom RM50/hr · One-hour paid trial · Same-day reply
Book a Trial ClassOne-hour paid trial · Same-day reply