Skip to content
spmaddmath.com.my
Tuition

Study

SyllabusFormulasMethodsExam & PapersTools
LocationsPricingBlogOur TeachersContact
EN

Worked examples · Systems of Equations

Systems of Equations, Worked Examples (KBAT)

These hard Systems of Equations examples push into fractions and a KBAT twist: a substitution whose quadratic has one fractional root, a three-variable system with awkward coefficients, and a tangent question solved through the discriminant. Try each on paper first, then check every line against our full solution.

What these examples cover

These hard Systems of Equations examples keep the same core methods but raise the demands. The first substitution leaves a quadratic that does not have whole-number roots, so you factorise with a non-unit leading coefficient and carry a fraction cleanly to the end.

The second is a three-variable linear system whose coefficients do not cancel at a glance, you scale equations before you add. The third is a KBAT twist: a straight line is a tangent to a curve, which means their combined equation has exactly one repeated root, so you set the discriminant to zero.

Cover the solution, attempt each in full on paper, then check line by line. Where your working parts from ours is exactly where the learning is.

Worked examples

Work through all three. They are longer than the earlier sets, so give yourself room on the page and resist skipping the check at the end, on hard questions the check is often where a dropped sign is caught.

Q1[5 marks]

Solve the simultaneous equations xy=1x-y=1 and x2+xy=6x^{2}+xy=6.

Show worked solution

Make xx the subject of the linear equation:

x=y+1x=y+1

Substitute into x2+xy=6x^{2}+xy=6. Expand both (y+1)2(y+1)^{2} and the product (y+1)y(y+1)y:

(y+1)2+(y+1)y=6    y2+2y+1+y2+y=6(y+1)^{2}+(y+1)y=6 \;\Rightarrow\; y^{2}+2y+1+y^{2}+y=6

Collect like terms and bring everything to one side:

2y2+3y+1=6    2y2+3y5=02y^{2}+3y+1=6 \;\Rightarrow\; 2y^{2}+3y-5=0

Factorise the quadratic. The leading coefficient is 22, so split the middle term: 2y2+5y2y52y^{2}+5y-2y-5, which factors as

(2y+5)(y1)=0    y=52 or y=1(2y+5)(y-1)=0 \;\Rightarrow\; y=-\tfrac{5}{2} \ \text{or}\ y=1

Substitute each root back into x=y+1x=y+1:

y=1x=2,y=52x=32y=1 \Rightarrow x=2, \qquad y=-\tfrac{5}{2} \Rightarrow x=-\tfrac{3}{2}

Answer

The solutions are (2,1)(2,1) and (32,52)\left(-\tfrac{3}{2},-\tfrac{5}{2}\right). Check the fractional pair in x2+xy=6x^{2}+xy=6: 94+(32)(52)=94+154=244=6\tfrac{9}{4}+\left(-\tfrac{3}{2}\right)\left(-\tfrac{5}{2}\right)=\tfrac{9}{4}+\tfrac{15}{4}=\tfrac{24}{4}=6, as required.

Q2[6 marks]

Solve the system x+y+z=4x+y+z=4, 2x+3yz=22x+3y-z=-2 and 3xy+2z=133x-y+2z=13.

Show worked solution

Label the equations: (1)  x+y+z=4(1)\;x+y+z=4, (2)  2x+3yz=2(2)\;2x+3y-z=-2, (3)  3xy+2z=13(3)\;3x-y+2z=13. Eliminate zz first.

Add (1)(1) and (2)(2), whose zz-terms are +z+z and z-z:

(1)+(2):  3x+4y=2(4)(1)+(2):\; 3x+4y=2 \quad (4)

Now eliminate zz again from a different pair. Multiply (2)(2) by 22 to match the +2z+2z in (3)(3), then add:

2×(2):  4x+6y2z=42\times(2):\; 4x+6y-2z=-4
[2×(2)]+(3):  7x+5y=9(5)[2\times(2)]+(3):\; 7x+5y=9 \quad (5)

Solve (4)(4) and (5)(5) by elimination. Multiply (4)(4) by 55 and (5)(5) by 44 so the yy-terms match:

15x+20y=10,28x+20y=3615x+20y=10, \qquad 28x+20y=36

Subtract the first from the second:

13x=26    x=213x=26 \;\Rightarrow\; x=2

Substitute x=2x=2 into (4)(4), then find zz from (1)(1):

3(2)+4y=2y=1,z=4xy=42(1)=33(2)+4y=2 \Rightarrow y=-1, \qquad z=4-x-y=4-2-(-1)=3

Answer

The solution is x=2,  y=1,  z=3x=2,\; y=-1,\; z=3. Check the equation not used at the end, (3)(3): 3(2)(1)+2(3)=6+1+6=133(2)-(-1)+2(3)=6+1+6=13, correct.

Q3[6 marks]

The straight line y=2x+cy=2x+c is a tangent to the curve y=x2+3y=x^{2}+3. Find the value of cc and the coordinates of the point of contact.

Show worked solution

A tangent meets the curve at exactly one point, so the equation formed by solving the line and curve together must have one repeated root. Set the two expressions for yy equal:

x2+3=2x+cx^{2}+3=2x+c

Rearrange into a quadratic in xx with everything on one side:

x22x+(3c)=0x^{2}-2x+(3-c)=0

For one repeated root the discriminant b24acb^{2}-4ac must be zero. Here a=1a=1, b=2b=-2, cquad=3cc_{\text{quad}}=3-c:

(2)24(1)(3c)=0    412+4c=0(-2)^{2}-4(1)(3-c)=0 \;\Rightarrow\; 4-12+4c=0

Solve for cc:

4c=8    c=24c=8 \;\Rightarrow\; c=2

Put c=2c=2 back into the quadratic to find the point of contact. It becomes a perfect square:

x22x+1=0    (x1)2=0    x=1x^{2}-2x+1=0 \;\Rightarrow\; (x-1)^{2}=0 \;\Rightarrow\; x=1

Find yy from the line y=2x+c=2x+2y=2x+c=2x+2:

y=2(1)+2=4y=2(1)+2=4

Answer

c=2c=2, and the point of contact is (1,4)(1,4). Check it lies on the curve: (1)2+3=4(1)^{2}+3=4, which matches the yy-value from the line.

Q4[5 marks]

A rectangular garden has a perimeter of 2222 m and an area of 24 m224\text{ m}^{2}. Given that the length is greater than the width, find the length and the width of the garden.

Show worked solution

Let the length be xx m and the width be yy m. Halving the perimeter gives the sum of the two sides, and the area gives their product:

x+y=11,xy=24x+y=11, \qquad xy=24

A pair of numbers with a known sum and a known product are the two roots of the quadratic t2(sum)t+(product)=0t^{2}-(\text{sum})t+(\text{product})=0. Substitute the values in:

t211t+24=0t^{2}-11t+24=0

Factorise:

(t3)(t8)=0    t=3 or t=8(t-3)(t-8)=0 \;\Rightarrow\; t=3 \ \text{or}\ t=8

The two roots 33 and 88 are the width and length in some order. Since the length is greater than the width:

length=8,width=3\text{length}=8, \qquad \text{width}=3

Answer

The garden is 88 m by 33 m. Check: perimeter =2(8+3)=22=2(8+3)=22 m and area =8×3=24 m2=8\times3=24\text{ m}^{2}, both correct.

Q5[5 marks]

Two positive numbers have a sum of 55 and the sum of their reciprocals is 56\frac{5}{6}. Find the two numbers.

Show worked solution

Let the two numbers be xx and yy. The first condition gives the sum directly, and the second gives an equation in 1x\frac{1}{x} and 1y\frac{1}{y}:

x+y=5,1x+1y=56x+y=5, \qquad \frac{1}{x}+\frac{1}{y}=\frac{5}{6}

Combine the fractions on the left of the second equation over a common denominator xyxy:

1x+1y=y+xxy=x+yxy\frac{1}{x}+\frac{1}{y}=\frac{y+x}{xy}=\frac{x+y}{xy}

Substitute x+y=5x+y=5 into this combined fraction and equate it to 56\frac{5}{6}:

5xy=56    xy=6\frac{5}{xy}=\frac{5}{6} \;\Rightarrow\; xy=6

Now xx and yy are the two roots of the quadratic with sum 55 and product 66:

t25t+6=0    (t2)(t3)=0    t=2 or t=3t^{2}-5t+6=0 \;\Rightarrow\; (t-2)(t-3)=0 \;\Rightarrow\; t=2 \ \text{or}\ t=3

Answer

The two numbers are 22 and 33. Check: 12+13=36+26=56\frac{1}{2}+\frac{1}{3}=\frac{3}{6}+\frac{2}{6}=\frac{5}{6}, as required.

Q6[6 marks]

A right-angled triangle has legs of length xx cm and yy cm and a hypotenuse of 1010 cm. The perimeter of the triangle is 2424 cm.

Given that x>yx>y, find the value of xx and of yy.

Show worked solution

The perimeter gives a linear equation in xx and yy, and Pythagoras' theorem on the right angle gives a second, non-linear equation:

x+y+10=24    x+y=14,x2+y2=102=100x+y+10=24 \;\Rightarrow\; x+y=14, \qquad x^{2}+y^{2}=10^{2}=100

Substituting y=14xy=14-x directly would work, but it is faster to use the identity (x+y)2=x2+2xy+y2(x+y)^{2}=x^{2}+2xy+y^{2} to find the product xyxy first:

142=100+2xy    196100=2xy14^{2}=100+2xy \;\Rightarrow\; 196-100=2xy

Solve for xyxy:

2xy=96    xy=482xy=96 \;\Rightarrow\; xy=48

xx and yy are now the two roots of the quadratic with sum 1414 and product 4848:

t214t+48=0    (t6)(t8)=0    t=6 or t=8t^{2}-14t+48=0 \;\Rightarrow\; (t-6)(t-8)=0 \;\Rightarrow\; t=6 \ \text{or}\ t=8

Since x>yx>y, assign the larger root to xx:

x=8,y=6x=8, \qquad y=6

Answer

x=8x=8 and y=6y=6. Check: 82+62=64+36=100=1028^{2}+6^{2}=64+36=100=10^{2}, and the perimeter is 8+6+10=248+6+10=24 cm, both correct.

Q7[6 marks]

At a fruit stall, 22 apples, 11 orange and 33 pears cost RM2222 in total. 11 apple, 33 oranges and 22 pears cost RM2121.

33 apples, 22 oranges and 11 pear cost RM1717. Find the price of one apple, one orange and one pear.

Show worked solution

Let the price of one apple, orange and pear be RMaa, RMoo and RMpp respectively. The three purchases give three equations; label them:

(1)  2a+o+3p=22,(2)  a+3o+2p=21,(3)  3a+2o+p=17(1)\; 2a+o+3p=22, \quad (2)\; a+3o+2p=21, \quad (3)\; 3a+2o+p=17

pp has coefficient 11 in equation (3)(3), so make it the subject and eliminate it from (1)(1) and (2)(2):

p=173a2op=17-3a-2o

Substitute into (1)(1):

2a+o+3(173a2o)=22    7a+5o=29(4)2a+o+3(17-3a-2o)=22 \;\Rightarrow\; 7a+5o=29 \quad (4)

Substitute into (2)(2):

a+3o+2(173a2o)=21    5a+o=13(5)a+3o+2(17-3a-2o)=21 \;\Rightarrow\; 5a+o=13 \quad (5)

Make oo the subject of (5)(5) and substitute into (4)(4):

o=135a,7a+5(135a)=29    18a=36    a=2o=13-5a, \qquad 7a+5(13-5a)=29 \;\Rightarrow\; -18a=-36 \;\Rightarrow\; a=2

Back-substitute to find oo and pp:

o=135(2)=3,p=173(2)2(3)=5o=13-5(2)=3, \qquad p=17-3(2)-2(3)=5

Answer

An apple costs RM22, an orange RM33 and a pear RM55. Check equation (1)(1): 2(2)+3+3(5)=4+3+15=222(2)+3+3(5)=4+3+15=22, correct.

Q8[5 marks]

The straight line y=x+ky=x+k intersects the curve y=x23x+7y=x^{2}-3x+7 at two distinct points. Find the range of values of kk.

Show worked solution

Two distinct points of intersection mean the equation formed by solving the line and curve together has two distinct real roots, so its discriminant must be positive rather than zero. Set the two expressions for yy equal:

x+k=x23x+7x+k=x^{2}-3x+7

Rearrange into a quadratic in xx with everything on one side:

x24x+(7k)=0x^{2}-4x+(7-k)=0

For two distinct real roots, b24ac>0b^{2}-4ac>0. Here a=1a=1, b=4b=-4, c=7kc=7-k:

(4)24(1)(7k)>0(-4)^{2}-4(1)(7-k)>0

Simplify the inequality:

1628+4k>0    4k>12    k>316-28+4k>0 \;\Rightarrow\; 4k>12 \;\Rightarrow\; k>3

Answer

The line meets the curve at two distinct points for k>3k>3. Check the boundary k=3k=3: the equation becomes x24x+4=0x^{2}-4x+4=0, i.e. (x2)2=0(x-2)^{2}=0, a single repeated root (tangency), confirming that kk must be strictly greater than 33 for two separate points.

These three look demanding, yet each rests on a method you already own. Substitution still reduces the system to one equation; elimination still removes a letter, only now you scale first; and the tangent question is a simultaneous equation in disguise, closed by the single idea that one point of contact means one repeated root.

Name which method applies, and hard questions become long rather than mysterious.

Key method points

These three examples show how the standard methods handle fractions, awkward coefficients, and a tangent condition. Keep the following points in mind as you practise more.

  • When a quadratic has a non-unit leading coefficient, split the middle term to factorise, and keep fractional roots exact rather than rounding.
  • In a three-variable system, scale one or both equations before adding so a chosen letter cancels; eliminate the same letter twice.
  • A line is a tangent to a curve exactly when their combined quadratic has one repeated root, so set b24ac=0b^{2}-4ac=0.
  • After finding a tangent constant, substitute it back, the quadratic becomes a perfect square and gives the point of contact directly.
  • Always verify a fractional solution by substitution; a common slip is a sign error inside (y+1)2(y+1)^{2}.
  • Because marking is analytic, the discriminant line and each elimination step earn method marks on their own.

How a teacher helps

Hard questions rarely fail on the idea; they fail on stamina, a fraction dropped halfway, or a discriminant set up with the wrong sign. In a one-to-one lesson our teacher helps you lay the work out so long solutions stay readable, and shows you where a quick check catches an error before it costs the whole answer.

Because our teachers are experienced, you build the composure to finish a six-mark question cleanly under time. Lessons are taught in English, while SPM papers are set in both Malay and English, so the notation stays familiar to you either way.

Get 1-to-1 help.

Book a Trial Class

Frequently asked questions

How do I factorise a quadratic like 2y2+3y52y^{2}+3y-5?

Split the middle term into two parts that multiply to 2×(5)=102\times(-5)=-10 and add to 33: those are +5+5 and 2-2. Group to get (2y+5)(y1)(2y+5)(y-1).

The fractional root then comes from 2y+5=02y+5=0.

What does it mean for a line to be a tangent to a curve?

The line touches the curve at exactly one point. When you solve the line and curve together, the resulting quadratic therefore has one repeated root, which is why the discriminant b24acb^{2}-4ac equals zero.

Why do I substitute the tangent constant back into the quadratic?

To find where the touching happens. With the tangent value in place, the quadratic becomes a perfect square such as (x1)2=0(x-1)^{2}=0, giving the single xx-coordinate of the point of contact directly.

In a three-variable system, why scale equations before adding?

So a chosen letter cancels. If the coefficients of zz are 1-1 and +2+2, multiplying the first equation by 22 makes them 2-2 and +2+2, so adding removes zz at once.

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