In a straight line graph, we use the equation y=mx+c, where ‘m’ is the gradient (Δy/Δx) and ‘c’ is the y-intercept
Now, you will also see this written as ax+by+c=0, where a, b, and c are all integers
You can define a straight line by giving either:
The equation of a line with gradient ‘m’ that passes through the point with coordinates (x1,y1) can be written as:
y-y1= m(x-x1)
If we know two different points on the line, we can use the equation:
y-y1/ x-x1 =y2-y1/x2-x1
To recap:
equation | when? |
---|---|
y= mx+c | generally/ whenever |
y-y1= m(x-x1) | when you have one point and a gradient known |
y-y1/x-x1= y2-y1/x2-x1 | when you have two points known |