Everything to learn better...

y = mx + c

Select Lesson

Exam Board

Select an option

Explainer Video

Loading...
Tutor: Daniel

Summary

y=mx+cy=mx+c

​​In a nutshell

y=mx+cy=mx+c is the equation for a straight line, where mm is the gradient of the line and cc is the yy-axis intercept. mm​ tells you how steep a line is by tracking the change in yyover the change in xx​. cctells you where the line intercepts the yy-axis. This is a handy equation because it allows you to learn a lot about a line with only a pair of coordinates. Once you understand it intuitively, you can plot out lines without graph paper.



The gradient formula

A gradient tells you how steep a line is between two points (x1,y1)(x_1,y_1) and (x2,y2)(x_2, y_2). It's calculated as: 


m=ΔyΔx=y2y1x2x1\boxed{m = \dfrac{\Delta y}{\Delta x}=\dfrac{y_2-y_1}{x_2-x_1}}


Intuitively, you can see that a greater change in yyor xx would lead to a steeper line on paper. Therefore, a higher mm value means a greater gradient.

Maths; Straight line graphs; KS5 Year 12; y = mx + c

Three lines with the equations y=x+4y=x+4y=5x+4y=5x+4 and y=5x+4y=-5x+4.

Once you have the coordinates of a line, you can work out the gradient easily.


Procedure

1.

​​Assign coordinates to (x1,y1)(x_1,y_1)​​  and (x2,y2)(x_2,y_2).

2.

​​Plug those numbers into the formula for mm.

3.

​​Solve for mm.


Example 1

Find the gradient for a line between points (2,3)(2,3) and (6,7)(6,7).


Assign values for (x1,y1)(x_1,y_1) and (x2,y2)(x_2,y_2).

 x1=2x_1 = 2y1=3y_1 = 3, x2=6x_2= 6 and y2=7y_2=7


Substitute into the formula for mm and solve.

m=y2y1x2x1m=7362m=44\begin{aligned}m&=\dfrac{y_2-y_1}{x_2-x_1}\\\\m&= \dfrac{7-3}{6-2}\\\\m&= \dfrac{4}{4}\\\end{aligned}​​

m=1\underline{m=1}​​



Working backwards

You can works backwards if you are given just the gradient of a line and some coordinates. This can let you find where a line terminates.


Example 2

A line has coordinates (4,8)(4,8) and (1,a)(-1, a)The gradient of the line is 2.5-2.5​. What is the value of coordinate a?


Assign values to (x1,y1)(x_1,y_1) and (x2,y2)(x_2,y_2)

(4,8)(1,a)(x1,y1)(x2,y2)x1=4,x2=1,y1=8,y2=am=2.5\begin{aligned}(4,8)&(-1,a)\\(x_1,y_1)&(x_2, y_2)\\x_1 = 4, x_2 &= -1, y_1=8, y_2=a\\m&=-2.5\\\end{aligned}​​

Substitute into the formula for mm

​​

 m=y2y1x2x12.5=a814\begin{aligned}m&=\dfrac{y_2-y_1}{x_2-x_1}\\\\-2.5 &=\dfrac{a-8}{-1-4}\\\end{aligned}

Solve for aa


a85=2.5a=12.5+8a=20.5\begin{aligned}\dfrac{a-8}{-5}&=-2.5\\a&= 12.5 + 8 \\&\underline{a=20.5}\\\end{aligned}



The y-intercept, c

cc is known as the yy​-intercept. It is the point where the line has an xx​ value of zero. Visually, this is the point where the line hits the yy​-axis, as the yy​-axis lies where x=0x=0​. To find the intercept from a complete line equation, all you need to do is make x=0x=0​, i.e, remove the mm​ and xx​ from the equation.

Maths; Straight line graphs; KS5 Year 12; y = mx + c

Three lines with equations y=x+4y=x+4y=x+2y=x+2 and y=x4y=x-4.


The xx-intercept is needed less often. It is simply where the line hits the xx​-axis. To find it, you make y=0y=0​ and solve accordingly.


Example 3

What is the gradient and the y-intercept of line 3y+9x12=63y+ 9x - 12 = 6?


Rearrange the equation into the form y=mx+cy=mx + c and solve.

3y+9x12=63y=9x+12+63y=9x+18y=3x+6m=3,c=6\begin{aligned}3y+9x-12&=6\\3y &= -9x +12 + 6\\3y&=-9x + 18\\y&=-3x + 6\\&\underline{m= -3, c= 6}\\\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 y=mx+c?

What is c in the equation y=mx+c?

What does y=mx+c stand for?

Beta

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