Linear and Nonlinear Functions: Identifying Each With Examples

#8th Grade Math#Functions#Linear and Nonlinear Functions
TL;DR
Linear and nonlinear functions differ in one way: linear ones change by the same amount for each equal input step, and nonlinear ones do not. Tables, graphs and equations each reveal it.
Bhanzu TeamLast updated on December 2, 202616 min read

Key Points

  • A linear function has a constant rate of change, so its graph is a straight line and its equation fits the form y=mx+by = mx + b.
  • In a table with equal steps in xx, a linear function shows the same difference between every pair of neighboring yy-values.
  • When the xx-values jump by different amounts, dividing each change in yy by its change in xx still shows whether the rate stays constant.
  • Linear and nonlinear functions can describe the same square, since its perimeter grows by 4 per unit of side while its area grows by 3, then 5, then 7.

The ramp that wouldn't keep a steady pace

In 1638, Galileo published a pattern that no straight line could follow. He had studied balls rolling down a gently sloping ramp, and the distance did not grow by the same amount each moment. It grew with the square of the time, as the MacTutor history of Galileo records from his book on motion.

In matching units, a ball that covers 1 length in the first unit of time has covered 4 lengths after 2 units and 9 after 3. Something moving at a steady pace covers 3, 6, 9 and 12, adding 3 every time. The ball adds 3, then 5, then 7.

Physicists tracking a falling object and doctors following a medicine as it fades from the blood both start with that same question. Does the change hold steady, or does it speed up?

Linear and nonlinear functions compared as steady steps of 3 against growing steps of 3, 5 and 7.
Two rows of bars for times 1 to 4, where steady motion covers 3, 6, 9 and 12 units with a step of 3 each time and Galileo's rolling ball covers 1, 4, 9 and 16 units with steps of 3, 5 and 7.

What are linear and nonlinear functions?

Linear and nonlinear functions are sorted by their rate of change. A linear function's output moves by the same amount for each equal step in the input, and a nonlinear function's output does not.

A function is a rule that gives exactly one output for each input. The rate of change is how far the output moves when the input moves by 1.

A linear function is a function with a constant rate of change, so its graph is a straight line and its equation can be written as y=mx+by = mx + b. Here mm is the rate of change (the slope) and bb is the output when x=0x = 0, a layout called the slope-intercept form of a line. Any function that does not fit it is nonlinear, and its graph curves or bends.

Clue Linear function Nonlinear function
Table with equal xx-steps Same difference every row Differences change
Graph One straight, non-vertical line A curve or a bend
Equation Fits y=mx+by = mx + b Has x2x^2, or xx in a denominator

Common Core standard 8.F.A.3 asks 8th graders to read y=mx+by = mx + b as a linear function and to name functions that are not, starting with the area of a square. Your child met straight-line graphs in 7th grade through proportional relationships, so the new step this year is sorting rules that bend from rules that stay straight, one of several types of functions to come.

How do you tell if a function is linear from a table?

Look for a constant difference in the outputs, but only after you confirm the inputs step evenly. The difference table does both jobs in four moves.

  1. Write the step between each pair of neighboring xx-values.
  2. Subtract each yy-value from the one below it.
  3. If every xx-step matches and every yy-difference matches, the function is linear.
  4. If the xx-steps differ, divide each yy-difference by its xx-step. Equal answers still mean linear.

For y=3x−2y = 3x - 2 with x=0,1,2,3x = 0, 1, 2, 3, the outputs are −2-2, 1, 4 and 7. Each output is 3 more than the last, and 3 is the slope. For A=s2A = s^2 with s=1,2,3,4s = 1, 2, 3, 4, the areas 1, 4, 9 and 16 grow by 3, then 5, then 7.

Difference tables for a linear function with steps of 3 and a nonlinear function with steps 3, 5, 7.
Two difference tables side by side, the first for y = 3x minus 2 with outputs negative 2, 1, 4 and 7 rising by 3 each time, the second for A = s squared with areas 1, 4, 9 and 16 rising by 3, 5 and 7.

Plenty of kids subtract straight down the yy column and never glance left at xx. Writing the xx-step beside every yy-difference stops that habit early (and the steady 2 hiding inside 3, 5, 7 gets its own name in Algebra 1).

How do you spot one from a graph or an equation?

A graph shows a linear function when every point sits on one straight line that is not vertical. An equation shows one when it can be rearranged into y=mx+by = mx + b, with xx to the first power and nothing else done to it.

Plot at least three points before deciding on a graph. Two points always fit some line, so they can't tell a line from a curve.

Graph of the line y = 2x + 1 and the curve y = x squared on one grid.
Coordinate grid with x from 0 to 4 and y from 0 to 16 showing the straight line y = 2x + 1 through (0, 1), (1, 3), (2, 5), (3, 7) and (4, 9) beside the curve y = x squared through (0, 0), (1, 1), (2, 4), (3, 9) and (4, 16).

In an equation, any of these signs makes the function nonlinear.

  • A squared or cubed xx, as in y=x2+1y = x^2 + 1
  • An xx in a denominator, as in y=6xy = \frac{6}{x}
  • An xx in an exponent, as in y=2xy = 2^x
  • An xx multiplied by another xx, as in y=x(x+3)y = x(x + 3), which expands to x2+3xx^2 + 3x

Some linear equations arrive in disguise. The rule y=x5y = \frac{x}{5} is linear, because dividing by 5 means multiplying by 15\frac{1}{5}. The rule y=4−2xy = 4 - 2x is linear too, with m=−2m = -2, even though its outputs shrink. High school algebra gives y=2xy = 2^x (an exponential function) a full unit.

Why does a constant rate make a straight line?

A constant rate makes every slope triangle the same size, and copies of one triangle can only stack along a straight path. That is why the table check and the graph check always agree.

On y=2x+1y = 2x + 1, moving from (0,1)(0, 1) to (1,3)(1, 3) goes over 1 and up 2. The next move is also over 1 and up 2, so each small triangle copies the last and the slanted sides line up with no turn. The same idea sits behind slope and similar triangles, where any two triangles on one line give the same slope.

On y=x2y = x^2, the triangles go over 1 and up 1, then over 1 and up 3, then over 1 and up 5. Each triangle is steeper than the one before, so the path keeps turning upward. That turning curve is called a parabola.

Try It Yourself

Move the mm and bb sliders to build a line y=mx+by = mx + b, then switch to the curve y=kx2y = kx^2 and move kk. Watch the difference column in the live table, which holds one value for every line and changes from row to row once the graph bends.

Examples of linear and nonlinear functions

Example 1

A table pairs x=1,2,3,4x = 1, 2, 3, 4 with y=5,8,11,14y = 5, 8, 11, 14. Is the function linear, and what is its rule?

The xx-steps are all 1. The yy-differences are 8−5=38 - 5 = 3, 11−8=311 - 8 = 3 and 14−11=314 - 11 = 3.

The difference is constant, so the function is linear with m=3m = 3.

5=3(1)+b5 = 3(1) + b

Subtract 3 from both sides to get b=2b = 2.

The rule is y=3x+2y = 3x + 2. Check with x=4x = 4, since 3(4)+2=143(4) + 2 = 14.

Example 2

A table pairs x=0,1,3,4x = 0, 1, 3, 4 with y=2,5,11,14y = 2, 5, 11, 14. Is the function linear?

The tempting move is to subtract down the yy column and get 3, 6 and 3. Those differences don't match, so the table looks nonlinear.

That reading fails because the xx-values jump by 1, then 2, then 1. A bigger input step is bound to produce a bigger output step.

Divide each yy-difference by its xx-step instead.

31=3,62=3,31=3\frac{3}{1} = 3, \quad \frac{6}{2} = 3, \quad \frac{3}{1} = 3

The rate is 3 every time, so the function is linear. The output at x=0x = 0 is 2, so the rule is y=3x+2y = 3x + 2, and 3(3)+2=113(3) + 2 = 11 matches the table.

Example 3

Which of these are linear: y=7−4xy = 7 - 4x, y=3x2y = 3x^2 and y=2(x+3)y = 2(x + 3)?

y=7−4xy = 7 - 4x is linear, with m=−4m = -4 and b=7b = 7.

y=3x2y = 3x^2 is nonlinear, because xx is squared.

y=2(x+3)y = 2(x + 3) expands to y=2x+6y = 2x + 6, so it is linear.

Two of the three rules are linear.

Example 4

Do the points (0,1)(0, 1), (2,5)(2, 5), (4,9)(4, 9) and (6,14)(6, 14) lie on one line?

Find the slope between each neighboring pair.

5−12−0=2,9−54−2=2,14−96−4=2.5\frac{5 - 1}{2 - 0} = 2, \quad \frac{9 - 5}{4 - 2} = 2, \quad \frac{14 - 9}{6 - 4} = 2.5

The last slope is 2.5, not 2. A line through the first three points would reach (6,13)(6, 13), not (6,14)(6, 14).

The points do not lie on one line, so the function is nonlinear.

Example 5

A square has side length s=1,2,3,4s = 1, 2, 3, 4 inches. Is its perimeter linear? Is its area linear?

The perimeter P=4sP = 4s gives 4, 8, 12 and 16 inches, a difference of 4 every time, so the perimeter is linear.

The area A=s2A = s^2 gives 1, 4, 9 and 16 square inches, with differences 3, 5 and 7, so the area is nonlinear.

Doubling the side from 3 to 6 inches doubles the perimeter (12 to 24 inches) but makes the area four times as big (9 to 36 square inches).

Example 6

Plan A starts with $20 and adds $15 each week. Plan B starts with $1 and doubles each week. Which plan is linear, and in which week does Plan B first have more money?

Let ww stand for the number of weeks and AA and BB for each plan's savings in dollars.

Words in the problem Math it means
starts with $20 b=20b = 20
adds $15 each week rate m=15m = 15
doubles each week B=2wB = 2^w
first has more money smallest ww where B>AB > A

Plan A is A=15w+20A = 15w + 20, which is linear. Plan B grows by 1, 2, 4, 8, so its differences change and it is nonlinear.

In week 6, Plan A has $110 and Plan B has $64. In week 7, Plan A has $125 and Plan B has $128.

Plan B first has more money in week 7.

Steady change makes prediction easy

A steady rate means one multiplication and one addition give any output you want. Mistake a curve for a line, and every prediction past your data drifts further off.

  • Paychecks follow a line. The federal minimum wage has been $7.25 per hour since July 24, 2009, according to the US Department of Labor, so 10 hours pays $10 \times $7.25 = $72.50$.
  • Pizza does not. A 16-inch pizza has area 64π64\pi square inches and an 8-inch pizza has 16π16\pi, so double the width gives four times the pizza.
  • Rolling balls speed up. On Galileo's ramp, each equal stretch of time covered more ground than the one before.
  • Models need the right shape. Before drawing a line of best fit through data, a difference check shows whether a line suits it at all.

The world curves more often than a ruler does.

Where does a linear check go wrong?

Mistake 1: Deciding from only two points

Where it slips in: Short tables and graphs that show only two pairs, like the first two points in Example 4.

Don't do this: Seeing (1,2)(1, 2) and (2,4)(2, 4), writing y=2xy = 2x and calling the function linear.

The correct way: Check a third point. The rule y=2xy = 2x predicts 6 at x=3x = 3, but the table shows (3,8)(3, 8), so the function is nonlinear.

Two rows are enough to calculate a slope, and students who have just learned the slope formula tend to stop the moment they have one.

Wrong and right way to judge linear and nonlinear functions, with a third point at (3, 8) off the line.
Two panels, the wrong one drawing a line through (1, 2) and (2, 4) that predicts (3, 6), the correct one adding the real third point (3, 8) above that line, so the function is not linear.

Mistake 2: Calling a flat line nonlinear

Where it slips in: Equations with no xx at all, such as y=5y = 5, and tables where every output is the same.

Don't do this: Saying y=5y = 5 is not linear because there is no xx to see.

The correct way: Write it as y=0x+5y = 0x + 5. The differences are all 0, and the graph is a horizontal straight line, so y=5y = 5 is linear.

The word "change" in rate of change makes a change of zero feel like no rate at all.

Mistake 3: Missing an xx in the denominator

Where it slips in: Equations like y=6xy = \frac{6}{x}, where xx carries no exponent.

Don't do this: Reading 6x\frac{6}{x} as if it were 6x6x and calling it linear.

The correct way: Make a table. For x=1,2,3,4x = 1, 2, 3, 4 the outputs are 6, 3, 2 and 1.5, with differences −3-3, −1-1 and −0.5-0.5, so y=6xy = \frac{6}{x} is nonlinear.

A child scanning for a small raised 2 sees none and stops looking.

What most guides miss about linear and nonlinear functions

Not every straight line is a linear function, and the word "linear" itself shifts meaning in later math.

The vertical line x=3x = 3 is perfectly straight, yet it is not a function at all, because the single input 3 is paired with every output. A linear function needs a straight line that is not vertical.

The second gap is vocabulary. Every proportional rule such as y=4xy = 4x is linear, but y=4x+2y = 4x + 2 is linear without being proportional. College linear algebra uses a stricter meaning that keeps only lines through (0,0)(0, 0), so a parent who took that course may remember the word differently. In 8th grade, any y=mx+by = mx + b counts.

Key Takeaways

  • Check the input steps before the output steps, since uneven xx-values can make a linear table look nonlinear.
  • Linear and nonlinear functions can hide behind their equations, so rewrite y=2(x+3)y = 2(x + 3) as y=2x+6y = 2x + 6 before you decide which kind it is.
  • A horizontal line such as y=5y = 5 counts as linear, while a vertical line such as x=3x = 3 is not a function at all.
  • Two points always fit some line, so a graph or table needs a third point before it can show a bend.
  • For more practice reading difference tables with a teacher who catches the two-point shortcut, explore Bhanzu's 8th grade math tutor sessions or algebra classes.

A Practical Next Step

Build a four-row table for each rule, then label it linear or nonlinear.

  1. y=5x−3y = 5x - 3 for x=0,1,2,3x = 0, 1, 2, 3
  2. y=x2+2y = x^2 + 2 for x=0,1,2,3x = 0, 1, 2, 3
  3. The table with x=0,2,4,6x = 0, 2, 4, 6 and y=1,7,13,19y = 1, 7, 13, 19
  4. y=12xy = \frac{12}{x} for x=1,2,3,4x = 1, 2, 3, 4

Answers: (1) −3,2,7,12-3, 2, 7, 12, linear, (2) 2, 3, 6, 11, nonlinear, (3) linear with a rate of 3 each time, so y=3x+1y = 3x + 1, (4) 12, 6, 4, 3, nonlinear.

Practice these to solidify your understanding. If y=12xy = \frac{12}{x} catches you, return to Mistake 3. Want a live Bhanzu trainer to walk through more linear and nonlinear functions problems? Book a free demo class, online globally, or in person at our McKinney, TX center.

Read More

Research Behind This Article

  1. J J O'Connor and E F Robertson, Galileo Galilei, MacTutor History of Mathematics (2002). mathshistory.st-andrews.ac.uk
  2. OpenStax, Algebra and Trigonometry 2e, 3.1 Functions and Function Notation (2021). openstax.org
  3. OpenStax, Algebra and Trigonometry 2e, 4.1 Linear Functions (2021). openstax.org
  4. Common Core State Standards Initiative, Grade 8, Functions, 8.F.A.3 (2010). thecorestandards.org
  5. OpenStax, Algebra and Trigonometry 2e, 5.1 Quadratic Functions (2021). openstax.org
  6. US Department of Labor, Wage and Hour Division, Minimum Wage (2009 rate). dol.gov

Quick Quiz: Check Yourself

Three levels, new numbers every time: find a table's constant difference, find the rate when xx-steps are uneven, then find the week a doubling plan passes a steady one.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

Is a linear equation linear or nonlinear?
Linear, as long as it can be rearranged into y=mx+by = mx + b with mm and bb as fixed numbers. Both names come from the same idea, a straight-line graph. One exception is that x=3x = 3 is a linear equation whose vertical graph is not a function.
Is y=x2y = x^2 a linear function?
No, because on a linear vs nonlinear graph it is the curve, with outputs 0, 1, 4 and 9 growing by 1, 3 and 5.
Is y=x2y = x^2 a function at all?
Yes. Each input gives exactly one output, even though 3 and −3-3 share the output 9.
What are some linear vs nonlinear function examples in real life?
A taxi fare with a fixed starting charge plus a set price per mile is linear. Money that doubles every year is nonlinear.
Is there a linear and nonlinear functions worksheet my child can use?
This page teaches the skill, and the Quick Quiz: Check Yourself section gives practice identifying linear and nonlinear functions, with fresh numbers at three levels.
How can I help my child tell linear and nonlinear functions apart at home?
Pick a rule such as movie tickets at $12 each and ask your child to build a table and say whether the differences stay the same. If the trouble is turning words into a table rather than the subtraction, practice that step together, because it is a reading skill more than a math one. If your child is still unsure after a few weeks, talk with the math teacher first. A tutor makes sense only if a foundation skill such as slope or subtracting negative numbers sits about two grade levels behind.
✍️ Written By
Bhanzu Team
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →