Worked Example · Quadratic Functions · Paper 2 · 5 marks

When Is a Line a Tangent to a Curve?

Rig, founder of IGCSE Add Math Malaysia

Written by Rig, our founder

8 years teaching IGCSE & SPM maths · Updated 16 August 2026

This question links three ideas 0606 loves to combine: intersection, the discriminant, and tangency. The unlock is recognising that “tangent” means the line meets the curve exactly once, so the equation you get by setting them equal has equal roots.

The line y=2x+ky = 2x + k is a tangent to the curve y=x24x+5y = x^2 - 4x + 5. Find the value of the constant kk. [5]

The working

Step 1, set line equal to curve to find the intersection equation: x24x+5=2x+k(M1)x^2 - 4x + 5 = 2x + k \quad \text{(M1)}

Step 2, rearrange to =0= 0 (all terms on one side): x24x2x+5k=0    x26x+(5k)=0(A1)x^2 - 4x - 2x + 5 - k = 0 \;\Rightarrow\; x^2 - 6x + (5 - k) = 0 \quad \text{(A1)}

Step 3, apply the tangent condition. One point of contact means equal roots, so b24ac=0b^2 - 4ac = 0 with a=1a = 1, b=6b = -6, c=5kc = 5 - k: (6)24(1)(5k)=0(M1)(-6)^2 - 4(1)(5 - k) = 0 \quad \text{(M1)}

Step 4, solve for kk: 3620+4k=0    16+4k=0    k=4(M1, A1)36 - 20 + 4k = 0 \;\Rightarrow\; 16 + 4k = 0 \;\Rightarrow\; k = -4 \quad \text{(M1, A1)}

A quick check: with k=4k = -4 the equation is x26x+9=0=(x3)2x^2 - 6x + 9 = 0 = (x - 3)^2, a genuine repeated root at x=3x = 3, confirming a single point of contact.

Where the marks are won and lost

  • Collecting to =0= 0 correctly is a mark. The constant term is 5k5 - k; a sign slip here (writing 5+k5 + k) breaks the discriminant.
  • "c=5kc = 5 - k" carries the unknown into the discriminant. Students who set c=5c = 5 and ignore kk cannot finish.
  • The condition is =0= 0 (tangent), not >0> 0 or <0< 0. Decode “tangent” before choosing.

Common mistakes

  • Using b24ac>0b^2 - 4ac > 0 or <0< 0 instead of =0= 0.
  • Sign errors when moving 2x+k2x + k across (the xx-coefficient becomes 6-6, the constant 5k5 - k).
  • Trying to differentiate to find the tangent, valid but slower here, and it still needs the point, which you do not have yet.

Full method: Line–Curve Intersection notes. Topic home: Quadratic Functions pillar.

Common questions

Why does a tangent give a repeated root?
To find where a line and a curve meet, you set them equal and solve. Each solution is one intersection point. A tangent touches the curve at exactly one point, so the combined equation must have exactly one solution, which for a quadratic means a repeated (equal) root. That is precisely the condition b² − 4ac = 0. If the discriminant were positive the line would cross at two points (a chord); if negative, it would miss the curve entirely.

Keep going

See the teaching work on your own child. Then decide.

Every student starts with a 1-hour trial class taught by the vetted tutor your child would actually have. Real teaching, a diagnostic on real exam questions, and a straight answer on the gap to target. One hour at your tutor's rate (RM80–90/hr), no package and no deposit, and you decide afterwards whether to book a weekly slot. Online anywhere in Malaysia.