Linear and Nonlinear Functions- Definitions and Examples
What Are Linear Functions?
A linear function is any function that graphs as a straight line. That's it. The relationship between the variables stays constant — for every unit you move right on the x-axis, the y-value changes by the same amount. No curves, no loops, no surprises.
The standard form looks like this:
f(x) = mx + b
Where m is the slope (how steep the line is) and b is the y-intercept (where the line crosses the y-axis).
Examples of Linear Functions
- f(x) = 2x + 5
- y = -3x + 7
- f(x) = 0.5x - 2
- y = x (which is really y = 1x + 0)
Notice how each equation has just one x-term with no exponents, no x multiplied by another x, no square roots of x. That's your giveaway.
What Are Nonlinear Functions?
A nonlinear function is anything that isn't a straight line when you graph it. The relationship between variables changes as x changes. The rate of change itself is changing.
These include functions with:
- Exponents other than 1 (like x², x³)
- Variables in denominators
- Square roots or cube roots
- Variables multiplied together
- Trigonometric functions (sin, cos, tan)
- Exponential or logarithmic relationships
Examples of Nonlinear Functions
- f(x) = x² + 3x - 7
- y = √x
- f(x) = 1/x
- y = 2ˣ
- f(x) = sin(x)
These all curve, bend, or behave in ways that a straight line cannot represent.
Key Differences Between Linear and Nonlinear Functions
Here's what separates them in practice:
Rate of Change
Linear functions have a constant rate of change. Slope stays the same everywhere on the graph. Nonlinear functions have a variable rate of change — the slope changes depending on where you are on the curve.
Graph Shape
Linear = straight line. Nonlinear = curve, parabola, wave, or other non-straight shape.
Degree of the Equation
Linear equations have a degree of 1. Nonlinear equations have a degree of 2 or higher (or involve operations that break the linear pattern).
Domain and Range
Linear functions typically span all real numbers unless restricted. Nonlinear functions often have restricted domains — like y = 1/x, which is undefined at x = 0.
How to Identify Linear vs Nonlinear Functions
Quick mental checklist:
- Does every x have an exponent of 1? If yes, likely linear. If any x², x³, √x, or 1/x shows up, it's nonlinear.
- Can you write it as f(x) = mx + b? If yes, linear. If not, nonlinear.
- Does the graph look like a straight line? Straight = linear. Curved = nonlinear.
- Check the difference between y-values. For linear functions, the difference between consecutive y-values stays constant when x increases by equal amounts. If the differences change, it's nonlinear.
Common Mistakes to Avoid
- Don't assume "simple" means linear. f(x) = x² looks simple but isn't linear.
- Watch out for disguised nonlinear functions. y = 3x + 1 is linear. y = 3(x + 1) is also linear. But y = 3/(x + 1) is not.
- Constants are fine in linear functions. The b in mx + b doesn't break linearity.
Real-World Examples
Linear Examples
- Taxi fare: $3 base + $2 per mile. Total = 2(miles) + 3. Straight line relationship.
- Hourly wage: You earn $15/hour. Pay = 15 × hours worked. Linear.
- Cell phone plan: $40/month flat fee. Linear (constant).
Nonlinear Examples
- Compound interest: Grows exponentially, not linearly.
- Ball trajectory: A thrown ball follows a parabolic path (quadratic, nonlinear).
- Population growth: Often exponential, especially in early stages.
- Sound waves: Modeled with sine functions, clearly nonlinear on a graph.
Quick Reference: Linear vs Nonlinear
| Property | Linear Functions | Nonlinear Functions |
|---|---|---|
| Graph shape | Straight line | Curve, parabola, wave |
| Equation form | f(x) = mx + b | x², √x, 1/x, sin(x), etc. |
| Rate of change | Constant (same slope everywhere) | Variable (slope changes) |
| Degree | 1 | 2 or higher |
| Examples | y = 2x + 3 | y = x², y = 2ˣ |
| Common real-world cases | Simple pricing, steady speed | Interest, gravity, waves |
Getting Started: How to Work With These Functions
Step 1: Identify the Type
Look at your equation. If any variable has an exponent other than 1, or if variables are multiplied together, you're dealing with a nonlinear function. Otherwise, it's linear.
Step 2: Graph It
Linear: Find two points by plugging in x-values, draw a line through them.
Nonlinear: Plot several points, especially near interesting spots (vertex of a parabola, where a denominator hits zero, etc.). Connect them smoothly.
Step 3: Find Key Features
For linear functions, extract the slope and y-intercept. These tell you everything you need.
For nonlinear functions, identify: vertex/minimum/maximum points, asymptotes, x-intercepts, and domain restrictions.
Step 4: Apply the Right Math
Linear problems often use simple substitution or solve for one variable. Nonlinear problems may require factoring quadratics, using the quadratic formula, or working with function-specific properties.
Don't try to apply linear methods to nonlinear problems. They'll break.
The Bottom Line
Linear functions are straight-line relationships with constant rates of change. Everything else is nonlinear. The distinction matters because the math you use for one type will fail on the other. Learn to spot the difference from the equation alone, and you'll save yourself hours of wasted effort trying to force nonlinear problems into linear frameworks.