Linear vs Nonlinear Functions

A linear function changes by a constant amount for each equal step in x, so its graph is a straight line, while a nonlinear function has a changing rate and a curved graph. In brief: f(x) = 3x + 2 is linear, because every increase of x by 1 raises f(x) by exactly 3. The function f(x) = x2 is nonlinear: from x = 1 to 2 it rises by 3, but from 2 to 3 it rises by 5.

Telling these two types apart is a basic skill. It determines which model fits data, how fast a quantity grows and which methods can be used to solve an equation. This guide gives three tests (formula, table and graph), compares typical nonlinear families and shows how to decide from real data.

What is a linear function?

A linear function has the form f(x) = mx + b, where m is the slope and b is the y-intercept. The slope is the constant rate of change: for each increase of 1 in x, the output changes by m. The graph is a straight line. Special cases are b = 0, which gives a proportional relation through the origin, and m = 0, which gives a constant function.

What is a nonlinear function?

A nonlinear function is any function that is not linear. Its rate of change is not constant, so its graph is curved or bent. Examples are f(x) = x2, f(x) = 1/x, f(x) = √x, f(x) = 2x and f(x) = |x|. The graph of |x| is made of two straight pieces, but because the slope changes from −1 to 1 at the vertex, the whole function is nonlinear.

How do you tell them apart?

Test 1: the formula

A function is linear if it can be written as mx + b with x to the first power only. Terms like x2, √x, 1/x, 2x or |x| make it nonlinear. The expression 3(x − 4) + 5 is linear after simplifying to 3x − 7.

Test 2: the table

Look at equal steps in x and compute the differences of f(x). If all the differences are equal, the function is linear. Consider this data: x = 0, 1, 2, 3 and y = 4, 7, 10, 13. The differences are 3, 3, 3, so the function is y = 3x + 4. For y = 1, 2, 4, 8 the differences are 1, 2, 4, which are not constant, but the ratios are all 2, so this is exponential growth.

1 2 3 1 2 3

Test 3: the graph

Place a ruler on the graph. If the points lie on a straight edge, the function is linear. A curve, a corner or a gap means nonlinear.

Example: decide for each

  1. y = 5 − 2x: linear, slope −2.
  2. y = x(x + 1): expands to x2 + x, nonlinear.
  3. Table (1, 2), (2, 5), (3, 8), (4, 11): differences 3, 3, 3, so linear with y = 3x − 1.
  4. Table (1, 1), (2, 4), (3, 9), (4, 16): differences 3, 5, 7, so nonlinear.

Linear and nonlinear growth compared

The table shows how quickly different functions grow for x from 0 to 5.

Values of a linear and two nonlinear functions for x from 0 to 5
x 2x + 1 (linear) x2 + 1 (quadratic) 2x (exponential)
0111
1322
2554
37108
491716
5112632

The linear column rises by 2 each time. The quadratic differences are 1, 3, 5, 7, 9. The exponential values double, so they eventually surpass every quadratic function.

Which families of nonlinear functions are common?

For quadratics, the second differences are constant: for y = x2 + 1 the first differences 1, 3, 5, 7, 9 change by 2 each time. This pattern identifies a quadratic from a table.

Where does the distinction come from?

Linear relations, such as proportion, were among the first mathematical models, used in trade and measurement in ancient civilisations. Curved relationships, such as the parabolic path of a projectile, were studied by Galileo in the early seventeenth century. Calculus, developed by Newton and Leibniz, grew from the idea of using straight lines to approximate curves locally, so the line is the building block for understanding nonlinear functions.

Where does it matter in practice?

A taxi fare of 3 + 2d dollars for d km is linear. The braking distance of a car, which grows with the square of the speed, is nonlinear: doubling the speed from 30 to 60 km/h roughly quadruples the distance. Savings with compound interest grow exponentially, while simple interest grows linearly. Choosing the wrong model leads to bad predictions, such as underestimating how quickly a quantity may grow.

Which mistakes are common?

Judging by two points

Any two points lie on a line. Use at least three, and check the differences.

Calling any increasing function linear

Increasing does not mean linear. The values of 2x rise too, but not at a constant rate.

Mistaking a hidden linear function

(x + 1)2 − x2 looks nonlinear but simplifies to 2x + 1, which is linear.

Confusing linear with proportional

y = 2x + 3 is linear, but it is not proportional, because the line does not pass through the origin.