Equation of a straight line

There are lots of different ways to represent a straight line - here’s a summary of a few of them.

y = mx + c

This is probably the way you’re familiar with. In this equation:

This equation is useful if you know the gradient and y-intercept of a line, and want to find the value of y for a given x.

Ax + By + C = 0

This is called the general form of a straight line. In this equation:

y - y_1 = m(x - x_1)

This is called the point-slope form of a straight line. In this equation:

This essentially, more explicitly, describes how we get from one point on the line to another, using the gradient.

It’s useful when we know the gradient of the line and points on it, but don’t know the y-intercept.