Watch this video to learn about the equation of a straight line. Since we are given 2 points that already lie on the line, using the formula as before, we need to calculate the gradient first.
The equation of a straight line can also be written in the form \(f(x) = mx + c\). This is called function notation and is just another way of expressing the relationship between two variables.