Algebra 1 · Grades 8, 9

Linear vs Nonlinear Functions: How to Tell Them Apart

Quick answer

A function is linear when its rate of change is constant, which makes its graph a straight line. Test an equation by checking every variable is to the first power with none in a denominator, test a table by checking equal input steps give equal output steps, and test a graph by whether it is straight.

What you'll learn

  • Decide whether a relationship is linear from an equation, table or graph
  • Explain why constant rate of change and straightness are the same property
  • Recognise common nonlinear shapes

The definition that matters

A function is linear when its rate of change is constant: moving the input by a fixed step always changes the output by the same amount.

Everything else follows from that one property, including the straight graph.

Why constant rate and a straight line are the same thing

“Straight” and “constant rate of change” sound like two separate facts. They are one fact seen from two angles.

Steepness is rate of change. A graph whose steepness never varies is drawn without ever turning — and a path that never turns is a straight line. A graph that bends is one whose steepness changed, which is a rate of change that varied.

So the two tests can never disagree. If a table shows a constant rate, the graph will be straight. If a graph curves, some interval will show a different rate.

Four tests

Use whichever matches the information you have.

GivenTest
an equationevery variable to the first power, none in a denominator, none under a root, no two variables multiplied
a tableequal steps in xx produce equal steps in yy
a graphit is a straight line
a rate of changeit is the same on every interval

The equation test in detail

LinearNonlinearWhy not
y=3x1y = 3x - 1y=x2y = x^2squared
y=25xy = \tfrac{2}{5}xy=2xy = \tfrac{2}{x}variable in a denominator
4x+3y=124x + 3y = 12xy=12xy = 12two variables multiplied
y=xy = -xy=xy = \sqrt{x}variable under a root
y=7y = 7y=2xy = 2^xvariable in the exponent

A fraction is fine as a coefficient. 25x\tfrac{2}{5}x is linear; 2x\tfrac{2}{x} is not. The question is always where the variable sits.

Worked examples

Common mistakes

Practice problems

  1. Is y=7x+2y = 7x + 2 linear?

    Hint

    Check the power of xx and where it sits.

    Answer

    Yes.

    Full solution

    xx appears to the first power, in the numerator, and is not multiplied by another variable. The graph is a line of slope 77.

  2. Is y=x3y = x^3 linear?

    Answer

    No.

    Full solution

    The cube means the rate of change varies with xx, so the graph curves.

  3. Is y=x35y = \tfrac{x}{3} - 5 linear?

    Answer

    Yes.

    Full solution

    The variable is in the numerator; dividing by 33 is a coefficient of 13\tfrac{1}{3}. The function is linear with slope 13\tfrac{1}{3}.

  4. Is this table linear?

    xx00112233
    yy2255881111
    Answer

    Yes.

    Full solution

    The xx-steps are all 11 and the yy-steps are all 33, so the rate is a constant 33. The function is y=3x+2y = 3x + 2.

  5. Is this table linear?

    xx11223344
    yy336612122424
    Hint

    Look at whether the outputs are being added to or multiplied.

    Answer

    No.

    Full solution

    The yy-steps are 33, 66 and 1212, which grow rather than repeat. Each output is double the previous one, so this is exponential rather than linear.

  6. Is 5x2y=85x - 2y = 8 linear?

    Answer

    Yes.

    Full solution

    Both variables are to the first power and neither is in a denominator. Rearranged it is y=52x4y = \tfrac{5}{2}x - 4.

  7. Is this table linear?

    xx003388
    yy5517173737
    Hint

    The xx-steps are uneven, so compute rates rather than comparing yy-steps.

    Answer

    Yes.

    Full solution

    First interval: 17530=4\tfrac{17 - 5}{3 - 0} = 4.

    Second interval: 371783=205=4\tfrac{37 - 17}{8 - 3} = \tfrac{20}{5} = 4.

    Both rates are 44, so the relationship is linear: y=4x+5y = 4x + 5. The yy-steps of 1212 and 2020 looked unequal only because the xx-steps were.

  8. A bacteria culture doubles every hour, starting at 100100 cells. A second culture gains 100100 cells every hour, also starting at 100100. Write a description of each and say which is linear.

    Hint

    Build a small table for each and compare the steps.

    Answer

    The second is linear; the doubling one is not.

    Full solution

    Doubling: 100,200,400,800100, 200, 400, 800. The steps are 100100, 200200, 400400 — growing, so the rate is not constant. Nonlinear.

    Adding: 100,200,300,400100, 200, 300, 400. Every step is 100100, so the rate is a constant 100100 cells per hour, giving y=100x+100y = 100x + 100. Linear.

    Both start at 100100 and both reach 200200 after one hour, so a single early reading cannot tell them apart. You need at least three points to see whether the steps stay equal.

Frequently asked questions

Is a horizontal line a linear function?

Yes. Its rate of change is zero, and zero is a perfectly good constant. The graph is straight, which is the test.

Is a vertical line a linear function?

Its graph is straight, but it is not a function at all, because a single input has infinitely many outputs. So it fails on a different requirement.

Does a fraction in the equation make it nonlinear?

Only if a variable is in the denominator. A fraction as a coefficient, like one half x, is fine and keeps the function linear. It is 1 over x that breaks it.

Standards alignment

This lesson covers the following Common Core State Standards for Mathematics.

  • CCSS.MATH.CONTENT.8.F.A.3FunctionsInterpret the equation y = mx + b as defining a linear function, whose graph is a straight line; give examples of functions that are not linear.
  • CCSS.MATH.CONTENT.HSF.IF.B.6Interpreting FunctionsCalculate and interpret the average rate of change of a function (presented symbolically or as a table) over a specified interval. Estimate the rate of change from a graph.