Skip to content

Cartesian line equation

The cartesian form of a 2D line is the form you are used to seeing.

It describes how the value changes as changes (with an offset, ):

This equation is true, because any point along the line will satisfy the equation.

For example, take the line equation , which, drawing the graph, we can see has a point at, for example, :

  • Substitute the values into the equation:
    • // true

While this may seem obvious, it shows us something very important:

  • A line equation simply represents a ‘condition’ where, when a point is substituted into the line equation, the point is only on the line if the equation is satisfied (true).

You may have also seen an equation that looks like this:

All that this means is that, for any point, it is on the line if its x-coordinate is equal to 7. That means that we will get a straight vertical line, where the x-coordinate of all the points on the line is .

We don’t usually work with 3D lines in their Cartesian format (we usually convert them to vector form) - but we can do.

The same rule applies as with 2D lines - the equation of a line simply defines the conditions that a point must satisfy to be on the line.

For the line with that equation, it essentially means that every point on the line has coordinate and coordinate of , but the coordinate could be anything.