Ratio and Algebra

On this page

How to find a ratio from an equation, form an equation from a ratio, and find a ratio when the equation has squares in it.

Key facts

a:b=3:5 means a=3k and b=5k, with the same k

5a=3b means a:b=3:5: the numbers swap sides

  • A ratio is a fraction: a:b=3:5 means \dfrac ab=\dfrac35, so 5a=3b.
  • Coefficients stay in: 3a:2c=5:4 means \dfrac{3a}{2c}=\dfrac54, so 12a=10c and a:c=5:6, not 5:4.
  • For positive x and y, x^2:y^2=9:25 gives x:y=3:5.

Worked example 1: A ratio from an equation

6m+5n=2m+11n

Find the ratio m:n

  1. Collect the m terms on one side and the n terms on the other: 4m=6n
  2. Divide both sides by n, then by 4: \dfrac mn=\dfrac64=\dfrac32
  3. m:n=3:2
  4. Check with m=3, n=2: both sides are 28.
  5. 4m=6n does not give m:n=4:6: the numbers swap sides. This reversed answer is the commonest lost mark.
  6. A formula works the same way: h=4r means r:h=1:4.

Now try this

4a+9b=10a+b

Find the ratio a:b in its simplest form.

Type a ratio with a colon, for example 3:5

  1. 8b=6a, so \dfrac ab=\dfrac86=\dfrac43
  2. a:b=4:3

More like this: practice questions

Worked example 2: An equation from a ratio

Given that x^2:(5x+2)=1:3

find the possible values of x.

  1. Write the ratio as a fraction: \dfrac{x^2}{5x+2}=\dfrac13
  2. Multiply both sides by 3(5x+2): 3x^2=5x+2
  3. 3x^2-5x-2=0
  4. (3x+1)(x-2)=0
  5. x=2 or x=-\frac13
  6. The 3 multiplies x^2, because x^2 goes with the 1: x^2=3(5x+2) is the wrong way round. Give both values: trying numbers finds one at most.

Now try this

Given that x^2:(x+4)=2:1

find the possible values of x.

Give every value, separated by commas

  1. \dfrac{x^2}{x+4}=\dfrac21, so x^2=2(x+4)
  2. x^2-2x-8=0
  3. (x-4)(x+2)=0
  4. x=4 or x=-2

More like this: practice questions

Worked example 3: Amounts in terms of x

A box contains only blue pens and black pens.

number of blue pens : number of black pens =5:3

There are x blue pens in the box.

Find an expression, in terms of x, for the total number of pens in the box. Give your answer in its simplest form.

  1. \dfrac{\text{black}}{x}=\dfrac35, so black =\dfrac{3x}{5}
  2. Total =x+\dfrac{3x}{5}=\dfrac{8x}{5}
  3. Check with x=5: 3 black pens and 8 pens in all.
  4. A ratio of two expressions is rearranged the same way: (y+x):(y-x)=3:1 means y+x=3(y-x)so y=2x.

Now try this

At an animal rescue centre there are only cats and dogs.

number of cats : number of dogs =7:2

There are x cats.

Find an expression, in terms of x, for the total number of animals. Give your answer in its simplest form.

Type powers with ^ and fractions with /, for example x^2 or (x+1)/3

  1. \dfrac{\text{dogs}}{x}=\dfrac27, so dogs =\dfrac{2x}{7}
  2. Total =x+\dfrac{2x}{7}=\dfrac{9x}{7}

More like this: practice questions

Worked example 4: Adding the same amount to both

The heights of two plants, A and B, are in the ratio 4:3

Each plant grows 10 cm.

The ratio of their heights is now 5:4

Work out the height of each plant before it grew.

  1. Before: A =4k and B =3k. After: 4k+10 and 3k+10
  2. \dfrac{4k+10}{3k+10}=\dfrac54
  3. 4(4k+10)=5(3k+10)
  4. 16k+40=15k+50so k=10
  5. A was 40 cm and B was 30 cm. Check: 50:40=5:4
  6. Add the 10 to the amounts, never to the ratio numbers. With no ratio given before the change, use two letters, write an equation for each new ratio and solve them simultaneously.

Now try this

length of rope P : length of rope Q =5:2

12 cm is cut off each rope.

The ratio of their lengths is now 3:1

Work out the length of rope P before it was cut.

  1. Before: 5k and 2k. After: \dfrac{5k-12}{2k-12}=\dfrac31
  2. 5k-12=3(2k-12)
  3. 5k-12=6k-36so k=24
  4. Rope P was 5\times24=120 cm. Check: 108:36=3:1

More like this: practice questions

Worked example 5: Squares in a ratio

Given that \dfrac{x^2+3y^2}{3x^2-y^2}=\dfrac{31}{3} where x>0 and y>0

find, in its simplest form, the ratio x:y

  1. Multiply both sides by 3(3x^2-y^2): 3x^2+9y^2=93x^2-31y^2
  2. 40y^2=90x^2
  3. \dfrac{x^2}{y^2}=\dfrac{40}{90}=\dfrac49
  4. x and y are positive, so \dfrac xy=\dfrac23 and x:y=2:3
  5. Take the square root before writing the ratio: 4:9 is x^2:y^2.

Now try this

Given that \dfrac{x^2+y^2}{2x^2-3y^2}=\dfrac{13}{6} where x>0 and y>0

find, in its simplest form, the ratio x:y

Type a ratio with a colon, for example 3:5

  1. 6x^2+6y^2=26x^2-39y^2, so 45y^2=20x^2
  2. \dfrac{x^2}{y^2}=\dfrac{45}{20}=\dfrac94so x:y=3:2

More like this: practice questions

Worked example 6: A quadratic in x and y

4x^2=5xy+6y^2 where x>0 and y>0

Find the ratio x:y

  1. Make one side 0: 4x^2-5xy-6y^2=0
  2. Factorise: (4x+3y)(x-2y)=0
  3. x and y are positive, so 4x+3y cannot be 0. So x-2y=0
  4. x=2yso x:y=2:1
  5. Check with x=2, y=1: both sides are 16.

Now try this

10x^2+3xy=y^2 where x>0 and y>0

Find the ratio x:y

Type a ratio with a colon, for example 3:5

  1. 10x^2+3xy-y^2=0, so (5x-y)(2x+y)=0
  2. 2x+y cannot be 0, so 5x-y=0
  3. y=5xso x:y=1:5

More like this: practice questions

Practice questions