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:
- f(x) = 3x + 5
- f(x) = -2x + 1
- f(x) = 0.5x
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:
- f(x) = x² (parabola)
- f(x) = 1/x (hyperbola)
- f(x) = √x (curved growth)
- f(x) = sin(x), cos(x), etc.
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:
- Write down the equation
- Look for the variable x. What exponent does it have?
- Exponent = 1? → Likely linear. Exponent ≠ 1 → Nonlinear.
- Still unsure? Pick two points, calculate slope. Pick two more. Compare.
- 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
- Don't assume "simple" equations are linear. x² looks simple but isn't linear.
- Don't trust the graph scale. A tiny curve might look straight if the scale is wrong.
- Don't confuse linear with horizontal. Horizontal lines (f(x) = constant) are linear — they just have a slope of zero.
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.