Study material generated by AI from this openly licensed book (CC BY-SA 4.0). Not affiliated with or endorsed by the publisher.
Precalculus: An Investigation of Functions, by David Lippman and Melonie Rasmussen, licensed under CC BY-SA 4.0. Read the original free This shelf’s study material is shared under the same license (CC BY-SA 4.0).
Loading…
Chapter 6 · pp. 111–168
Chapter 2: Linear Functions
This chapter shows how to turn real situations into mathematical models, starting with linear functions, which change at a constant rate. You will learn to build, read, and graph linear functions, find intercepts, and work with parallel and perpendicular lines. Later parts cover solving modeling problems, fitting lines to data, and absolute value functions.
Mathematical Modeling and the Taxi Fare
Mathematical modeling means giving a real situation a numerical structure, for example a function. Once a situation is described with numbers, we can see patterns, predict what will happen, and make decisions. Many real quantities grow in a few common ways, so we study families of functions, and linear functions come first. (p. 111)
Example: a taxi fare. A taxi charges a 3.50startingfeeandthen2.67 for each mile. Let m be the miles driven and C the cost in dollars.
With 0 miles, the cost is C(0)=3.50.
After 1 mile, C(1)=3.50+2.67=6.17.
After 2 miles, C(2)=3.50+2.67+2.67=8.84.
After 3 miles, C(3)=11.51.
Each mile adds the same amount, so after m miles the cost is
C(m)=3.50+2.67m.
The 3.50 is a fixed charge that does not depend on the input. The 2.67 is a rate of change, and it is multiplied by the input. (pp. 111–112)
Checking units. A good way to test a model is to check that the units agree. Here the rate is dollars per mile. Dollars per mile times miles gives dollars. That matches the 3.50 (dollars) and the output C (dollars). If the units did not match, the equation would be built wrongly. (p. 112)
Four Ways to Show a Linear Relationship
The same relationship can be shown in four linked ways:
Words: a 3.50startingfeeplus2.67 per mile.
Equation:C(m)=3.50+2.67m.
Table: the values of C rise by 2.67 for each 1-mile step (3.50, 6.17, 8.84, 11.51).
Graph: a straight line through (0,3.50) that rises from left to right.
Try to move easily among all four. Sometimes a problem gives you only some of them. (pp. 112–113)
Linear Functions, Slope, and Direction
A linear function is a function whose graph is a line. It can always be written as
f(x)=b+mxorf(x)=mx+b.
Here b is the initial value (the output when x=0), and m is the constant rate of change, also called the slope. The form b+mx matches how we talk: "it starts at b and changes at rate m." For example, a collection with 200 songs that gains 15 songs a month is N(m)=200+15m. (p. 113)
The sign of m tells you the direction:
If m>0, the function is increasing.
If m<0, the function is decreasing. For instance, f(x)=4−3x decreases because m=−3.
If m=0, then f(x)=b is a horizontal line. It neither increases nor decreases. (p. 113)
Finding the Rate of Change
For a line through (x1,y1) and (x2,y2), the slope is the change in output divided by the change in input:
m=ΔxΔy=x2−x1y2−y1=x2−x1f(x2)−f(x1).
For (3,−2) and (8,1):
m=8−31−(−2)=53.
On a line, any two points give the same value. (pp. 114–115)
Common misconception. Some students worry about which point to subtract first. It does not matter, as long as the output and input from the same point are in the same position in both subtractions. Swapping both subtractions flips the sign of the top and the bottom, so the fraction stays the same. The mistake is mixing the order, as in x1−x2y2−y1, which gives the wrong sign. (p. 115)
Rate of change from real data. Divide the change in the quantity by the change in time. A city grew from 23,400 to 27,800 people between 2002 and 2006. That is a gain of 4,400 people in 4 years, or 1,100 people per year. The population grew, so a positive slope makes sense. Checking that the sign matches the trend is a quick test of reasonableness. (p. 114)
Interpreting a Linear Model
Read the slope as output units per input unit. Read the intercept as the output when the input is 0. For the diver's pressure model
P(d)=14.696+0.434d,
the slope 0.434 has units PSI per foot. Pressure rises 0.434 PSI for each extra foot of depth. The initial value 14.696 is the pressure at the surface (0 feet). (p. 115)
Writing a Linear Equation
From two points that do not include the vertical intercept. Find m first. Then substitute one point into f(x)=b+mx and solve for b. Given f(3)=−2 and f(8)=1, we found m=53, so f(x)=b+53x. Using x=3:
−2=b+59⇒b=−519.
So f(x)=−519+53x. (pp. 115–116)
When the point (0,b) is known. If a graph shows (0,b) and one other point, you can read b directly and only need the slope. A line through (0,7) and (4,4) has b=7 and
m=4−04−7=−43,
so f(x)=7−43x. (p. 116)
A pay model. An insurance salesperson earned 760for3policiesand920 for 5 policies. The slope is 5−3920−760=80 dollars per policy. Then 760=b+80(3) gives b=520. So
I(n)=520+80n.
The intercept 520 is the base pay when no policies are sold. The slope 80 is the commission per policy. (p. 117)
From a table. A table is linear if equal steps in input produce equal changes in output. A rat population table rises by 80 every 2 weeks, which is 40 rats per week. With P(0)=1000, the model is P(w)=1000+40w. If you do not spot the pattern, compute the slope from any two rows. If the output changes vary, such as 5, 30, 105, 230, the function is not linear. (p. 118)
Three Ways to Graph a Linear Function
There are three basic methods:
Plot at least two points and draw a line through them.
Start at the vertical intercept and use the slope.
Use transformations of the identity function f(x)=x.
For f(x)=5−32x, you could plot points, or start at (0,5) and move right 3, down 2. You could also view it as a stretched, reflected, and shifted copy of y=x. (p. 124)
Graphing by plotting points. Choose inputs that work nicely in the formula. Multiples of the fraction's denominator avoid fractions in the arithmetic. In f(x)=5−32x, use multiples of 3:
f(0)=5
f(3)=3
f(6)=1
This gives the points (0,5), (3,3), and (6,1). Two points are enough to draw the line. A third point is a useful check. Connect the points and extend the line in both directions. (p. 124)
Slope as Rise Over Run and Graphing a Line
Slope is the vertical change divided by the horizontal change between two points on a line. The vertical change is the rise and the horizontal change is the run, so m=runrise. Any two points on the line give the same ratio. A slope of −32 means that for every 3 units you move right, the line drops 2 units (p. 125).
This gives a quick way to graph f(x)=mx+b. Plot the vertical intercept (0,b), then use the rise and run to reach the next point. Finally, extend the line in both directions. For f(x)=5−32x:
Start at (0,5).
Go right 3 and down 2 to reach (3,3).
Repeat to reach (6,1).
A negative slope can be split as −runrise instead. For example, −23 can mean up 3 and left 2. Moving left from the intercept finds points with negative x (pp. 125–126).
Graphing with Transformations
You can also see f(x)=mx+b as a transformation of the identity function f(x)=x. The number m stretches or compresses the graph vertically. If m is negative, the graph is also reflected over the horizontal axis. The number b shifts the graph up or down, and this shift does not change the slope (pp. 126–127).
Example: f(x)=−21x−3 is y=x compressed vertically by a factor of 21, reflected over the x-axis, and shifted down 3. The intercept is (0,−3). Rising 1 and running 2 gives (2,−2), and the same step again gives (4,−1). Each step changes x by 2 and the output by 1, which matches the slope 21 in size (the reflection flips its sign) (pp. 126–127).
Matching Equations to Graphs
To match equations to graphs, compare features in this order: vertical intercepts, then slope signs, then steepness. Take f(x)=2x+3, g(x)=2x−3, h(x)=−2x+3 and j(x)=21x+3.
Only g has intercept −3, so it matches that graph.
Of the three lines with intercept 3, only h slopes down.
The steeper of the last two has the larger slope, 2, so it is f. The flatter one is j (pp. 127–128).
Horizontal Intercepts and Special Lines
The horizontal intercept is where the graph crosses the horizontal axis, and the output is 0 there. So you find it by solving f(x)=0. For f(x)=3−21x, solve 3−21x=0 to get x=6. The graph crosses at (6,0) (p. 128).
Horizontal lines. The output never changes, so the rise is 0 and the slope is 0. The equation is f(x)=b. The line has a vertical intercept but no horizontal intercept, unless it is the line f(x)=0. For example, f(x)=2 never touches the x-axis (p. 129).
Vertical lines. The input never changes, so the run is 0. The slope would need division by zero, so it is undefined. The equation is x=a. Such a line fails the function test, because one input gives many outputs. It has a horizontal intercept but no vertical intercept, unless it is x=0. For example, x=2 crosses the x-axis at (2,0) (p. 129).
Parallel and Perpendicular Lines
Two lines are parallel when their rates of change are equal, m1=m2. Two vertical lines are also parallel. Such lines never cross unless they are the same line. Any line parallel to f(x)=6+3x has slope 3 (p. 130).
Two lines are perpendicular when they meet at a right angle. In that case their slopes multiply to −1:
m1m2=−1,m2=−m11
This is the negative reciprocal. A slope of 2 pairs with −21, a slope of −4 pairs with 41, and a slope of 32 pairs with −23 (pp. 130–131).
Common mistake: only changing the sign, or only flipping the fraction. You must do both. The perpendicular slope to 3 is −31, not −3 and not 31. Check by multiplying: the product must be −1 (pp. 130–131).
Finding Parallel and Perpendicular Lines Through a Point
First choose the correct slope, then use the given point to solve for b. Take the reference line f(x)=6+3x and the point (3,0).
Parallel: use m=3. Then 0=b+3(3) gives b=−9, so g(x)=−9+3x.
Perpendicular: use m=−31. Then 0=b−1 gives b=1, so g(x)=1−31x (pp. 130–132).
If the reference line is given by two points, find its slope first. For (−2,6) and (4,5):
m=4−(−2)5−6=−61
The perpendicular slope is 6. Through (4,5) we get 5=b+6(4), so b=−19 and g(x)=−19+6x (pp. 131–132).
Intersections and Comparing Functions
Two lines that are not parallel cross at exactly one point. To find it, set the formulas equal and solve for the input. Then evaluate either function at that input to get the output. For h(t)=3t−4 and j(t)=5−t:
3t−4=5−t⇒t=49,j(49)=5−49=411
The lines meet at (49,411). Parallel lines meet only if they are the same line, and then they meet at every point (pp. 132–133).
The intersection is also where one function switches from larger to smaller. This helps with inequalities. The line h has the larger slope, so it is above j to the right of the crossing. Therefore h(t)>j(t) when t>49 (p. 133).
A Strategy for Modeling Problems
Most linear modeling problems can be handled with the same eight steps (pp. 139, 146):
Name the changing quantities with units, and sketch a picture if it helps.
Pull out the given values, such as the slope and the starting value.
Decide what the question asks for.
Plan a path from the givens to the answer, tracking units.
Find a formula if you need one.
Solve or evaluate.
Ask whether the answer is reasonable.
Answer in a full sentence with units.
Example: Emily's Money
Emily has 3500andspends400 each week. Let t be time in weeks and M be money left in dollars. The starting value is 3500. The rate is dollars per week, and it is negative because the money is going down. So M(t)=3500−400t (pp. 139–140).
The horizontal intercept is where the money hits zero:
3500−400t=0⇒t=4003500=8.75
So Emily runs out of money after 8.75 weeks (pp. 139–140).
Domain and Range of a Model
Real-world trends rarely continue forever, so a model is valid only on a limited domain. Negative time makes no sense. Past 8.75 weeks Emily would be in debt. The reasonable domain is 0≤t≤8.75, and the range is 0≤M≤3500 (p. 140).
The range depends on the domain you choose. If only whole weeks are allowed and she stops after 8 weeks, then M(8)=3500−400(8)=300. The domain is 0≤t≤8 and the range becomes 300≤M≤3500 (p. 140).
Comparing Two Linear Options
Sometimes two choices each have a linear cost. To decide which is better, write one function for each, find where they are equal, and then check which is smaller on each side of that point.
Example: Jamal can rent a truck from U-Haul (20upfrontplus59centsamile)orfromBudget(16 up front plus 63 cents a mile). Let m be the miles driven.
First make the units match. The outputs are in dollars, so write the rates as 0.59and0.63 per mile, not in cents.
U-Haul: Y(m)=20+0.59m. Budget: B(m)=16+0.63m.
Break-even: set Y(m)=B(m). Then 20+0.59m=16+0.63m, so 4=0.04m and m=100 miles.
At 100 miles the two costs are the same. U-Haul's cost grows more slowly (0.59 is less than 0.63), so after 100 miles it falls below Budget. U-Haul is the better choice for trips longer than 100 miles. (p. 141)
Choosing a Smart Input Variable
When the input is a calendar year, the vertical intercept would sit at year 0, which makes the equation awkward. A better choice is the time since a reference year. Then the first data point has input 0, so the vertical intercept is the starting value. (p. 142)
Example: A town had 6,200 people in 2004 and 8,100 in 2009. Let t be years since 2004.
The points are (0,6200) and (5,8100).
The slope is m=5−08100−6200=51900=380 people per year.
The intercept is already known, so P(t)=6200+380t. (p. 142)
Predicting and Finding When a Target Is Reached
A linear model answers two kinds of questions.
Predict an output. Evaluate the function at the given input. For 2013, t=9, so P(9)=6200+380(9)=9620 people.
Find when a target happens. Set the function equal to the target and solve for the input. For 15,000 people: 6200+380t=15000, so 380t=8800 and t≈23.16. That is about 23 years after 2004, or around 2027. (p. 142)
Always turn the answer back into the original context (a year, not just t).
Using Intermediate Variables and Pictures
Hard problems are easier when you draw a picture and add helper variables that you do not need in the final answer. (pp. 143–144)
Example: Anna walks east at 4 mph and Emanuel walks south at 3 mph, both starting from the same corner. Their radio range is 2 miles. When do they lose contact?
Let t be hours. Let A(t)=4t be Anna's distance east and E(t)=3t be Emanuel's distance south. Both are 0 at t=0.
Let D(t) be the distance between them. Their paths are at right angles, so the Pythagorean theorem gives D2=A2+E2.
Then D(t)=(4t)2+(3t)2=25t2=5t. Since t and D are positive, the square root simplifies cleanly.
Set 5t=2, so t=0.4 hours, or 24 minutes.
Notice that the distance D(t)=5t is also a linear function. (pp. 143–144)
A Geometry Problem Using Lines
Geometry questions can often be solved by placing a coordinate system and using line equations. (p. 145)
Example: A straight road runs from Westborough to a town 30 miles east and 10 miles north. A second road, perpendicular to the first, goes to Eastborough, which is 20 miles directly east of Westborough. How far from Westborough is the junction?
Put the origin at Westborough. The far town is at (30,10) and Eastborough is at (20,0).
The first road has slope 30−010−0=31, so W(x)=31x.
The perpendicular road has slope −3, the negative reciprocal. It passes through (20,0), so 0=−3(20)+b gives b=60 and E(x)=−3x+60.
Find the intersection: 31x=−3x+60 gives 310x=60, so x=18. Then y=W(18)=6. The junction is at (18,6).
Use the distance formula: 182+62≈18.97 miles.
The steps are: set coordinates, write the line equations, use the perpendicular slope, find the intersection, and measure the distance. (p. 145)
Fitting a Line to Data by Eye
Real data rarely lie exactly on a line. If a scatter plot looks roughly linear, you can draw a line that seems to fit and write its equation. Doing so lets you describe the trend and make predictions. (p. 151)
Example: Cricket chirps in 15 seconds (c) rise with temperature. The trend is increasing, so the slope should be positive. A hand-drawn line passes through (0,30) and (50,90). Its slope is 5060=1.2 and its intercept is 30, so T(c)=30+1.2c. This is only an approximation because the data points do not sit exactly on the line. (pp. 151–152)
Interpolation, Extrapolation, and Model Breakdown
Interpolation means predicting inside the domain and range of the data.
Extrapolation means predicting outside them.
The chirp counts range from 18.5 to 44. Predicting the temperature at 30 chirps is interpolation: T(30)=30+1.2(30)=66°F, which is reasonable. Predicting for fewer than 18.5 or more than 44 chirps is extrapolation. (pp. 152–153)
Extrapolation is riskier. At 40°F, the model gives 40=30+1.2c, so c≈8.33 chirps. But crickets usually stop chirping below about 50°F, so the line does not apply there. When a model stops describing reality past some point, this is called model breakdown. (p. 153)
Least-Squares Regression
A better fit than eyeballing comes from least-squares regression. It finds the line that makes the sum of the squared vertical gaps between the line and the data points as small as possible. Graphing calculators, spreadsheets, and statistics software can compute it. (pp. 153–154)
For the cricket data it gives T(c)=30.281+1.143c. This is close to the hand-drawn line but fits better. At 30 chirps it predicts 30.281+1.143(30)≈64.6°F, compared with 66°F from the eyeballed line. (p. 154)
The Correlation Coefficient
The correlation coefficient r is a number from −1 to 1 that shows how closely data follow a line.
The sign gives the direction: r>0 means increasing, r<0 means decreasing.
The distance from 0 gives the strength: values near 1 or −1 mean little scatter, and values near 0 mean a lot of scatter.
The cricket data has r=0.9509, a strong increasing linear relationship. (pp. 154–155)
Common mistake:r only makes sense for data with a linear pattern. If the scatter plot clearly curves, r tells you nothing useful. Look at the plot first, then compute r. (p. 154)
Modeling Data with Technology
Steps: (1) define a simpler input, such as years since the first year, (2) run the regression, (3) check r, (4) use the equation to predict. (pp. 155–156)
Example: US gasoline use from 1994 to 2004. Let t be years since 1994.
The correlation is r=0.9965, a very strong increasing linear trend.
The regression line is C(t)=113.318+2.209t, in billions of gallons.
For 2008, t=14: C(14)=113.318+2.209(14)=144.244 billion gallons.
For 2011, t=17 gives about 150.871 billion gallons. The data end at t=10 (2004), so this is extrapolation. (pp. 155–156)
The absolute value function
The absolute value function is the last linear-based function in this chapter. It is piecewise: it is built from two linear pieces.
f(x)=∣x∣={x−xif x≥0if x<0
The second piece turns a negative input into a positive output. For example, ∣3∣=3 and ∣−3∣=−(−3)=3. Outputs are never negative. The graph is a V shape with its corner at the origin, and its two arms have slopes 1 and −1. (p. 159)
Absolute value as distance
The distance between two numbers a and b on the number line is ∣a−b∣. It does not matter which number is larger, because the result is always positive. This lets us write "closeness" statements with absolute value. (pp. 159–160)
All x within 4 of the number 5: ∣x−5∣≤4.
A poll reports 78% with a margin of error of 3%. The true percentage p satisfies ∣p−78∣≤3.
A student passes by scoring within 20 points of 80: ∣p−80∣≤20.
Read the number being subtracted as the center. Read the right-hand side as the allowed distance from that center.
Writing transformed absolute value functions
The corner point is the most useful feature of the graph. For f(x)=a∣x−h∣+k, the corner is at (h,k). The shifts come directly from it. (p. 160)
Example. Suppose the corner is at (3,−2) and the arms have slopes 2 and −2. The graph is shifted right 3 and down 2, and it is stretched by a factor of 2:
f(x)=2∣x−3∣−2
If you cannot read the stretch from the slopes, write f(x)=a∣x−3∣−2 and substitute a known point. With the point (1,2):
2=a∣1−3∣−2⇒4=2a⇒a=2
If the graph is flipped over the x-axis, a is negative. (p. 160)
A stretch can be written two ways. 2∣x−3∣−2 (a vertical stretch) and ∣2(x−3)∣−2 (a horizontal compression) are the same function, because ∣2u∣=2∣u∣. (p. 160)
Intercepts
The vertical intercept comes from input 0, so there is exactly one. The number of horizontal intercepts depends on how the V is shifted and reflected. There can be none, one, or two. For example, a V that opens upward with its corner above the x-axis has none. (p. 161)
The function is not one-to-one, since two different inputs can give the same output. So inverses of absolute value functions are usually not discussed. (p. 161)
Solving absolute value equations
First isolate the absolute value. Then, for ∣A∣=B with B>0, the quantity inside must be B or −B. Solve both equations: A=B and A=−B. (pp. 161–162)
Example. Find the horizontal intercepts of f(x)=∣4x+1∣−7. Set f(x)=0 and isolate: ∣4x+1∣=7.
4x+1=7 gives x=23.
4x+1=−7 gives x=−2.
So the graph has two horizontal intercepts, at x=23 and x=−2. (pp. 161–162)
No solution. An absolute value can never equal a negative number. Suppose isolating gives ∣x−4∣=−3. Then the solution set is empty. Always isolate first, then look at the sign on the other side. (p. 162)
Solving absolute value inequalities
Start by solving the related equation. The absolute value function has no breaks, so its outputs can switch from below a value to above it only by passing through that value. The equality points split the number line into intervals. Then decide which intervals work, either from a graph or by testing one value in each interval. (pp. 162–163)
Example. Solve ∣x−5∣≤4. The equation ∣x−5∣=4 gives x=1 and x=9. Test one value in each interval:
Interval
Test x
∥x−5∥
Compare with 4
x<1
0
5
greater
1<x<9
6
1
less
x>9
11
6
greater
Only the middle interval works, so the solution is 1≤x≤9, or [1,9]. (p. 163)
Negative coefficient. Find where f(x)=−21∣4x−5∣+3 is negative. We need −21∣4x−5∣+3<0. Subtracting 3 gives −21∣4x−5∣<−3. Multiplying both sides by −2reverses the inequality, so ∣4x−5∣>6. Solving ∣4x−5∣=6 gives x=411 and x=−41. The graph is reflected downward, so it is negative outside these intercepts: x<−41 or x>411. In interval notation this is (−∞,−41)∪(411,∞). (p. 164)
"Greater than" gives two outer pieces. For ∣k−4∣≥3, solving ∣k−4∣=3 gives k=1 and k=7. Testing values shows the outputs are at least 3 outside the gap between them. The solution is k≤1 or k≥7, written (−∞,1]∪[7,∞). A "less than" inequality gives one inner interval instead. (p. 165)
Check yourself
Write "all t within 2.5 of 10" using absolute value, then solve it and give the answer in interval notation.
Find the horizontal and vertical intercepts of f(x)=−∣x+2∣+3.
Why does ∣2x−1∣+4=1 have no solution?
A taxi charges a 3.50 starting fee plus 2.67 per mile, so C(m)=3.50+2.67m. Explain what the slope and the vertical intercept mean, and how checking units confirms the model.
A line has slope 32. What is the slope of a line perpendicular to it? Why is "the opposite sign" not enough?