A train running at a steady speed covers the same distance every minute. Plot its position once a minute against time and the points fall on a straight line. Linear functions are the functions that change at one constant rate, so equal input steps always bring equal output changes. Their slope, the change per unit step, is the model for every rate of change in calculus.
Key terms
Linear function
Definition A linear function is a function of the form
where and are real constants. Its domain is unless a smaller domain is specified. On the domain its graph is a nonvertical straight line, and every nonvertical line is the graph of exactly one such function. When the function is constant. Some books call an affine function and keep the word linear for the case , but in precalculus linear means any function of this form.
In plain words A linear function multiplies the input by a fixed number and then adds a fixed number. Its graph is a straight line that is not vertical.
Example The function is linear with and .
Each step of in adds to the output. By contrast, takes the values at , with unequal steps, so it is not linear.
Slope
Definition The slope of the linear function is the number . For any two inputs ,
so the slope can be computed from any two distinct points of the line. A positive slope means the line rises from left to right, a negative slope means it falls, and slope means it is horizontal.
In plain words Slope is rise over run. It tells you how much the output changes when the input goes up by .
Example The line through and has slope
The line falls 2 units for every unit step to the right.
Constant rate of change
Definition A function defined on an interval has constant rate of change on if
for every pair of distinct inputs and in . This happens exactly when on for some constant . Indeed, fixing one input and setting , the condition says , that is , for every in . In particular, equal steps in the input always produce equal steps in the output.
In plain words Linear functions are exactly the functions that change at the same rate everywhere. Nothing speeds up and nothing slows down.
Example A cyclist rides at a steady pace, and the distance past a marker is recorded every 2 seconds.
| Time in seconds | Distance in meters |
|---|---|
Every step of 2 seconds adds 8 meters, so the rate is meters per second and .
Slope-intercept form
Definition The slope-intercept form of a nonvertical line is
where is the slope and is the point where the line crosses the -axis. Every nonvertical line has exactly one equation of this form.
In plain words You can read the slope and the starting height straight off the equation.
Example The line through and has slope
Putting the point into gives , so and the line is . As a check, the input gives .
Point-slope form
Definition The line with slope through the point has the equation
A point with satisfies this equation exactly when , which says that the slope from to is . The point itself satisfies it too.
In plain words When you know one point and the slope, you can write the line down at once, with no need to find the intercept first.
Example The line with slope through is . Expanding gives , and the input indeed gives .
Intercepts
Definition The -intercept of the graph of is the point , which exists when is in the domain. An -intercept is a point with , and the number is called a zero of . On the domain , a linear function has -intercept . If it has exactly one -intercept,
If and it has none, and if and its graph is the whole -axis. Many books also call the numbers and themselves the intercepts.
In plain words The intercepts are where the line crosses the axes. Set to find the -intercept and set to find the -intercept.
Example For the -intercept is . Solving gives , so the -intercept is .
Proportionality
Definition A quantity is directly proportional to a quantity if there is a constant with
for all values considered. The number is the constant of proportionality, and for it equals the ratio . The graph lies on the line through the origin with slope . A linear function with does not make proportional to . Its line passes through instead of the origin, and for the ratio changes with .
In plain words Proportional means that doubling one quantity doubles the other. Every proportional relation is linear, but a linear function with a starting amount is not proportional.
Example Fabric sold at 6 dollars per meter costs dollars for meters, so 2 meters cost 12 dollars and 4 meters cost 24. A taxi fare of dollars for kilometers is linear but not proportional, since while , not .
Units
Definition If the input of a linear function is measured in units and the output in units , its slope is measured in per , because the slope is a change in output divided by a change in input. The constant has the units of the output, and so does each term of .
In plain words Read a slope together with its units, such as dollars per hour or meters per second. The units tell you what the number means.
Example A tank holding 500 liters drains so that after minutes it holds liters. The slope is in liters per minute, so the tank loses 20 liters each minute. The constant is in liters and is the starting volume. Solving gives minutes, the moment the tank is empty, so the model makes sense for .
Horizontal and vertical lines
Definition The horizontal line through has the equation . It is the graph of the constant function and has slope . The vertical line through has the equation and consists of all points with real. It is not the graph of any function , because it pairs the single input with infinitely many outputs, while a function gives each input exactly one output. In other words, it fails the vertical line test. Its slope is undefined, since any two of its points have .
In plain words A horizontal line is a function that never changes. A vertical line is not a function of at all, because it pairs one input with every output.
Example The points and give slope and the line , which is the graph of . The points and lie on the vertical line . The slope formula would divide by , and the input is paired with both and , so no function has this line as its graph.
Check yourself
- Find the line through and in slope-intercept form, and find its -intercept.
Show the answer
The slope is
From we get , so the line is . Setting gives , so the -intercept is .
- A candle 30 centimeters tall burns down 2.5 centimeters per hour. Write its height as a function of time, give the units of the slope, and find when it burns out. Is the height proportional to the time?
Show the answer
The height after hours is centimeters. The slope is in centimeters per hour. Solving gives , so the candle burns out after 12 hours. The height is not proportional to the time, because the constant term is not zero.
- Do the points , , and lie on one line? If so, find the linear function.
Show the answer
Yes. The slopes between consecutive points are
all equal, so the points lie on one line. Point-slope form with gives , so the function is .