Everything to learn better...

Home

Maths

Straight line graphs

Equations of straight lines

Equations of straight lines

Select Lesson

Exam Board

Select an option

Explainer Video

Loading...
Tutor: Daniel

Summary

Equations of straight lines

In a nutshell

You can find out the equation of a straight line, y=mx+cy=mx+c, using gradients and points. The equation of a straight line can be found by using a pair of coordinates (x1,y1)(x_1,y_1)​ and the gradient mm. You can use an equation, yy1=m(xx1)y-y_1=m(x-x_1), to find the exact equation for y=mx+cy=mx+c​. You can also use equations to find where lines intersect.



Finding y=mx+cy=mx+c using the gradient and a point​

If you know the gradient of a line, mm​, and you know a point on that line, (x1,y1)(x_1,y_1), then you can work out the equation of that line. All you have to do is use the formula yy1=m(xx1) y-y_1=m(x-x_1). This will allow you find the line's equation.


Procedure

1.

Label the gradient and the coordinates of the point on the line.

2.

Substitute into the equation yy1=m(xx1)y-y_1=m(x-x_1).​

3.

Solve for y=mx+cy=mx+c​.


Example 1

A line has a point (3,4)(3,4)​ and a gradient of 22​. Find the equation of the line in the form of y=mx+cy=mx+c.


Label the gradient and the coordinates.

m=m=22​, x1=x_1=33​, y1=4y_1=4

Substitute y1y_1mm and x1x_1 in the equation yy1=m(xx1)y-y_1=m(x-x_1).

y4=2(x3)y-4=2(x-3)


Rearrange to give y=mx+cy=mx+c.

​​​​y4=2x6y=2x2\begin{aligned}y-4 &= 2x-6\\&\underline{y =2x-2}\\\end{aligned}



Finding y=mx+cy=mx+c  using two points​

To find the equation of a line using two points (x1,y1)(x_1, y_1)​ and (x2,y2)(x_2,y_2), first you find the gradient mm​ using the equation from the previous lesson, m=y2y1x2x1m=\dfrac{y_2-y_1}{x_2-x_1}. Once you find out mm, you can then take the (x1,y1)(x_1, y_1) coordinates and solve as above.


Procedure

1.

Label the coordinates (x1,y1)(x_1,y_1) and (x2,y2)(x_2,y_2).

2.

Find out the gradient mm.

3.

Rearrange for y=mx+cy=mx+c.


Example 2

A line intersects two points, P1P_1​ with coordinates  (2,5)(-2, 5) and P2P_2 with coordinates (6,1)(-6,1). Find the equation of the line in the format y=mx+cy=mx+c.


Label both points.

x1=2,y1=5,x2=6,y2=1x_1=-2, y_1=5, x_2=-6,y_2=1

Find the gradient mm.

m=y2y1x2x1m=156(2)m=44m=1\begin{aligned}m&=\dfrac{y_2-y_1}{x_2-x_1}\\ \\m&=\dfrac{1-5}{-6-(-2)}\\ \\m&=\dfrac{-4}{-4}\\ \\m&=1\\\end{aligned}


Solve for y=mx+cy=mx+c.

yy1=m(xx1)y5=1(x(2))y=x+2+5y=x+7\begin{aligned}y-y_1&=m(x-x_1)\\y-5&=1(x-(-2))\\y&= x +2+5\\&\underline{y=x+7}\\\end{aligned},

 


Find the intersection between two lines

Finally, sometimes you will be given two line equations and asked to find a point where those lines intersect. This can be solved like simultaneous equations, where you substitute xx  or yy​ in one equation with an answer from the other. This works mathematically since the point where those lines intersect means that the xx and yy values in both equations must be equal.


Example 3

The lines y=2x+5y=2x+5​ and 5x2y+12=05x-2y+12=0​ intersect at the point AA​. Find the coordinates of AA​.


Substitute yy​ in one equation.

5x2y+12=02x+5=y5x2(2x+5)+12=0\begin{aligned}5x-2y+12&= 0\\2x+5&=y\\5x-2(2x+5)+12&=0\\\end{aligned}


Solve for xx

5x4x10+12=0x+2=0x=2\begin{aligned}5x-4x-10+12&=0\\x+2&=0\\x&=-2\\\end{aligned}


Use this xx  value to solve for the corresponding yy​ value to find point AA​.​​​​

y=2x+5y=2(2)+5y=4+5y=1 A=(2,1)\begin{aligned}y&=2x+5\\y&=2(-2)+5\\y&=-4+5\\y&=1\\&\underline{\therefore\space A =(-2,1)}\\\end{aligned}​​​​

​​ 

Create an account to read the summary

Exercises

Create an account to complete the exercises

FAQs - Frequently Asked Questions

How do you find the equation of a line?

What are the three equations of a line?

What are the 2 equations of a straight line?

Beta

I'm Vulpy, your AI study buddy! Let's study together.