Find the equation of the straight line through (−1, 8) and (3, −4).
- Gradient: m = (−4 − 8)/(3 − (−1)) = −12/4 = −3.
- Put (−1, 8) into y = −3x + c: 8 = −3 × (−1) + c = 3 + c, so c = 5.
- Check with (3, −4): −3 × 3 + 5 = −4.
Answer: y = −3x + 5
Maths · Algebra. The idea in plain words, the rules to remember, the mistake to avoid and a worked example, written and checked by Mega Lecture.
A straight-line graph is fixed by two things: how steep it is and where it crosses the y-axis. In y = mx + c, m is the gradient and c is the y-intercept. The gradient is how far the line goes up for each 1 unit across; a negative gradient slopes down from left to right.
You can read m and c only when the equation is in the form y = ..., so rearrange first.
Parallel lines have the same gradient. Perpendicular lines meet at 90° and their gradients multiply to −1. For two points you can also find the midpoint (average the coordinates) and the distance between them (Pythagoras).
A straight line has an equation y = mx + c. The m is the gradient, which shows how steep the line is. The c is where the line crosses the y-axis. To read m and c, the equation must start with y =. Parallel lines have the same gradient. Perpendicular lines meet at a right angle, and their gradients multiply to make −1.
The gradient is like the steepness of a ramp: how many steps up for each step across. A negative gradient is a ramp going downhill. The y-intercept is where the ramp starts on the wall. The comparison stops working because a line on a graph goes on for ever in both directions, while a ramp has ends.
Reading the gradient before rearranging. For 2y = 6x + 8 the gradient is 3, not 6, because the equation must first be divided by 2 to give y = 3x + 4.
Rearrange to y = mx + c before reading anything. For the gradient, write m = (y2 − y1)/(x2 − x1), substitute and simplify. To find c, put a point into y = mx + c and solve. For a perpendicular line, use −1/m. Write the final equation in the form asked. For midpoint and length, write the formula, substitute, then give the answer exactly or to the accuracy asked.
Answer: y = −3x + 5
Type what you are stuck on. The helper finds the explanation, worked examples and the notes to read, free and instant.
← Formulae, identities, proof and functionsQuadratic and other graphs →Take a Maths test