Linear equations and inequalities

This is about equations of lines in 2-D. For lines in 3-D, see equations of lines in 3-D (HL).

Contents

Horizontal and vertical lines

x=4x = 4 is a vertical line. y=2y = -2 is a horizontal line.

Gradient (slope)

The slope of a non-vertical line passing through points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) is

m=y2y1x2x1=ΔyΔx=riserun=tanθm=\frac{y_2 - y_1}{x_2 - x_1} = \frac{\Delta y}{\Delta x} = \frac{\text{rise}}{\text{run}} = \tan\theta

where θ\theta is the angle between the line and the positive xx-axis.

When the line looks like ”/“, m>0m > 0; when the line looks like ”\“, m<0m < 0.

When the line is mostly horizontal m<1\lvert m\rvert < 1; when the line is mostly vertical m>1\lvert m\rvert > 1;

Parallel lines have the same slope.

Perpendicular lines

gradients of  lines multiply to 1\text{gradients of } \perp \text{ lines multiply to }-1

The exception is that vertical lines, which don’t have a defined gradient, are perpendicular to horizontal lines.

Equations of a line

Replacing a specific point (x2,y2)(x_2, y_2) with the generic point (x,y)(x, y) and rearranging results in the point-gradient form of a line:

yy1=m(xx1)y - y_1 = m(x - x_1)

Simplifying this, results in the gradient-intercept form:

y=mx+cy = mx + c

which passes through the point (0,c)(0, c). And cc is the yy-intercept.


The general form of a line is the only way to express a vertical line, as it has an undefined slope used by the other forms.

ax+by+d=0ax + by + d = 0

All forms are equally accepted unless specified otherwise. The point-gradient form is often the easiest to obtain. The gradient-intercept form is preached by many teachers as it’s easier to grade, but it is not required. The general form is mostly just good to know and recognize.

Only the gradient-intercept form is unique, for a given line.

System of two-variable linear equations

solutions type description
zero inconsistent parallel lines (same mm, different cc)
one independent intersecting lines (different mm)
infinite dependent identical lines (same mm, same cc)

Your calculator can solve systems of linear equations.

Solving linear equations

All of these are, or can be solved in a similar way as, linear equations. If you do not know how to solve any of them, be sure to find out how.

3x5=810x3x - 5 = 8 - 10x
x35=5x42\frac{x-3}{5} = \frac{5x-4}{2}
26x+1=32x5-\frac{2}{6x+1} = \frac{3}{2x - 5}
3x+15+2x=62\frac{3x+1}{5+2x} = \frac{\sqrt{6}}{2}

YouTube: Learn how to solve a proportion by cross multiplication 

Solving linear inequalities

Linear inequalities can be solved the same way as linear equations, with the exception that

Rule: If you multiply or divide by a negative number, flip the sign.

Example: 3x5    x53-3x \leq 5 \implies x \geq -\frac{5}{3}

Example: 3x<5    x<533x < -5 \implies x < -\frac{5}{3}

Note: sign is not flipped, as 33 is a positive number.

What if I must multiply or divide by an expression of xx and I don’t know if it’s positive or negative?

  1. Don’t.
  2. Try adding or subtracting instead.
  3. Solve the equality then just test values on either side.