How to Determine if a Function is Linear or Nonlinear

What Is a Linear Function, Anyway?

A linear function creates a straight line when you graph it. That's it. The name gives it away — linear means straight.

The equation always follows this pattern:

f(x) = mx + b

Where m is the slope and b is the y-intercept. Both are just numbers.

Examples of linear functions:

What Makes a Function Nonlinear?

Anything that isn't a straight line. Nonlinear functions curve, zigzag, or do their own thing. The graph won't be a straight line.

Common nonlinear functions:

How to Tell If a Function Is Linear or Nonlinear

Here's the practical part. Use these methods:

Method 1: Check the Equation

Look at the equation. If the variable x has an exponent other than 1, it's nonlinear.

Linear: x is to the power of 1 (or has no visible exponent)
Nonlinear: x², x³, √x, 1/x, or anything weird

Method 2: Calculate the Slope Between Two Points

Pick any two points on the graph. Calculate slope:

Slope = (y₂ - y₁) / (x₂ - x₁)

Now pick two different points. Calculate slope again.

If the slope stays the same, it's linear.
If the slope changes, it's nonlinear.

Method 3: Graph It

Plot a few points. Connect them.

Straight line = linear.
Curved anything = nonlinear.

Method 4: The Difference Method

Create a table of values. Calculate the differences between consecutive y-values.

If those differences are constant, you have a linear function.

Linear vs. Nonlinear: Quick Comparison

Property Linear Function Nonlinear Function
Graph shape Straight line Curved, circular, etc.
Variable exponent Always 1 2, 3, ½, negative, etc.
Slope Constant everywhere Changes depending on where you measure
Equation form f(x) = mx + b Anything else
Rate of change Constant Variable

Practical Examples

Example 1: f(x) = 4x - 7

Variable x has exponent 1. No x², no √x, nothing fancy. This is linear.

Example 2: f(x) = x² + 3

Variable x has exponent 2. That's not 1. This is nonlinear.

Example 3: f(x) = 2/x

x is in the denominator. Rewrite it as x⁻¹. Exponent is -1, not 1. Nonlinear.

Example 4: f(x) = 5

No x at all. This is a horizontal line. Slope is 0. Still linear — it just follows the pattern f(x) = 0x + 5.

Getting Started: How to Check Any Function

Follow these steps in order:

  1. Write down the equation
  2. Look for the variable x. What exponent does it have?
  3. Exponent = 1? → Likely linear. Exponent ≠ 1 → Nonlinear.
  4. Still unsure? Pick two points, calculate slope. Pick two more. Compare.
  5. Still unsure? Graph it. Straight line = linear.

Most of the time, checking the exponent takes 2 seconds and gives you the answer.

Common Mistakes to Avoid

When This Actually Matters

Linear functions show up in budgeting, unit conversions, and any situation where equal input changes give equal output changes.

Nonlinear functions show up in physics (projectile motion), biology (population growth), and anywhere things accelerate or decay.

Knowing the difference tells you what math tools you can use. Linear equations have simple solutions. Nonlinear equations require calculus or numerical methods.