Linear vs. Nonlinear Functions
You should be comfortable with:
Discounts, tax, tips, profit margins
Medication dosages, IV drip rates, vital monitoring
Not all functions behave the same way. Some grow at a constant, steady pace β the same amount of change for every step. Others speed up, slow down, or curve in unpredictable ways. The first group is called linear functions, and the second is nonlinear functions. Learning to tell them apart is one of the most important skills in algebra because the tools you use to analyze them are completely different.
What Makes a Function Linear?
A function is linear if it has a constant rate of change. That means for every equal increase in the input, the output changes by the same amount β always. This constant rate of change is the slope.
Algebraically, a linear function can always be written in the form:
where is the slope (rate of change) and is the -intercept.
Three identifying features of linear functions:
- Equation: The highest power of is 1 (no , , , etc.)
- Graph: A straight line
- Table: Constant first differences (explained below)
What Makes a Function Nonlinear?
A function is nonlinear if its rate of change is not constant. Common types include:
- Quadratic: β rate of change increases as increases
- Exponential: β rate of change grows multiplicatively
- Square root: β rate of change decreases as increases
- Absolute value: β has a sharp corner; rate of change switches abruptly
Nonlinear graphs are curves (or lines with corners), not straight lines.
Identifying from Equations
Look at the highest power of and the operations applied to it.
Example 1: Is linear or nonlinear?
The highest power of is 1. No squares, cubes, roots, or absolute values.
Answer: Linear (slope , -intercept ).
Example 2: Is linear or nonlinear?
The term means the highest power of is 2.
Answer: Nonlinear β this is a quadratic function.
Example 3: Is linear or nonlinear?
Rewrite as . The exponent is not 1.
Answer: Nonlinear β this is a rational function.
Example 4: Is linear or nonlinear?
This can be written as . The highest power of present is technically 0 (a constant), but this is still considered linear β it is a horizontal line with slope 0.
Answer: Linear (a special case called a constant function).
Identifying from Tables: The First Differences Method
The first differences are the changes in the output (-values) between consecutive rows when the -values increase by equal steps.
If all first differences are equal, the function is linear.
Example 5: Linear table
| First difference | ||
|---|---|---|
| β | ||
Every first difference is 3. The rate of change is constant.
Answer: Linear, with slope . The equation is .
Example 6: Nonlinear table
| First difference | ||
|---|---|---|
| β | ||
The first differences are 1, 3, 5, 7 β they are not constant. The rate of change increases.
Answer: Nonlinear. (In fact, this is .)
Second Differences
For nonlinear tables, you can compute second differences β the differences of the first differences:
From Example 6: first differences are 1, 3, 5, 7. The second differences are:
Constant second differences of 2 confirm this is a quadratic function with .
Rule of thumb:
- Constant first differences β linear
- Constant second differences β quadratic
- Neither constant β some other type of nonlinear function
Identifying from Graphs
Example 7: Straight line through and
A straight line means constant slope. Compute:
Answer: Linear.
Example 8: A curve that gets steeper as increases
If the graph is a curve β it bends β the function is nonlinear. A parabola, exponential curve, or any shape that is not a straight line means the rate of change is not constant.
Answer: Nonlinear.
Quick visual test: Place a straightedge (ruler) along the graph. If the entire graph lies along the straightedge, it is linear. If any part curves away, it is nonlinear.
Rate of Change Comparison
Let us compare a linear and a nonlinear function side by side to see the difference clearly.
Linear: (constant rate of change = 2)
| Change | ||
|---|---|---|
| β | ||
Nonlinear: (increasing rate of change)
| Change | ||
|---|---|---|
| β | ||
For the linear function, each step adds 2. For the quadratic, the steps grow: 1, 3, 5. This accelerating growth is the hallmark of nonlinearity.
Real-World Application: Retail β Linear Cost vs. Nonlinear Revenue
A retail business has a cost function and a revenue function. Understanding whether each is linear or nonlinear is critical for making business decisions.
Cost function (linear): The business pays $500 per month in rent plus $8 per unit to produce each item:
This is linear β every additional unit adds exactly $8 to the cost. The first differences are constant at 8.
Revenue with volume discount (nonlinear): Suppose the selling price drops as volume increases (bulk discount). Revenue might follow:
This is nonlinear β the term means revenue does not increase at a constant rate. At low volumes, revenue grows quickly; at high volumes, the discount effect slows growth and eventually causes revenue to decrease.
An owner checking a table of revenues would see first differences that shrink as increases β a clear sign of nonlinearity. This tells them they should not blindly extrapolate using a straight-line assumption.
Real-World Application: Nursing β Medication Decay
A nurse administers a medication, and the amount remaining in the patientβs bloodstream decreases over time. A simple linear model might say:
This predicts a loss of 25 mg each hour β constant rate of change, a straight line. But real medication decay is typically exponential (nonlinear):
| Hours () | Linear model | Exponential model | Linear change | Exponential change |
|---|---|---|---|---|
| 0 | 200 | 200.0 | β | β |
| 1 | 175 | 170.0 | ||
| 2 | 150 | 144.5 | ||
| 3 | 125 | 122.8 | ||
| 4 | 100 | 104.4 |
The linear model has constant first differences ( each time). The exponential model has first differences that change () β the decay slows down as there is less medication left.
In practice, the exponential model is more accurate. Recognizing that real-world medication levels follow a nonlinear pattern helps nurses understand why dosing schedules are timed the way they are.
Common Mistakes to Avoid
- Assuming βnonlinearβ means βno pattern.β Nonlinear functions absolutely follow patterns β they just are not straight-line patterns. Quadratic, exponential, and other nonlinear functions are highly predictable.
- Computing first differences with unequal -steps. The first differences method only works when the -values increase by equal amounts. If the steps are 1, 1, 2, 1, you cannot compare the differences directly.
- Concluding linearity from two points. Any two points can be connected by a straight line, so two data points are never enough to distinguish linear from nonlinear. You need at least three points.
- Forgetting that (a constant) is linear. A horizontal line has slope 0, but it is still a linear function β just a special one.
- Thinking the first differences must be positive. First differences can be negative (decreasing function) or zero (constant). What matters for linearity is that they are all the same value, not that they are positive.
Practice Problems
Test your understanding with these problems. Click to reveal each answer.
Problem 1: Is linear or nonlinear?
The highest power of is 1. This is in the form with and .
Answer: Linear.
Problem 2: Is linear or nonlinear?
The term has degree 3, which is greater than 1.
Answer: Nonlinear (cubic function).
Problem 3: Use first differences to determine if this table is linear: (1, 6), (2, 10), (3, 14), (4, 18), (5, 22).
First differences: , , , . All equal to 4.
Answer: Linear, with slope . The equation is .
Problem 4: Use first differences to determine if this table is linear: (0, 3), (1, 6), (2, 12), (3, 24), (4, 48).
First differences: , , , . These are not constant (3, 6, 12, 24). The outputs are doubling β this is exponential.
Answer: Nonlinear (exponential: ).
Problem 5: A table has first differences of and second differences of . What type of function is it?
Constant first differences mean the function is linear. (The second differences being 0 is consistent β there is no curvature.)
Answer: Linear.
Problem 6: A nurse records drug amounts remaining: (0 hrs, 400 mg), (1 hr, 360 mg), (2 hrs, 324 mg), (3 hrs, 291.6 mg). Is the decay linear or nonlinear?
First differences: , , . The first differences () are not constant.
Check the ratios: , , . Constant ratio of 0.9 confirms exponential decay.
Answer: Nonlinear (exponential decay with a common ratio of 0.9).
Problem 7: A retail store tracks daily sales revenue over 5 days: $200, $200, $200, $200, $200. Is revenue as a function of day number linear?
First differences: . All first differences are equal (all zero).
Answer: Yes, this is linear β it is a constant function: .
Key Takeaways
- A linear function has a constant rate of change, graphs as a straight line, and can be written as
- A nonlinear function has a variable rate of change, graphs as a curve, and includes quadratics, exponentials, radicals, and more
- First differences test: compute the changes in for equal steps in β if all differences are equal, the function is linear
- Second differences that are constant indicate a quadratic function
- You need at least three data points to distinguish linear from nonlinear
- In real-world settings, recognizing linearity (or the lack of it) determines which algebraic tools and predictions are appropriate
Return to Algebra for more topics in this section.
Next Up in Algebra
Last updated: March 29, 2026