A great resource to prepare for your N5 Maths exams. Get £10 discount with code 'Maths.scot'. Learn more
Example 1 (non-calculator)
The scattergraph shows the results of an experiment investigating the relationship between two variables \(x\) and \(y\). It has been found that there is a positive correlation.
A line of best fit has been drawn.
Find the equation of the line of best fit in terms of \(y\) and \(x\). Give the equation in its simplest form.
We can see from the graph that the points (2,3) and (9,7) are on the line of best fit.
Now we use (\(a\),\(b\)) = (2,3) to find the equation:
$$
\begin{eqnarray}
y-b &=& m(x-a) \\[6pt]
y-3 &=& \small{\frac{4}{7}}\normalsize (x-2) \\[6pt]
7(y-3) &=& 4(x-2) \\[6pt]
7y-21 &=& 4x-8 \\[6pt]
-4x+7y &=& -8+21 \\[6pt]
-4x+7y &=& 13 \\[6pt]
\end{eqnarray}
$$
Example 2 (non-calculator)
The scattergraph shows the results of an experiment investigating the relationship between two variables P and Q. It has been found that there is a negative correlation.
A line of best fit has been drawn.
(a) Find the equation of the line of best fit in terms of Q and P. Give the equation in its simplest form.
(b) Use your answer to part (a) to estimate the value of Q when P = 4.
(c) Estimate the value of P when Q = 3.
(a) We can see from the graph that the points (3,9) and (5,4) are on the line of best fit.
In this question, Q is used instead of \(y\small,\) and it's P instead of \(x\small.\) You can either use P and Q throughout the working or you can use \(x\) and \(y\) in your working and just change them to P and Q at the end. We prefer to use the correct letters throughout, but either way is acceptable to the SQA. Use whichever style you prefer.
A cattle farmer records the weight of some of his calves.
The scattergraph shows the relationship between the age, A months, and the weight, W kilograms, of the calves.
A line of best fit is drawn.
Point D represents a 3 month old calf which weighs 100 kilograms.
Point E represents a 15 month old calf which weighs 340 kilograms.
(a) Find the equation of the line of best fit in terms of A and W. Give the equation in its simplest form.
(b) Use your equation from part (a) to estimate the weight of a one year old calf. Show your working.
(a) Point D is (3,100) and point E is (15,340). First we find the gradient.
Now we use (\(a\),\(b\)) = (3,100) to find the equation:
$$
\begin{eqnarray}
W-b &=& m(A-a) \\[6pt]
W-100 &=& 20(A-3) \\[6pt]
W-100 &=& 20A-60 \\[6pt]
W &=& 20A-60+100 \\[6pt]
W &=& 20A+40
\end{eqnarray}
$$
(b) Note that one year is 12 months, so we substitute A = 12 into the equation:
So the estimated weight of the one year old calf is 280 kg.
Example 4 (non-calculator)
SQA National 5 Maths 2018 P1 Q7
The cost of a journey with Tom's Taxis depends on the distance travelled.
The graph below shows the cost, P pounds, of a journey with Tom's Taxis against the distance travelled, d miles.
Point A represents a journey of 8 miles which costs £14.
Point B represents a journey of 12 miles which costs £20.
(a) Find the equation of the line in terms of P and d. Give the equation in its simplest form.
(b) Calculate the cost of a journey of 5 miles.
(a) Point A is (8,14) and point B is (12,20). First we find the gradient.
Now we use (\(a\),\(b\)) = (8,14) to find the equation:
$$
\begin{eqnarray}
P-b &=& m(d-a) \\[6pt]
P-14 &=& \small\frac{3}{2}\normalsize (d-8) \\[6pt]
2(P-14) &=& 3(d-8) \\[6pt]
2P-28 &=& 3d-24 \\[6pt]
2P &=& 3d-24+28 \\[6pt]
2P &=& 3d+4 \\[6pt]
\end{eqnarray}
$$
Note that you could divide this equation through by 2 and give it as \(P=\large\frac{3}{2}\normalsize d+2\) if you wish, but we prefer to avoid fractions whenever possible.
The fuel consumption of a group of cars is recorded.
The scattergraph shows the relationship between the fuel consumption, F kilometres per litre, and the engine size, E litres, of the cars.
A line of best fit has been drawn.
(a) Find the equation of the line of best fit in terms of F and E. Give the equation in its simplest form.
(b) Amaar's car has an engine size of 1.1 litres. Use your equation from part (a) to estimate how many kilometres per litre he should expect to get.
(a) From the scattergraph, we obtain points (1.5,14) and (3.5,8). So we find the gradient.
Now we can use (\(a\),\(b\)) = (1.5,14) to find the equation:
$$
\begin{eqnarray}
F-b &=& m(E-a) \\[6pt]
F-14 &=& -\!3(E-1.5) \\[6pt]
F-14 &=& -\!3E+4.5 \\[6pt]
2F-28 &=& -\!6E+9 \\[6pt]
2F &=& -\!6E+9+28 \\[6pt]
2F &=& -\!6E+37 \\[6pt]
\end{eqnarray}
$$
Note that you could divide this equation through by 2 and give it as \(F=-3E+18.5\) if you wish, but we prefer whole numbers in equations, whenever possible.
A business recorded the salaries of a sample of its employees and the length of time they have worked for the business.
The scattergraph shows the relationship between their salary, P pounds, and the length of time, T years, they have worked.
A line of the best fit has been drawn.
(a) Find the equation of the line of best fit in terms of P and T. Give the equation in its simplest form.
(b) Use your equation from part (a) to estimate the salary of an employee who has worked for the business for 8 years.
(a) From the scattergraph, we obtain points (5,20 000) and (25,50 000). So we find the gradient.
Now we can use (\(a\),\(b\)) = (5,20 000) to find the equation:
$$
\begin{eqnarray}
P-20\,000 &=& 1500(T-5) \\[6pt]
P-20\,000 &=& 1500T-7500 \\[6pt]
P &=& 1500T-7500+20\,000 \\[6pt]
P &=& 1500T+12\,500
\end{eqnarray}
$$