A linear equation or equation of a line has the following form:

**y = mx + b**

m: slope of the line; m = Δx/Δy

b: y-intercept, which is where the line cross the y-axis; b = y_{i} - mx_{i}

Example: Determine the equation of a line using the following (x,y) data.

(-2,-2), (-1,1), (0,4), (1,7), (2,10), (3,13)

First calculate the slope m, which is the change in y divided by the change in x:

y = Δy/Δx

y = [13 - (-2)]/[3 - (-2)]

y = 15/5

y = 3

Next calculate the y-intercept:

b = y_{i} - mx_{i}

b = (-2) - 3*(-2)

b = -2 + 6

b = 4

The equation of the line is

y = mx + b

v = 3x + 4