40% off

Ends 15 Aug

Lock in £90

Coordinate Geometry Straight Lines

Updated July 2026

The Straight Line

Equation of a straight line, including

yy1=m(xx1)y - y_1 = m(x - x_1)

ax+by+c=0ax + by + c = 0

Conditions for two straight lines to be parallel or perpendicular to each other. Finding equations of straight lines given information in various forms.

The specification here is self-explanatory as to what you need to know about straight lines. You should be comfortable dealing both algebraically and geometrically [i.e., graphically] with straight lines. In this section we will briefly explore most of the main ideas we expect you to know and add a few things to think about.

Let's start with the classic y=mx+cy = mx + c and remind ourselves of what the mm and the cc represent for a diagram of a line whilst we explore things in a little more detail.

The mm in mx+cmx + c represents the gradient of the straight line. [You should be able to calculate the gradient of a straight line if you are given two points that it passes through.] But what does the gradient tell us about the line? The usual way of thinking about the mm is as a measure of 'steepness': the greater the value of mm then the steeper the line; and if mm is positive the line slopes from bottom left to top right, and if the mm is negative is slopes from top left to bottom right.

But what do we really mean by steepness? We can think of steepness in a couple of interrelated ways: we can think of the gradient as telling us how much we have to go vertically to get back on the line for every 1 unit we move horizontally from a point on the line. So, if the gradient is 2 then we need to move vertically up by 2 for every 1 unit we move horizontally from the line; and if the gradient is minus 3 then we need to move down by 3 for every 1 unit we move horizontally from the line [see diagrams below].

Another way of thinking about this [which is more useful when we encounter straight lines as tangents to curves] is that, for instance, a gradient of 2 tells us that the yy values are changing twice as fast as the xx values – so as xx increases by 1 the yy values must increase by 2, and if xx increase by 5 then yy must increase by 10 and so on. Negative gradients, for instance 3-3, just tell us that as xx increases by 1 then the yy values decrease [the minus sign signals the decrease] by 3. So gradient is a 'rate of change' telling us the rate at which yy changes relative to xx.

img-17.jpeg

gradient of 2

img-18.jpeg

gradient of -3

There is yet another way to think about the gradient which can be useful, that is to consider the gradient as the tan [that is the trigonometric tan] of the angle that the line makes with the positive xx axis [see diagrams] and of this we assume the scales on the xx-axis and the yy-axis are the same. You should be able to see why this is the case if you consider how the gradient is calculated. So, the gradient of a line at 45 degrees should be tan45=1\tan 45 = 1 and that is exactly what we expect with a line such as y=xy = x. If the angle is 135 then we would expect the gradient to be tan135=1\tan 135 = -1 and that is exactly what we expect with a line such as y=xy = -x.

img-19.jpeg

img-20.jpeg

There are a couple of special cases for gradients: horizontal lines [which have a gradient of zero] and vertical lines which don't strictly have a gradient but often it is said they have an infinite gradient or negative infinite gradient [this is all a bit of a fudge]. It is best to think of vertical lines [and perhaps horizontal lines] as special cases - vertical lines always have the equation x=some numberx = \text{some number} and horizontal lines always have the equation y=some numbery = \text{some number}. You should also be aware that the xx-axis has equation y=0y = 0 and the yy-axis has equation x=0x = 0.

What can you say about the gradients of two parallel lines [we exclude horizontal and vertical lines for this discussion, but you should be able to spot when they come up as special cases]? They have the same steepness so they must have the same gradients. So we can say that lines y=m1x+c1y = m_1x + c_1 and y=m2x+c2y = m_2x + c_2 are parallel if and only if m1=m2m_1 = m_2 [check you know why we write "if and only if" you might need to look at our Notes on Logic and Proof for TMUA paper 2].

What about lines that are perpendicular to each other? Here you need to know [and understand] that the lines y=m1x+c1y = m_1x + c_1 and y=m2x+c2y = m_2x + c_2 are perpendicular if and only if m1m2=1m_1m_2 = -1. You should be able to see this easily by looking at the two similar triangles in the diagram below – convince yourself why m1m2=1m_1m_2 = -1 using this diagram.

img-21.jpeg

Exercise

[This exercise is a little outside of the TMUA/ESAT specification.] Use the idea that the gradient of a straight line is equal to the tangent of the angle it makes with the horizontal xx-axis to explain why m1m2=1m_1m_2 = -1 if and only if the lines are perpendicular [exclude cases that involve vertical lines]. You can then ask yourself a general question – is there a condition on m1m_1 and m2m_2 when the lines meet at some other angles [60 or 45 degrees, for instance] and can you justify your answer?

We have spent some time discussing the gradient of a straight line so now we can turn to ask what the cc represents in the y=mx+cy = mx + c. The answer is simple, and you should know it: the cc is the value of yy where the graph crosses the yy-axis; this is often called "the yy-intercept".

It is also useful to think about straight line graphs using graph-transformations [see later in these notes]:

Exercise

As an exercise, think about what each of the following transformations does to the graph of y=xy = x [y1y_1 and x1x_1 are constants; we could have called them something like pp and qq but we chose to vary the notation a little as you will need to get used to all sorts of notation as you learn more mathematics – text books and teachers are not always consistent in how they use notation. If you introduce notation into your maths that isn't given in a problem, make sure you make it VERY clear what your notation represents!]

y=xtoy=mxy = x \quad \text{to} \quad y = mx

y=xtoyy1=xy = x \quad \text{to} \quad y - y_1 = x

y=xtoy=xx1y = x \quad \text{to} \quad y = x - x_1

Then combinations of these:

y=xtoyy1=mxy = x \quad \text{to} \quad y - y_1 = mx

y=xtoy=m(xx1)y = x \quad \text{to} \quad y = m(x - x_1)

y=xtoyy1=m(xx1)y = x \quad \text{to} \quad y - y_1 = m(x - x_1)

Finally, you should be able to work out the equation of a line given two bits of information. What two bits of information do you think you will need to uniquely specify the equation of a line? The answer is you will need:

Case 1

The coordinate of one point on the line and the gradient of the line – i.e., point (x1, y1) lies on the line with gradient m.

To work out the equation you need to notice that the gradient of the line joining any point (x, y) on the line with (x1, y1) must be constant:

yy1xx1=m\frac{y - y_1}{x - x_1} = m

And then rearranging.

Or you can use y = mx + c and substitute the point (x1, y1) into the equation to find c. (With line questions it is very easy to make sign errors when putting coordinates into equations. Make sure you are careful!)

Exercise

Use both the above approaches to find the equation of the line with the following gradients and points:

m=4 point=(3,2)m = 4 \text{ point} = (3, 2)

m=5 point=(5,3)m = -5 \text{ point} = (5, 3)

m=2 point=(2,4)m = -2 \text{ point} = (-2, -4)

Case 2

The coordinates of two distinct points that sit on the line (x1, y1) and (x2, y2).

To work out the equation of the line, take a general point (x, y) on the line and calculate the gradient of the line [which is fixed no matter what] in two different ways:

yy1xx1=y1y2x1x2\frac{y - y_1}{x - x_1} = \frac{y_1 - y_2}{x_1 - x_2}

and then rearrange this equation.

Or you can work out the gradient first using y1y2x1x2\frac{y_1 - y_2}{x_1 - x_2} [make sure you get the order of the xx and the yy on the top and the bottom the same way around – otherwise you will get the wrong sign for your gradient; and also make sure to put yy on the top and xx on the bottom ] and then using y=mx+cy = mx + c and finding cc by substituting in one of the points (x1,y1)(x_1, y_1) or (x2,y2)(x_2, y_2) into the equation.

Exercise

Use both the above approaches to find the equation of the line with the following gradients and points:

  • (0, 0) and (2, 3) [is there a shortcut here?]
  • (-2, 5) and (-4, -7)
  • (3, -7) and (8, -7)

Final thoughts

In this section we have used the equation of a line in the from y=mx+cy = mx + c. However, it is also common to see the equation of a line written in the form ax+by+c=0ax + by + c = 0 [It is unfortunate that cc appears in both as its role is different in each equation – do not assume that the cc in ax+by+c=0ax + by + c = 0 is the yy-intercept!]. You should be able to move from one form to the other easily using algebra. Both forms are useful in different contexts and different education systems might put more emphasis on one form rather than the other.

Ready to test your knowledge?

You've reached the end of this section. Start a practice session to solidify your understanding and master this topic.