Skip to content
spmaddmath.com.my
Tuition

Study

SyllabusFormulasMethodsExam & PapersTools
LocationsPricingBlogOur TeachersContact
EN

Worked examples · Linear Law

Linear Law, Worked Examples (medium)

These medium Linear Law examples take the reductions a step further, dividing through to linearise y=ax+bx2y = ax + bx^{2}, and taking logarithms to straighten the power law y=axny = ax^{n} and the exponential law y=abxy = ab^{x}. Each one ends by reading the constants from the straight line.

Try every question on paper first, then check each line against our working.

What these examples cover

These medium Linear Law examples move past reading a ready-made straight line and into the reductions themselves. You will divide a relation through by xx to linearise y=ax+bx2y = ax + bx^{2}, then use logarithms to straighten two of the most common exam relations: the power law y=axny = ax^{n} and the exponential law y=abxy = ab^{x}.

Each one uses small, clean numbers so the algebra stays visible. The best way to use the set is to cover the solution, attempt the reduction and the arithmetic in full on paper, and only then check line by line against our working.

If your answer differs, find the exact step where the two solutions part company, deciding what to plot and where the logarithm lands is where most marks are won or lost.

Worked examples

Work through all three. Attempt each fully before you read the matching solution, and watch how the same discipline, rearrange into Y=mX+cY = mX + c, name YY and XX, then match gradient and intercept to the constants, carries every one.

Q1[4 marks]

The variables xx and yy are related by y=ax+bx2y = ax + bx^{2}, where aa and bb are constants. A straight-line graph of yx\frac{y}{x} against xx passes through the points (2,7)(2, 7) and (5,16)(5, 16).

Find the values of aa and bb.

Show worked solution

First linearise the relation. Divide every term by xx so the equation matches Y=mX+cY = mX + c:

yx=a+bx=bx+a\frac{y}{x} = a + bx = bx + a

So the vertical axis is Y=yxY = \frac{y}{x} and the horizontal axis is X=xX = x. The gradient is bb and the intercept is aa.

Find the gradient from the two points:

b=16752=93=3b = \frac{16 - 7}{5 - 2} = \frac{9}{3} = 3

Substitute the point (2,7)(2, 7) to find the intercept aa:

7=3(2)+a    7=6+a    a=17 = 3(2) + a \;\Rightarrow\; 7 = 6 + a \;\Rightarrow\; a = 1

Answer

a=1a = 1 and b=3b = 3, so y=x+3x2y = x + 3x^{2}. Check with the second point: at x=5x = 5, y=5+3(25)=80y = 5 + 3(25) = 80, and yx=805=16\frac{y}{x} = \frac{80}{5} = 16, which matches (5,16)(5, 16).

Q2[4 marks]

The variables xx and yy are related by y=axny = ax^{n}, where aa and nn are constants. When lgy\lg y is plotted against lgx\lg x, a straight line passes through (lgx,lgy)=(1,5)(\lg x, \lg y) = (1, 5) and (3,9)(3, 9).

Find the values of aa and nn.

Show worked solution

Take lg\lg of both sides and use the power and product laws of logarithms to straighten the relation:

lgy=lg(axn)=lga+nlgx=(n)lgx+lga\lg y = \lg\left(a x^{n}\right) = \lg a + n\lg x = (n)\lg x + \lg a

Comparing with Y=mX+cY = mX + c, the vertical axis is Y=lgyY = \lg y and the horizontal axis is X=lgxX = \lg x. The gradient is nn and the intercept is lga\lg a.

Find the gradient from the two points:

n=9531=42=2n = \frac{9 - 5}{3 - 1} = \frac{4}{2} = 2

Substitute the point (1,5)(1, 5) to find the intercept lga\lg a, then undo the logarithm:

5=2(1)+lga    lga=3    a=103=10005 = 2(1) + \lg a \;\Rightarrow\; \lg a = 3 \;\Rightarrow\; a = 10^{3} = 1000

Answer

n=2n = 2 and a=1000a = 1000, so y=1000x2y = 1000\,x^{2}. Check the second point: at lgx=3\lg x = 3, lgy=2(3)+3=9\lg y = 2(3) + 3 = 9, which matches (3,9)(3, 9).

Q3[4 marks]

The variables xx and yy are related by y=abxy = ab^{x}, where aa and bb are constants. When lgy\lg y is plotted against xx, a straight line passes through (0,2)(0, 2) and (3,5)(3, 5).

Find the values of aa and bb.

Show worked solution

Take lg\lg of both sides. Here the variable xx sits in the exponent, so the power law brings it down as a coefficient:

lgy=lg(abx)=lga+xlgb=(lgb)x+lga\lg y = \lg\left(a b^{x}\right) = \lg a + x\lg b = (\lg b)x + \lg a

Comparing with Y=mX+cY = mX + c, the vertical axis is Y=lgyY = \lg y and the horizontal axis is X=xX = x. The gradient is lgb\lg b and the intercept is lga\lg a.

The point (0,2)(0, 2) sits on the vertical axis, so it gives the intercept directly:

lga=2    a=102=100\lg a = 2 \;\Rightarrow\; a = 10^{2} = 100

Now find the gradient from the two points and undo the logarithm to get bb:

lgb=5230=33=1    b=101=10\lg b = \frac{5 - 2}{3 - 0} = \frac{3}{3} = 1 \;\Rightarrow\; b = 10^{1} = 10

Answer

a=100a = 100 and b=10b = 10, so y=100(10)xy = 100(10)^{x}. Check the second point: at x=3x = 3, lgy=1(3)+2=5\lg y = 1(3) + 2 = 5, which matches (3,5)(3, 5).

Q4[3 marks]

The variables xx and yy are related by y=px2+qy = px^{2} + q, where pp and qq are constants. A straight-line graph of yy against x2x^{2} passes through the points (1,7)(1, 7) and (3,17)(3, 17).

Find the values of pp and qq.

Show worked solution

This relation is already linear once the horizontal axis is x2x^{2}: the vertical axis is Y=yY = y and the horizontal axis is X=x2X = x^{2}, matching Y=mX+cY = mX + c. The gradient is pp and the intercept is qq.

Find the gradient from the two points:

p=17731=102=5p = \frac{17 - 7}{3 - 1} = \frac{10}{2} = 5

Substitute the point (1,7)(1, 7) to find qq:

7=5(1)+q    q=27 = 5(1) + q \;\Rightarrow\; q = 2

Answer

p=5p = 5 and q=2q = 2, so y=5x2+2y = 5x^{2} + 2. Check the second point: at x2=3x^{2} = 3, y=5(3)+2=17y = 5(3) + 2 = 17, which matches (3,17)(3, 17).

Q5[4 marks]

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

Find the values of aa and bb.

Show worked solution

Divide every term by xx so the equation matches Y=mX+cY = mX + c:

xyx=axx+bx    y=a+b1x\frac{xy}{x} = \frac{ax}{x} + \frac{b}{x} \;\Rightarrow\; y = a + b\cdot\frac{1}{x}

So the vertical axis is Y=yY = 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=21952=123=4b = \frac{21 - 9}{5 - 2} = \frac{12}{3} = 4

Substitute the point (2,9)(2, 9) to find the intercept aa:

9=4(2)+a    9=8+a    a=19 = 4(2) + a \;\Rightarrow\; 9 = 8 + a \;\Rightarrow\; a = 1

Answer

a=1a = 1 and b=4b = 4, so xy=x+4xy = x + 4, i.e. y=1+4xy = 1 + \frac{4}{x}. Check the second point: at 1x=5\frac{1}{x} = 5, y=1+4(5)=21y = 1 + 4(5) = 21, which matches (5,21)(5, 21).

Q6[3 marks]

The variables xx and yy are related by 1y=ax+b\frac{1}{y} = ax + b, where aa and bb are constants. A straight-line graph of 1y\frac{1}{y} against xx passes through the points (1,7)(1, 7) and (4,19)(4, 19).

Find the values of aa and bb.

Show worked solution

This relation is already linear once the vertical axis is 1y\frac{1}{y}: Y=1yY = \frac{1}{y} and X=xX = x, matching Y=mX+cY = mX + c. The gradient is aa and the intercept is bb.

Find the gradient from the two points:

a=19741=123=4a = \frac{19 - 7}{4 - 1} = \frac{12}{3} = 4

Substitute the point (1,7)(1, 7) to find bb:

7=4(1)+b    b=37 = 4(1) + b \;\Rightarrow\; b = 3

Answer

a=4a = 4 and b=3b = 3, so 1y=4x+3\frac{1}{y} = 4x + 3, i.e. y=14x+3y = \frac{1}{4x + 3}. Check the second point: at x=4x = 4, 1y=4(4)+3=19\frac{1}{y} = 4(4) + 3 = 19, which matches (4,19)(4, 19).

Q7[4 marks]

The variables xx and yy are related by y=abx2y = ab^{x^{2}}, where aa and bb are constants. When lgy\lg y is plotted against x2x^{2}, a straight line passes through (0,3)(0, 3) and (2,7)(2, 7).

Find the values of aa and bb.

Show worked solution

Take lg\lg of both sides. Because xx is squared inside the power, x2x^{2} itself becomes the horizontal variable:

lgy=lg(abx2)=lga+x2lgb=(lgb)x2+lga\lg y = \lg\left(ab^{x^{2}}\right) = \lg a + x^{2}\lg b = (\lg b)x^{2} + \lg a

Comparing with Y=mX+cY = mX + c, the vertical axis is Y=lgyY = \lg y and the horizontal axis is X=x2X = x^{2}. The gradient is lgb\lg b and the intercept is lga\lg a.

The point (0,3)(0, 3) sits on the vertical axis, so it gives the intercept directly:

lga=3    a=103=1000\lg a = 3 \;\Rightarrow\; a = 10^{3} = 1000

Now find the gradient from the two points and undo the logarithm to get bb:

lgb=7320=42=2    b=102=100\lg b = \frac{7 - 3}{2 - 0} = \frac{4}{2} = 2 \;\Rightarrow\; b = 10^{2} = 100

Answer

a=1000a = 1000 and b=100b = 100, so y=1000(100)x2y = 1000(100)^{x^{2}}. Check the second point: at x2=2x^{2} = 2, lgy=2(2)+3=7\lg y = 2(2) + 3 = 7, which matches (2,7)(2, 7).

Q8[3 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 (2,13)(2, 13) and (5,25)(5, 25).

Find the values of aa and bb.

Show worked solution

This relation is already linear once the vertical axis is y2y^{2}: Y=y2Y = y^{2} and X=xX = x, matching Y=mX+cY = mX + c. The gradient is aa and the intercept is bb.

Find the gradient from the two points:

a=251352=123=4a = \frac{25 - 13}{5 - 2} = \frac{12}{3} = 4

Substitute the point (2,13)(2, 13) to find bb:

13=4(2)+b    13=8+b    b=513 = 4(2) + b \;\Rightarrow\; 13 = 8 + b \;\Rightarrow\; b = 5

Answer

a=4a = 4 and b=5b = 5, so y2=4x+5y^{2} = 4x + 5. Check the second point: at x=5x = 5, y2=4(5)+5=25y^{2} = 4(5) + 5 = 25, which matches (5,25)(5, 25).

The three questions look different, one divides through, two take logarithms, yet the plan is identical: rearrange until the equation reads as Y=mX+cY = mX + c, state exactly what YY and XX are, and only then match the gradient and intercept to the constants. Naming the axes before you touch the numbers is what keeps a power law and an exponential law from being confused.

Key method points

These three examples rehearse the reductions that carry the harder half of Linear Law. Keep the following points in mind as you practise more.

  • To linearise y=ax+bx2y = ax + bx^{2}, divide every term by xx: yx=bx+a\frac{y}{x} = bx + a, so plot yx\frac{y}{x} against xx.
  • For a power law y=axny = ax^{n}, take lg\lg of both sides: lgy=nlgx+lga\lg y = n\lg x + \lg a, so plot lgy\lg y against lgx\lg x.
  • For an exponential law y=abxy = ab^{x}, take lg\lg of both sides: lgy=(lgb)x+lga\lg y = (\lg b)x + \lg a, so plot lgy\lg y against xx.
  • The difference is where xx sits: xnx^{n} makes the gradient nn and needs lgx\lg x on the horizontal axis; bxb^{x} makes the gradient lgb\lg b and keeps xx itself.
  • When the intercept equals lga\lg a or lgb\lg b, undo it with a power of ten: lga=ka=10k\lg a = k \Rightarrow a = 10^{k}.
  • Because marking is analytic, a correct reduction earns method marks even before you reach the final values of the constants.

How a teacher helps

The slip we see most often here is a rushed logarithm, leaving the intercept as lga\lg a instead of aa, or confusing a power law with an exponential one. In a one-to-one lesson our teacher slows the reduction down with you, so you can see exactly why lgx\lg x belongs on one graph and plain xx on the other.

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 decide between plotting lgx\lg x and plotting xx?

Look at where the variable sits. In a power law y=axny = ax^{n} the xx is the base, so you plot lgy\lg y against lgx\lg x.

In an exponential law y=abxy = ab^{x} the xx is the exponent, so you plot lgy\lg y against plain xx.

Why divide by xx for y=ax+bx2y = ax + bx^{2}?

Dividing every term by xx gives yx=bx+a\frac{y}{x} = bx + a, which is a straight line in yx\frac{y}{x} and xx. The gradient becomes bb and the intercept becomes aa, so both constants can be read from one line.

The intercept came out as lga=3\lg a = 3. How do I get aa?

Undo the logarithm by raising ten to that power: a=103=1000a = 10^{3} = 1000. Leaving your answer as lga\lg a is a common way to lose the final mark, so always convert back to aa or bb.

How can I check my constants at the end?

Substitute the second given point into your straight-line equation. If it produces the correct value on the graph, and the original relation reproduces the data, both constants are secure.

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