Skip to content
spmaddmath.com.my
Tuition

Study

SyllabusFormulasMethodsExam & PapersTools
LocationsPricingBlogOur TeachersContact
EN

Worked examples · Linear Law

Linear Law, Worked Examples (KBAT)

These hard Linear Law examples combine a reduction with a second demand, take reciprocals of both sides to straighten y=xax+by = \frac{x}{ax+b}, work a power law with a fractional gradient and then reverse it to find xx, and turn an exponential law into an index equation. Each is fully worked and checked.

Try every question on paper first, then follow our solution line by line.

What these examples cover

These hard Linear Law examples ask for two things at once: a reduction that is not obvious, and a second step that uses the straight line to answer a follow-up. You will take reciprocals of both sides to linearise y=xax+by = \frac{x}{ax+b}, handle a power law whose gradient is a fraction and then reverse it to find an xx-value, and convert an exponential law into an index equation you can solve exactly.

The numbers stay clean so every line is checkable. Cover the solution, attempt the full question on paper, reduction and follow-up, and only then compare line by line.

If your answer differs, the split is almost always in the reduction, so look there first.

Worked examples

Work through all three. Each one starts with a reduction into Y=mX+cY = mX + c, finds the constants, and then does something with them.

Attempt each fully before reading the solution.

Q1[5 marks]

The variables xx and yy are related by y=xax+by = \frac{x}{ax + b}, where aa and bb are constants. A straight-line graph of 1y\frac{1}{y} against 1x\frac{1}{x} passes through (1x,1y)=(1,5)\left(\frac{1}{x}, \frac{1}{y}\right) = (1, 5) and (3,11)(3, 11).

Find (a) the values of aa and bb, and (b) the value of yy when x=6x = 6.

Show worked solution

(a) The variable is trapped in a fraction, so take the reciprocal of both sides. Then split the single fraction into two terms:

1y=ax+bx=a+b(1x)\frac{1}{y} = \frac{ax + b}{x} = a + b\left(\frac{1}{x}\right)

Compared with Y=mX+cY = mX + c, the vertical axis is Y=1yY = \frac{1}{y} and the horizontal axis is X=1xX = \frac{1}{x}. The gradient is bb and the intercept is aa.

Find the gradient from the two points:

b=11531=62=3b = \frac{11 - 5}{3 - 1} = \frac{6}{2} = 3

Substitute the point (1,5)(1, 5) to find the intercept aa:

5=3(1)+a    a=25 = 3(1) + a \;\Rightarrow\; a = 2

(b) So y=x2x+3y = \frac{x}{2x + 3}. Substitute x=6x = 6:

y=62(6)+3=615=25y = \frac{6}{2(6) + 3} = \frac{6}{15} = \frac{2}{5}

Answer

a=2a = 2, b=3b = 3, and y=25y = \frac{2}{5} when x=6x = 6. Check via the line: at X=16X = \frac{1}{6}, Y=a+bX=2+3(16)=2.5Y = a + bX = 2 + 3\left(\frac{1}{6}\right) = 2.5, so y=12.5=25y = \frac{1}{2.5} = \frac{2}{5}, which agrees.

Q2[5 marks]

The variables xx and yy are related by y=axny = ax^{n}, where aa and nn are constants. A straight-line graph of lgy\lg y against lgx\lg x has gradient 12\frac{1}{2} and passes through the point (lgx,lgy)=(2,3)(\lg x, \lg y) = (2, 3).

Find (a) the values of aa and nn, and (b) the value of xx when y=3000y = 3000.

Show worked solution

(a) Take lg\lg of both sides so the relation is straight:

lgy=nlgx+lga\lg y = n\lg x + \lg a

The gradient is nn, so n=12n = \frac{1}{2} directly. Use the given point (2,3)(2, 3) to find the intercept lga\lg a, then undo the logarithm:

3=12(2)+lga    3=1+lga    lga=2    a=1003 = \tfrac{1}{2}(2) + \lg a \;\Rightarrow\; 3 = 1 + \lg a \;\Rightarrow\; \lg a = 2 \;\Rightarrow\; a = 100

(b) So y=100x1/2=100xy = 100x^{1/2} = 100\sqrt{x}. Set y=3000y = 3000 and solve for xx, isolate the root, then square both sides:

100x=3000    x=30    x=302=900100\sqrt{x} = 3000 \;\Rightarrow\; \sqrt{x} = 30 \;\Rightarrow\; x = 30^{2} = 900

Answer

n=12n = \frac{1}{2}, a=100a = 100, and x=900x = 900 when y=3000y = 3000. Check: 100900=100(30)=3000100\sqrt{900} = 100(30) = 3000, as required.

A fractional gradient simply means a root, here the square root, because n=12n = \frac{1}{2}.

Q3[5 marks]

The variables xx and yy are related by y=abxy = ab^{x}, where aa and bb are constants. A straight-line graph of lgy\lg y against xx passes through (0,1)(0, 1) and (2,7)(2, 7).

Find (a) the values of aa and bb, and (b) the value of xx for which y=10000000y = 10\,000\,000.

Show worked solution

(a) Take lg\lg of both sides; the exponent xx comes down as a coefficient:

lgy=(lgb)x+lga\lg y = (\lg b)x + \lg a

The point (0,1)(0, 1) lies on the vertical axis, so it gives the intercept: lga=1a=10\lg a = 1 \Rightarrow a = 10. Find the gradient lgb\lg b from the two points, then undo the logarithm:

lgb=7120=62=3    b=103=1000\lg b = \frac{7 - 1}{2 - 0} = \frac{6}{2} = 3 \;\Rightarrow\; b = 10^{3} = 1000

(b) So y=10(1000)x=10×103x=103x+1y = 10(1000)^{x} = 10 \times 10^{3x} = 10^{\,3x + 1}. Write the target as a power of ten and equate the indices:

103x+1=10000000=107    3x+1=7    x=210^{\,3x + 1} = 10\,000\,000 = 10^{7} \;\Rightarrow\; 3x + 1 = 7 \;\Rightarrow\; x = 2

Answer

a=10a = 10, b=1000b = 1000, and x=2x = 2 when y=107y = 10^{7}. Check on the line: at x=2x = 2, lgy=3(2)+1=7\lg y = 3(2) + 1 = 7, so y=107y = 10^{7}, which agrees with the point (2,7)(2, 7).

Q4[5 marks]

The variables xx and yy are related by y=px2+qxy = px^{2} + qx, where pp and qq are constants. A straight-line graph of yx\frac{y}{x} against xx passes through the points (x,yx)=(1,4)\left(x, \frac{y}{x}\right) = (1, -4) and (4,2)(4, 2).

Find (a) the values of pp and qq, and (b) the non-zero value of xx for which y=0y = 0.

Show worked solution

(a) The right-hand side has two terms in xx, so divide both sides by xx (x0x \neq 0) rather than taking logarithms:

yx=px+q\frac{y}{x} = px + q

Compared with Y=mX+cY = mX + c, the vertical axis is Y=yxY = \frac{y}{x} and the horizontal axis is X=xX = x, so the gradient is pp and the intercept is qq. Find the gradient from the two points:

p=2(4)41=63=2p = \frac{2 - (-4)}{4 - 1} = \frac{6}{3} = 2

Substitute the point (1,4)(1, -4) to find the intercept qq:

4=2(1)+q    q=6-4 = 2(1) + q \;\Rightarrow\; q = -6

(b) So y=2x26xy = 2x^{2} - 6x. Set y=0y = 0 and factorise, do not simply divide by xx this time, since x=0x = 0 is itself a genuine root:

2x26x=0    2x(x3)=02x^{2} - 6x = 0 \;\Rightarrow\; 2x(x - 3) = 0

This gives x=0x = 0 or x=3x = 3; the question asks for the non-zero value.

Answer

p=2p = 2, q=6q = -6, and the non-zero root is x=3x = 3. Check: at x=3x = 3, y=2(3)26(3)=1818=0y = 2(3)^{2} - 6(3) = 18 - 18 = 0, as required.

The x=0x = 0 root is lost the moment you divide by xx to linearise, so it must be recovered by solving the original equation directly.

Q5[5 marks]

The variables xx and yy are related by y=ax+bxy = ax + \frac{b}{x}, where aa and bb are constants. A straight-line graph of xyxy against x2x^{2} passes through the points (x2,xy)=(1,1)(x^{2}, xy) = (1, -1) and (4,8)(4, 8).

Find (a) the values of aa and bb, and (b) the positive value of xx for which xy=23xy = 23.

Show worked solution

(a) The two terms are axax and bx\frac{b}{x}, so multiply both sides by xx to clear the fraction:

xy=ax2+bxy = ax^{2} + b

Compared with Y=mX+cY = mX + c, the vertical axis is Y=xyY = xy and the horizontal axis is X=x2X = x^{2}, so the gradient is aa and the intercept is bb. Find the gradient from the two points:

a=8(1)41=93=3a = \frac{8 - (-1)}{4 - 1} = \frac{9}{3} = 3

Substitute the point (1,1)(1, -1) to find the intercept bb:

1=3(1)+b    b=4-1 = 3(1) + b \;\Rightarrow\; b = -4

(b) So xy=3x24xy = 3x^{2} - 4. Set xy=23xy = 23 and solve for x2x^{2}, then take the positive square root:

3x24=23    3x2=27    x2=9    x=33x^{2} - 4 = 23 \;\Rightarrow\; 3x^{2} = 27 \;\Rightarrow\; x^{2} = 9 \;\Rightarrow\; x = 3

Answer

a=3a = 3, b=4b = -4, and the positive value is x=3x = 3. Check: at x=3x = 3, xy=3(3)24=274=23xy = 3(3)^{2} - 4 = 27 - 4 = 23, as required.

Because the reduced equation is quadratic in xx, remember x=3x = -3 solves it too, only the positive root is asked for here.

Q6[5 marks]

The variables xx and yy are related by y2=ax+by^{2} = ax + b, where aa and bb are constants. A straight-line graph of y2y^{2} against xx passes through the points (1,4)(1, 4) and (5,16)(5, 16).

Find (a) the values of aa and bb, and (b) the two possible values of yy when x=8x = 8.

Show worked solution

(a) The variable yy appears squared, so no reciprocal or logarithm is needed, plot y2y^{2} directly against xx:

y2=ax+by^{2} = ax + b

Compared with Y=mX+cY = mX + c, the vertical axis is Y=y2Y = y^{2} and the horizontal axis is X=xX = x, so the gradient is aa and the intercept is bb. Find the gradient from the two points:

a=16451=124=3a = \frac{16 - 4}{5 - 1} = \frac{12}{4} = 3

Substitute the point (1,4)(1, 4) to find the intercept bb:

4=3(1)+b    b=14 = 3(1) + b \;\Rightarrow\; b = 1

(b) So y2=3x+1y^{2} = 3x + 1. Substitute x=8x = 8, then take the square root of both sides, a squared variable always leaves two roots:

y2=3(8)+1=25    y=±5y^{2} = 3(8) + 1 = 25 \;\Rightarrow\; y = \pm 5

Answer

a=3a = 3, b=1b = 1, and y=5y = 5 or y=5y = -5 when x=8x = 8. Check: 3(8)+1=25=52=(5)23(8) + 1 = 25 = 5^{2} = (-5)^{2}, so both values satisfy the equation.

Squaring yy to linearise the relation hides its sign, so a follow-up asking for yy itself, not y2y^{2}, always has two valid answers unless the question restricts yy to one sign.

Q7[6 marks]

The variables xx and yy are related by y=abx2y = ab^{x^{2}}, where aa and bb are constants. A straight-line graph of lgy\lg y against x2x^{2} passes through the points (1,3)(1, 3) and (4,9)(4, 9).

Find (a) the values of aa and bb, and (b) the positive value of xx for which y=1019y = 10^{19}.

Show worked solution

(a) The variable xx sits inside the exponent, and squared besides, so take lg\lg of both sides and let the new horizontal variable be x2x^{2} itself:

lgy=(lgb)x2+lga\lg y = (\lg b)x^{2} + \lg a

Compared with Y=mX+cY = mX + c, the vertical axis is Y=lgyY = \lg y and the horizontal axis is X=x2X = x^{2}, so the gradient is lgb\lg b and the intercept is lga\lg a. Find the gradient from the two points, then undo the logarithm:

lgb=9341=63=2    b=102=100\lg b = \frac{9 - 3}{4 - 1} = \frac{6}{3} = 2 \;\Rightarrow\; b = 10^{2} = 100

Substitute the point (1,3)(1, 3) to find the intercept, then undo the logarithm:

3=2(1)+lga    lga=1    a=103 = 2(1) + \lg a \;\Rightarrow\; \lg a = 1 \;\Rightarrow\; a = 10

(b) So y=10(100)x2=101+2x2y = 10(100)^{x^{2}} = 10^{1 + 2x^{2}}. Write the target as a power of ten and equate the indices:

101+2x2=1019    1+2x2=19    x2=9    x=310^{1 + 2x^{2}} = 10^{19} \;\Rightarrow\; 1 + 2x^{2} = 19 \;\Rightarrow\; x^{2} = 9 \;\Rightarrow\; x = 3

Answer

a=10a = 10, b=100b = 100, and the positive value is x=3x = 3. Check: 1+2(3)2=1+18=191 + 2(3)^{2} = 1 + 18 = 19, so y=1019y = 10^{19}, as required.

The exponent here is x2x^{2}, not xx, so recovering xx at the end needs a square root as well as an index equation, one extra layer on top of the usual exponential law.

Q8[5 marks]

The variables xx and yy are related by y=px+qxy = p\sqrt{x} + \frac{q}{\sqrt{x}}, where pp and qq are constants. A straight-line graph of yxy\sqrt{x} against xx passes through the points (1,8)(1, 8) and (4,14)(4, 14).

Find (a) the values of pp and qq, and (b) the value of yy when x=36x = 36.

Show worked solution

(a) The two terms have x\sqrt{x} and 1x\frac{1}{\sqrt{x}}, so multiply both sides by x\sqrt{x} to clear the fraction:

yx=px+qy\sqrt{x} = px + q

Compared with Y=mX+cY = mX + c, the vertical axis is Y=yxY = y\sqrt{x} and the horizontal axis is X=xX = x, so the gradient is pp and the intercept is qq. Find the gradient from the two points:

p=14841=63=2p = \frac{14 - 8}{4 - 1} = \frac{6}{3} = 2

Substitute the point (1,8)(1, 8) to find the intercept qq:

8=2(1)+q    q=68 = 2(1) + q \;\Rightarrow\; q = 6

(b) So yx=2x+6y\sqrt{x} = 2x + 6. Substitute x=36x = 36, then divide by 36\sqrt{36} to isolate yy:

y36=2(36)+6=78    6y=78    y=13y\sqrt{36} = 2(36) + 6 = 78 \;\Rightarrow\; 6y = 78 \;\Rightarrow\; y = 13

Answer

p=2p = 2, q=6q = 6, and y=13y = 13 when x=36x = 36. Check: yx=2(36)+6=78y\sqrt{x} = 2(36) + 6 = 78, and 13×36=13×6=7813 \times \sqrt{36} = 13 \times 6 = 78, which agrees.

Multiplying by x\sqrt{x} rather than squaring keeps the relation linear in xx itself, so the follow-up is a direct substitution once pp and qq are known.

Each solution rests on the same two-part discipline: reduce cleanly into Y=mX+cY = mX + c and name the axes, then read the constants and carry them into the follow-up. The follow-up is where hard questions test whether you truly rebuilt the original relation, a reciprocal, a root, or an index equation, rather than stopping at the straight line.

Key method points

These three examples show how a hard Linear Law question layers a follow-up on top of a reduction. Keep the following points in mind as you practise more.

  • When the variable is trapped in a fraction, take the reciprocal of both sides, then split the fraction into separate terms.
  • For y=xax+by = \frac{x}{ax+b}, the reciprocal gives 1y=b(1x)+a\frac{1}{y} = b\left(\frac{1}{x}\right) + a, so plot 1y\frac{1}{y} against 1x\frac{1}{x}.
  • A fractional gradient in a power law is just a root: n=12n = \frac{1}{2} means y=axy = a\sqrt{x}; reverse it by isolating the root and squaring.
  • For an exponential law, rewrite the target as a power of ten and equate indices to solve for xx exactly.
  • Always rebuild the original relation with your constants, then substitute the given point back to confirm it.
  • Because marking is analytic, a clean reduction and a correct comparison earn method marks even before the follow-up is finished.

How a teacher helps

Hard questions rarely fail on the reduction alone, they fail on the join between the reduction and the follow-up, where a reciprocal or an index step gets rushed. In a one-to-one lesson our teacher works that join with you, so you can see how the constants you read from the line feed straight into the equation you still have to solve.

Because our teachers are experienced, you work with someone who explains the why behind each step, not just the what. Lessons are taught in English, while SPM papers are set in both Malay and English, so the notation reads the same to you either way.

Get 1-to-1 help.

Book a Trial Class

Frequently asked questions

How do I linearise a relation like y=xax+by = \frac{x}{ax+b}?

Take the reciprocal of both sides to get 1y=ax+bx\frac{1}{y} = \frac{ax+b}{x}, then split the right-hand side into a+b(1x)a + b\left(\frac{1}{x}\right). Now it is a straight line in 1y\frac{1}{y} and 1x\frac{1}{x}, with gradient bb and intercept aa.

What does a fractional gradient mean in a power law?

It means the index nn is a fraction, which corresponds to a root. A gradient of 12\frac{1}{2} gives y=axy = a\sqrt{x}.

To find xx from a value of yy, isolate the root and square both sides.

How do I solve y=abxy = ab^{x} for xx once I know aa and bb?

Substitute the constants and write both sides as powers of the same base. When y=103x+1y = 10^{3x+1} and the target is 10710^{7}, equate the indices: 3x+1=73x+1 = 7, so x=2x = 2.

Why does the follow-up matter so much in hard questions?

The follow-up checks that you rebuilt the original relation, not just the straight line. Reading the gradient and intercept is only half the task; carrying them into a reciprocal, a root, or an index equation is what earns the later 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