straight Lines

You will be expected to be able to find the equation of a straight line given a variety of scenarios. This could be as simple as finding the equation of a line given two points, or it could be finding the equation of a parallel or perpendicular line given points or other relevant information. You may also be expected to represent straight lines in different formats including the following:

  • y=mx+c
  • ax+by+c=0
  • y-y_1=m(x-x_1)

Line Equations given Two Points

Recall that to find the equation of a straight line between two points, you must first find the gradient of the line that connects the two points. We can calculate this gradient using rise over run. One of the points can then be used to calculate the y-intercept of the line. Remind yourself of how to do this with the following example.

Example – Find the equation of the line between the points (2,4) and (4,10).

It is always a good idea to sketch the information first – sometimes this helps you realise what to do next if you get stuck. The line that connects these two points rises by 6 as it runs along 2 and so rise over run is \frac{6}{2}=3. It follows that the gradient of the line is 3. Hence, this tells us that the line is of the form y=3x+c. To then find c, plug one of the given points into the equation so far: 4=3\times 2 +c and so c must be -2. The final equation of the line is y=3x-2.

Parallel and Perpendicular Lines

You may be required to find the equation of a straight line that is either parallel or perpendicular to another given line. This type of question varies in its complexity. For instance, you could be given some very basic information as in Example 1 below or it can be much more involved as in Example 2.

Note that parallel lines have the same gradient – see Example 1. However, if the gradient of a given line is m then the gradient of a line perpendicular to it is -\frac{1}{m} – see Examples 1 and 2.

When studying differentiation, you will meet tangents and normals – these are examples of perpendicular lines.


Consider the straight lines that intersect the y-axis at the origin. For this type of straight line the y-intercept is 0 in the straight line equation and so they are of the form y=kx. We tend to use k instead of m when we talk about the gradient of a line that goes through the origin because k is known as the constant of proportionality. When the straight line takes an equation of this form, we say that y is proportional to x or y\propto x. Click here to see more on proportionality. 

Example – Recall that the circumference of a circle (C) is found by multiplying the diameter of the circle (d) by \pi. The circumference of a circle is thus proportional to the diameter and the constant of proportionality is \pi – we write this as C=\pi d. Zero diameter means zero circumference and so the plot of circumference against diameter goes through the origin. 

This isn’t quite as simple as the plot of y=2x, for example, but \pi is still a constant all the same. Note that circumference is also proportional to radius but the constant of proportionality is then 2\pi.

Modelling with Straight Lines

This table shows some temperatures given in degrees Celsius and their corresponding temperatures in degrees Fahrenheit.

^\circ C010203040
^\circ F32506886104

From the graph below we can see that the relationship between Celsius and Fahrenheit is precisely a linear one. More specifically, the gradient is \frac{9}{5} and the y-intercept is 32 and so F=\frac{9}{5}C+32:

This equation can now be used to convert any temperature given in Celsius to Fahrenheit and vice versa.


1. What is the equation of the line that runs parallel to y=3x-1 and intersects the y-axis at (0,4)?
2. Find the equation of the line that is perpendicular to the line y=2x+3 and intersects it at the point (2,7). Give your answer in the form ax+by+c=0 where a, b and c are integers.


1. Parallel lines have the same gradient and so the line required has gradient 3. Since it intersects the y-axis at (0,4), the y-intercept is 4 and so the equation is given by y=3x+4.

Always draw sketches to accompany your working – they help with problem solving and allow you to check that your answers make sense.

2. The line y=2x+3 has gradient 2 and so a line perpendicular to it has gradient -\frac{1}{2}. The equation so far is y=-\frac{1}{2}x+c. We can find c by inserting the coordinates (2,7) giving 7=-\frac{1}{2}\times 2+c. Hence, c=8 and the equation of the line is y=-\frac{1}{2}x+8. Multiplying through by 2 to make all coefficients integer gives 2y=-x+16. Finally, we have the equation in the required form: x+2y-16=0.

The line l_1 has equation y-2=\frac{1}{3}(x+2). The line l_2 is perpendicular to l_1, intersecting it at the point A, and also crosses the x-axis at the point B(5,0). Find the distance OA and the area of the triangle OAB.


We start by sketching the information as this will tell us more about the problem. To find the distance OA we require the coordinates of point A. To do this, we must first find the equation of line l_2. The line l_1 can be rewritten as y=\frac{1}{3}x+\frac{8}{3}, which has gradient \frac{1}{3}. The gradient of l_2 is thus -3 and if it intersects the x-axis at 5, it must intersect the y-axis at 15, using rise over run. Hence, l_2 has equation y=-3x+15. To find the coordinates of A, the intersection of the two lines, we solve the simultaneous equations: y=\frac{1}{3}x+\frac{8}{3} and y=-3x+15, to get x=3.7 and y=3.9

The length OA can now be found using Pythagoras: OA=\sqrt{3.7^2+3.9^2}=5.38 to 2 decimal places. The area of triangle OAB can now also be found using the height of the triangle which is 3.9 and the length of its base which is 5, i.e. 0.5\times 5\times 3.9=9.75.


A past exam question (and solutions) testing knowledge and problem solving in coordinate geometry: straight lines.

Coordinate Geometry past AS exam question and solutions – straight lines and GCSE trigonometry.

Tricky coordinate geometry past AS Maths exam question – tests knowledge of straight lines, problem solving and also brings in a quadrilateral at the end.

AS Maths Coordinate Geometry

A2 Maths Coordinate Geometry