Skip to content
spmaddmath.com.my
Tuition

Study

SyllabusFormulasMethodsExam & PapersTools
LocationsPricingBlogOur TeachersContact
EN

Worked examples · Quadratic Functions

Quadratic Functions, Worked Examples (KBAT)

Three challenging Quadratic Functions problems, fully worked: finding when a line is tangent to a curve using the discriminant, fixing a constant from a maximum value, and solving for a parameter from α2+β2\alpha^2+\beta^2. Each combines two ideas, try them before reading.

How to use this set

These three hard Quadratic Functions problems each fold two ideas together. The first uses simultaneous equations and the discriminant to make a line touch a curve; the second combines completing the square with a stated maximum value; the third links the sum and product of roots to the symmetric expression α2+β2\alpha^2+\beta^2.

They are demanding but every line is shown, so nothing is left as a leap.

Attempt each on paper first, set up your own equations, then compare with ours. Hard questions reward a clear plan: name what condition the situation forces (tangency means equal roots, a maximum means a negative leading coefficient), write it as an equation, and solve.

Checking your answer by substitution at the end is what separates a full-mark solution from a near miss.

Three worked examples

Q1[4 marks]

The straight line y=2x+ky = 2x + k is a tangent to the curve y=x22x+6y = x^2 - 2x + 6. Find the value of kk.

Show worked solution

Where line and curve meet, their yy-values are equal. Set the expressions equal and collect everything on one side:

x22x+6=2x+kx^2 - 2x + 6 = 2x + k
x22x2x+6k=0    x24x+(6k)=0x^2 - 2x - 2x + 6 - k = 0 \;\Rightarrow\; x^2 - 4x + (6-k) = 0

A tangent touches the curve at exactly one point, so this quadratic must have equal roots. That means the discriminant is zero.

Here a=1a=1, b=4b=-4, c=6kc=6-k:

b24ac=(4)24(1)(6k)=0b^2 - 4ac = (-4)^2 - 4(1)(6-k) = 0
1624+4k=0    4k8=0    k=216 - 24 + 4k = 0 \;\Rightarrow\; 4k - 8 = 0 \;\Rightarrow\; k = 2

Check: with k=2k=2 the quadratic is x24x+4=0x^2-4x+4=0, i.e. (x2)2=0(x-2)^2=0, giving the single point x=2x=2. There the line gives y=2(2)+2=6y=2(2)+2=6 and the curve gives y=44+6=6y=4-4+6=6, they touch at (2,6)(2,6), confirming tangency.

Q2[4 marks]

The quadratic function f(x)=x2+6x+cf(x) = -x^2 + 6x + c has a maximum value of 1313. Find the value of cc and state the coordinates of the maximum point.

Show worked solution

Because the coefficient of x2x^2 is negative, the graph opens downward and has a maximum. Complete the square.

Factor 1-1 from the xx-terms:

f(x)=(x26x)+cf(x) = -\left(x^2 - 6x\right) + c

Inside the bracket, x26x=(x3)29x^2-6x = (x-3)^2 - 9. Substitute and expand the 1-1 carefully:

f(x)=[(x3)29]+c=(x3)2+9+cf(x) = -\left[(x-3)^2 - 9\right] + c = -(x-3)^2 + 9 + c

The term (x3)2-(x-3)^2 is at most 00, reached when x=3x=3, so the maximum value of f(x)f(x) is 9+c9+c. Set this equal to the given maximum 1313:

9+c=13    c=49 + c = 13 \;\Rightarrow\; c = 4

The maximum point is at x=3x=3, value 1313, so it is (3,13)(3,\,13). Check: f(3)=(3)2+6(3)+4=9+18+4=13f(3) = -(3)^2 + 6(3) + 4 = -9 + 18 + 4 = 13, as required.

Q3[4 marks]

The roots of x2kx+6=0x^2 - kx + 6 = 0 are α\alpha and β\beta. Given that α2+β2=13\alpha^2 + \beta^2 = 13, find the possible values of kk.

Show worked solution

Read off the sum and product of roots. With a=1a=1, b=kb=-k, c=6c=6:

α+β=k1=k,αβ=61=6\alpha+\beta = -\frac{-k}{1} = k, \qquad \alpha\beta = \frac{6}{1} = 6

Express α2+β2\alpha^2+\beta^2 through the sum and product using the identity α2+β2=(α+β)22αβ\alpha^2+\beta^2 = (\alpha+\beta)^2 - 2\alpha\beta:

α2+β2=k22(6)=k212\alpha^2 + \beta^2 = k^2 - 2(6) = k^2 - 12

Set this equal to the given value 1313 and solve:

k212=13    k2=25    k=±5k^2 - 12 = 13 \;\Rightarrow\; k^2 = 25 \;\Rightarrow\; k = \pm 5

Check k=5k=5: x25x+6=(x2)(x3)x^2-5x+6=(x-2)(x-3), roots 22 and 33, and 22+32=4+9=132^2+3^2=4+9=13. Check k=5k=-5: x2+5x+6=(x+2)(x+3)x^2+5x+6=(x+2)(x+3), roots 2-2 and 3-3, and (2)2+(3)2=13(-2)^2+(-3)^2=13.

Both values work.

Q4[4 marks]

A rectangular vegetable plot has length x+8x+8 m and width xx m. The area of the plot must be less than 65 m265\text{ m}^2.

Form a quadratic inequality in xx, and find the range of values of xx.

Show worked solution

Write the area as length times width, then form an inequality using the given upper bound. This gives a quadratic inequality in xx:

x(x+8)<65x(x+8) < 65

Expand and rearrange so one side is zero, then factorise the quadratic to find the critical values of xx:

x2+8x65<0    (x+13)(x5)<0x^2 + 8x - 65 < 0 \;\Rightarrow\; (x+13)(x-5) < 0

The expression is negative between its roots 13-13 and 55, so 13<x<5-13<x<5; since xx is a length it must also be positive, giving the combined range 0<x<50<x<5.

Answer

The width must satisfy 0<x<50 < x < 5. Sense check: at x=4x=4 the plot is 4 m4\text{ m} by 12 m12\text{ m}, giving an area of 48 m2<65 m248\text{ m}^2 < 65\text{ m}^2, inside the range; at x=5x=5 the area is exactly 65 m265\text{ m}^2, so x=5x=5 is correctly excluded.

Q5[5 marks]

The quadratic equation px24x+p=0px^2 - 4x + p = 0, where pp is a constant, has two distinct real roots. Find the range of values of pp.

Show worked solution

For the equation to have two distinct real roots, its discriminant must be positive, and the coefficient of x2x^2 must not be zero (otherwise the equation is linear, with at most one root). Here a=pa=p, b=4b=-4, c=pc=p:

b24ac>0    (4)24(p)(p)>0b^2-4ac>0 \;\Rightarrow\; (-4)^2 - 4(p)(p) > 0

Simplify and solve this inequality for pp:

164p2>0    p2<4    2<p<216 - 4p^2 > 0 \;\Rightarrow\; p^2 < 4 \;\Rightarrow\; -2 < p < 2

This range still includes p=0p=0, which must be excluded since the equation would then reduce to the linear equation 4x=0-4x=0 with only one root, giving the final range 2<p<0-2<p<0 or 0<p<20<p<2.

Answer

pp satisfies 2<p<0-2<p<0 or 0<p<20<p<2. Sense check: p=1p=1 gives x24x+1=0x^2-4x+1=0 with discriminant 12>012>0, two distinct real roots; p=3p=3 (outside the range) gives discriminant 1636=20<016-36=-20<0, no real roots, as expected.

Q6[4 marks]

The roots of the quadratic equation x26x+4=0x^2 - 6x + 4 = 0 are α\alpha and β\beta. Without solving for α\alpha and β\beta, form a quadratic equation whose roots are 1α\dfrac{1}{\alpha} and 1β\dfrac{1}{\beta}.

Show worked solution

Read the sum and product of roots from the given equation, then use 1α+1β=α+βαβ\frac{1}{\alpha}+\frac{1}{\beta}=\frac{\alpha+\beta}{\alpha\beta} and 1α1β=1αβ\frac{1}{\alpha}\cdot\frac{1}{\beta}=\frac{1}{\alpha\beta} to find the sum and product of the new roots directly, without solving for α\alpha and β\beta themselves. With a=1a=1, b=6b=-6, c=4c=4:

α+β=6,αβ=4\alpha+\beta = 6, \qquad \alpha\beta = 4

Substitute these into the reciprocal-sum and reciprocal-product formulas, then form the new equation using x2(sum)x+(product)=0x^2-(\text{sum})x+(\text{product})=0 and multiply through by 44 to clear fractions:

1α+1β=α+βαβ=64=32,1α1β=1αβ=14\frac{1}{\alpha}+\frac{1}{\beta} = \frac{\alpha+\beta}{\alpha\beta} = \frac{6}{4} = \frac{3}{2}, \qquad \frac{1}{\alpha}\cdot\frac{1}{\beta} = \frac{1}{\alpha\beta} = \frac{1}{4}
x232x+14=0    4x26x+1=0x^2 - \frac{3}{2}x + \frac{1}{4} = 0 \;\Rightarrow\; 4x^2 - 6x + 1 = 0

Answer

The required equation is 4x26x+1=04x^2-6x+1=0. Sense check: substituting x=1yx=\frac{1}{y} into the original equation and multiplying through by y2y^2 gives 4y26y+1=04y^2-6y+1=0, the same equation, confirming the reciprocal-root transformation is correct.

Q7[6 marks]

A farmer has 4040 m of fencing to enclose a rectangular pen. One side of the pen lies along an existing straight wall, so fencing is needed only for the other three sides.

Let xx m be the length of each of the two sides perpendicular to the wall. Express the area of the pen, AA, in terms of xx, and hence find the maximum possible area.

Show worked solution

Let the side parallel to the wall have length yy m. Only three sides need fencing, so 2x+y=402x+y=40, giving y=402xy=40-2x.

The area is A=xyA=xy:

y=402x,A(x)=x(402x)=40x2x2y = 40 - 2x, \qquad A(x) = x(40-2x) = 40x - 2x^2

The coefficient of x2x^2 is negative, so A(x)A(x) has a maximum. Factor out 2-2 and complete the square:

A(x)=2x2+40x=2(x220x)=2[(x10)2100]=2(x10)2+200A(x) = -2x^2 + 40x = -2\left(x^2-20x\right) = -2\left[(x-10)^2 - 100\right] = -2(x-10)^2 + 200

Since 2(x10)20-2(x-10)^2 \le 0 for every xx, the area is largest when x=10x=10, where 2(x10)2=0-2(x-10)^2=0. Then y=402(10)=20y=40-2(10)=20.

Answer

The maximum area is 200 m2200\text{ m}^2, when x=10x=10 m and y=20y=20 m. Sense check: at x=8x=8, y=24y=24 and the area is 192 m2192\text{ m}^2; at x=12x=12, y=16y=16 and the area is again 192 m2192\text{ m}^2, both less than 200 m2200\text{ m}^2, consistent with x=10x=10 giving the maximum.

Q8[5 marks]

The curves y=x22x+5y = x^2 - 2x + 5 and y=x2+6x1y = -x^2 + 6x - 1 intersect at two points. Find the coordinates of both points of intersection.

Show worked solution

At a point of intersection, both curves share the same xx and yy, so set the two expressions for yy equal:

x22x+5=x2+6x1x^2 - 2x + 5 = -x^2 + 6x - 1

Rearrange so one side is zero, simplify, and factorise to find the xx-coordinates; then substitute each value back into either curve to find the matching yy-coordinates:

2x28x+6=0    x24x+3=0    (x1)(x3)=0    x=1 or x=32x^2 - 8x + 6 = 0 \;\Rightarrow\; x^2 - 4x + 3 = 0 \;\Rightarrow\; (x-1)(x-3) = 0 \;\Rightarrow\; x = 1 \text{ or } x = 3
x=1:  y=122(1)+5=4x=3:  y=322(3)+5=8x=1: \; y = 1^2 - 2(1) + 5 = 4 \qquad\qquad x=3: \; y = 3^2 - 2(3) + 5 = 8

Answer

The curves intersect at (1,4)(1,4) and (3,8)(3,8). Sense check: the second curve gives y=12+6(1)1=4y=-1^2+6(1)-1=4 at x=1x=1 and y=32+6(3)1=8y=-3^2+6(3)-1=8 at x=3x=3, matching both points, confirming they lie on both curves.

Key method points

  • A line is tangent to a curve when solving them simultaneously gives a quadratic with equal roots, so set its discriminant to 00.
  • For a downward parabola (negative x2x^2 coefficient), completing the square gives the maximum value as the constant after the squared term.
  • Factor out the leading coefficient before completing the square, and expand it back carefully, this is where signs go wrong.
  • Use α2+β2=(α+β)22αβ\alpha^2+\beta^2 = (\alpha+\beta)^2 - 2\alpha\beta to turn a symmetric condition into an equation in the sum and product.
  • A squared unknown, like k2=25k^2=25, usually gives two answers k=±5k=\pm 5, state both unless the question rules one out.

Common slips to avoid

Hard questions punish rushed algebra. When you form the quadratic for a tangent, collect every term on one side before setting the discriminant to zero.

When completing the square with a negative leading coefficient, factor out the 1-1 first and expand it back over both terms. And when a squared unknown appears, such as k2=25k^2=25, do not stop at the positive root, state both k=5k=5 and k=5k=-5 unless the question rules one out.

How a teacher helps

Hard questions are really about choosing the right condition. Our teachers help you name it fast: tangency forces equal roots, a maximum forces a negative leading coefficient, a symmetric expression invites the sum-and-product identity.

We rehearse the sign-sensitive steps, factoring out 1-1, expanding a completed square, until they stop tripping you up, and we insist on the final substitution check that catches a lost solution like k=5k=-5. Lessons are in English, and because Add Math is marked analytically, we make sure each decision and line earns its marks.

Get 1-to-1 help.

Book a Trial Class

Frequently asked questions

How do I show a line is a tangent to a curve?

Solve the line and curve simultaneously to get one quadratic, then set its discriminant b24ac=0b^2-4ac=0. Equal roots mean the line meets the curve at exactly one point, which is tangency.

Why factor out the leading coefficient before completing the square?

Completing the square needs the x2x^2 coefficient to be 11 inside the bracket. Factoring out 1-1 (or any aa) first keeps the algebra correct; the common slip is forgetting to expand it back over both terms.

When does α2+β2=(α+β)22αβ\alpha^2+\beta^2=(\alpha+\beta)^2-2\alpha\beta help?

Whenever a question gives a symmetric expression in the roots. It lets you answer using only the sum and product from the coefficients, so you never need the roots themselves.

Should I give both values when k2=25k^2=25?

Yes, unless the question restricts the sign. Here k=5k=5 and k=5k=-5 both satisfy α2+β2=13\alpha^2+\beta^2=13, so both are valid answers and each carries marks.

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