y = 2x vs. y = x²
How do we tell if a function is linear or nonlinear? Let's compare two examples.
First up: y equals two x. Could this be linear?
Let's build a table. We'll pick four x-values: zero, one, two, three.
Multiply each x by two: zero, two, four, six.
Now look at the change in y each step. Plus two, plus two, plus two — a constant rate of change.
Plot the points on a graph. They line up perfectly straight.
Constant differences and a straight line — y equals two x is linear.
Now try y equals x squared, with the same x-values.
Square each x: zero, one, four, nine.
The differences are plus one, plus three, plus five — they keep growing! Not constant.
Plot the points. They curve upward instead of forming a straight line.
Rule: y equals m x plus b is linear — straight line, constant differences. Anything else, like y equals x squared, is nonlinear.