Allday Education

Linear vs. Nonlinear Functions

A linear function grows by the same amount every step — its rate of change is constant, and its graph is a straight line. A nonlinear function's rate of change changes, so its graph bends. Deciding which one you have is a single check, but the check looks different depending on whether you are handed a table, an equation, or a graph.

Get comfortable with all three versions of the check, because questions rotate through them: tables that skip xx-values, equations with hidden exponents, and graphs that curve only slightly.

In a table: equal changes

If the xx-values go up by 11 each row, look at the changes in yy. All equal — linear. Not all equal — nonlinear.

In the table below, xx climbs by 11 each row and yy climbs by the same 44 every time. That constant change is what makes the function linear.

If the xx-values skip around, do not compare raw yy-changes. Divide each change in yy by the matching change in xx — the rate between two rows is y2y1x2x1\displaystyle \frac{y_2 - y_1}{x_2 - x_1} — and check whether that ratio stays constant.

xxyy
0022
1166
221010
331414

In an equation: does it fit y = mx + b?

A function is linear exactly when its equation can be rearranged into y=mx+by = mx + b. Watch for anything that breaks that form: an exponent on xx (as in y=x23y = x^2 - 3), an xx in a denominator (as in y=6xy = \dfrac{6}{x}), or an xx in an exponent (as in y=2xy = 2^x).

The written form can hide the problem. y=x(x+5)y = x(x + 5) has no visible exponent, but distributing gives y=x2+5xy = x^2 + 5x — nonlinear. Simplify or rearrange before you judge.

On a graph: straight or bent

A constant rate of change draws a straight line, so on a graph the answer is visible at a glance: a straight line at any tilt is linear, and any bend at all means nonlinear.

Below, the black line is linear — it climbs by the same amount over every step. The blue curve is nonlinear: it is nearly flat at the bottom and much steeper at the sides, so its rate of change is not constant. Be careful not to confuse increasing with linear — a graph can rise the whole time and still be a curve.

-3-2-1123-3-2-1123xy

Worked examples

Example 1: a table with unit steps

The inputs 0,1,2,30, 1, 2, 3 have outputs 2,6,10,142, 6, 10, 14. Is the function linear or nonlinear?

Find each change in yy62=4,106=4,1410=46 - 2 = 4,\quad 10 - 6 = 4,\quad 14 - 10 = 4
The changes are all equal — a constant rate of 44

Answer: Linear

Example 2: a table that skips x-values

The inputs 1,3,4,61, 3, 4, 6 have outputs 5,11,14,205, 11, 14, 20. Is the function linear or nonlinear?

Rate from x=1x = 1 to x=3x = 311531=3\displaystyle \frac{11 - 5}{3 - 1} = 3
Rate from x=3x = 3 to x=4x = 4141143=3\displaystyle \frac{14 - 11}{4 - 3} = 3
Rate from x=4x = 4 to x=6x = 6201464=3\displaystyle \frac{20 - 14}{6 - 4} = 3
The rate is constant even though the xx-steps differ

Answer: Linear

Example 3: an equation with a hidden exponent

Is y=x(x+5)y = x(x + 5) linear or nonlinear?

Distributey=x2+5xy = x^2 + 5x
The exponent 22 on xx means it cannot fit y=mx+by = mx + b

Answer: Nonlinear

Try one yourself

Function f
xxyy
0033
1166
221212
332424

Common questions

If y increases every step, is the function linear?

Not necessarily. Linear means the changes are equal, not just positive. Outputs of 2,4,8,162, 4, 8, 16 increase every step, but the changes are 2,4,82, 4, 8 — not constant — so that function is nonlinear.

Does a linear function have to pass through the origin?

No — that extra requirement describes a proportional relationship. y=3x+7y = 3x + 7 never touches the origin but is still linear, because its rate of change is a constant 33.

Is a horizontal line linear?

Yes. y=4y = 4 fits y=mx+by = mx + b with m=0m = 0 — the rate of change is constant (zero). A vertical line, on the other hand, is not a function at all.

What should I look for in an equation to spot nonlinear?

Anything that keeps it from fitting y=mx+by = mx + b: an exponent on xx, an xx inside a denominator or under a root, or an xx up in an exponent. If none of those appear after simplifying, the equation is linear.

Want the video version?

Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.

Try it for $1