Math helps us understand data from the world around us. Then we can use what we discover to make good decisions. Hereβs an example with economic data from the US, plotted in a Cartesian plane.
For the years from 2000 to 2025, consider what percent of American wealth was held by the wealthiest 1% of Americans. The table in FigureΒ 1 gives the numbers (source: federalreserve.gov), but any pattern there might not be apparent when looking at the data organized this way. Plotting the data in a Cartesian coordinates system can make an overall pattern or trend become visible.
What observations do you see now that you couldnβt easily see from the numbers in the table? Do you see evidence of the COVID pandemic? Evidence of the Great Recession of 2008?
Overall, do you see a larger pattern with wealth distribution? Assuming that you see the rising pattern, is it easier to see that with the graph than with the table?
Find a pattern in each table, using only the table itself. What is the missing entry in each table? Can you describe each pattern in words and/or mathematics?
Generally in a table with two columns of data, we can think of the table as assigning value on the right to each value on the left. The first table assigns βwhiteβ to βblackβ, as its opposite. The second table assigns βParisβ to βFranceβ, as its capital city. The third table assigns\(10\) to \(5\text{,}\) as its double.
The third table in ExampleΒ 2 is numerical. And its βfunctionβ is to take a number as input, and give twice that number as output. Mathematically, we can describe the pattern as β\(f(x)=2x\)β, pronounced βf of x equals β¦β, where \(x\) represents the input and \(f\) is the name of the process that turns input \(x\) into something else. So that β\(f(x)\)β (again, prounounced βf of xβ) represents whatever \(f\) turned \(x\) into. Labeling the table with these symbols, we have TableΒ 5.
With the data plotted, and the question being what should happen when \(x\) is \(5\text{,}\) our eyes can converge to the point \((5,10)\) and we conclude the missing value will be \(10\text{.}\) Graphically, we can see the missing output value should be \(10\) without directly using the formula.
For each of the following tables, find an equation that describes the pattern you see. Use βfunction notationβ (\(f(x)\)) where appropriate. Numerical pattern recognition may or may not come naturally for you and you may want to use a graph to help visually process the numbers. Either way, pattern recognition is an important mathematical skill that anyone can develop. The solutions for these exercises offer some hints about what patterns you might look for.
One approach to pattern recognition is to look for a relationship in each row. Here, the output value in each row is always \(10\) more than the \(x\)-value. So the pattern is described by the equation \({f\mathopen{}\left(x\right) = x+10}\text{.}\)
The relationship between \(x\) and the output in each row is not as clear here. Another popular approach for finding patterns: in each column, consider how the values change from one row to the next. From row to row, the \(x\)-value increases by \(1\text{.}\) Also, the output value increases by \(3\) from row to row.
Since row-to-row change is always \(1\) for \(x\) and is always \(3\) for output, the rate of change from one row to another row is always the same: \(3\) units of output for every \(1\) unit of \(x\text{.}\) This suggests that \(f(x)=3x\)might be a good equation for the table pattern. But if we try to make a table with that pattern:
We find that the values from \(f(x)=3x\) are too large by \(1\text{.}\) So now we make an adjustment. The equation \({f\mathopen{}\left(x\right) = 3x-1}\) describes the pattern in the table.
Looking for a relationship in each row here, we see that each output value is the square of the corresponding \(x\)-value. That may not be obvious to you. It comes down to recognizing what square numbers are. So the equation is \({f\mathopen{}\left(x\right) = x^{2}}\text{.}\)
Here, the rate of change is not constant from one row to the next. While the \(x\)-values are increasing by \(1\) from row to row, the output values increase more and more from row to row. Do you notice that there is a pattern there as well? Mathematicians are interested in finding patterns and describing them.
For an hourly wage-earner, the amount of money they earn depends on how many hours they work. If a worker earns \(\$15\) per hour, then \(10\) hours of work corresponds to \(\$150\) of pay. Working one additional hour will change \(10\) hours to \(11\) hours; and this will cause the \(\$150\) in pay to rise by fifteen dollars to \(\$165\) in pay. Any time we compare how one amount changes (dollars earned) as a consequence of another amount changing (hours worked), we are talking about a rate of change.
Note the drop in 2020 is possibly explained by under-diagnosing, when people were in COVID quarantine at home and it was difficult to see a doctor for things like a cancer screening.
meaning that there were \(444\) more cancer incidents in 2010 than in 2007. Since \(3\) years passed (which you can calculate as \(2010-2007\)), the rate of change is \(444\) diagnoses per \(3\) years, or
We read that last quantity as β\(148\) diagnoses per yearβ. This rate of change means that between the years \(2007\) and \(2010\text{,}\) there were \(148\) more diagnoses each year, on average. This is just an average over those three yearsβit does not mean that the diagnoses grew by exactly this much each year.
In ExampleΒ 10 and CheckpointΒ 11 we found three rates of change. FigureΒ 13 highlights the three pairs of points that were used to make these calculations.
Note how the larger the numerical rate of change between two points, the steeper the line is that connects them. Also in the third calculation, when the \(y\)-values moved down as you read the graph from left to right, the rate of change was negative. This is such an important observation, weβll put it in an official remark.
If one rate of change between two data points equals another rate of change between two different data points, then the corresponding line segments will have the same steepness.
We always measure rate of change from left to right. When a line segment between two data points slants up from left to right, the rate of change between those points will be positive. When a line segment between two data points slants down from left to right, the rate of change between those points will be negative.
In the solution to CheckpointΒ 8, the key observation was that the rate of change from one row to the next was constant: \(3\) units of increase in \(y\) for every \(1\) unit of increase in \(x\text{.}\) Graphing this pattern in FigureΒ 15, we see that every line segment here has the same steepness, so the whole picture is a straight line.
Whenever the rate of change is constant no matter which two \((x,y)\)-pairs (or data pairs) are chosen from a data set, then you can conclude the graph will be a straight line even without making the graph. We call this kind of relationship a linear relationship. Weβll study linear relationships in more detail throughout this chapter. Right now in this section, we feel it is important to simply identify if data has a linear relationship or not.
From one \(x\)-value to the next, the change is always \(3\text{.}\) From one \(y\)-value to the next, the change is always \(-1\text{.}\) So the rate of change is always \(\frac{-1}{3}=-\frac{1}{3}\text{.}\) Since the rate of change is constant, the data have a linear relationship.
The rate of change between the first two points is \(\frac{210-208}{13-11}=1\text{.}\) The rate of change between the last two points is \(\frac{220-214}{17-15}=3\text{.}\) This is one way to demonstrate that the rate of change differs for different pairs of points, so this pattern is not linear.
The changes in \(x\) from one row to the next are \(+3\text{,}\)\(+2\text{,}\) and \(+8\text{.}\) Thatβs not a consistent pattern, but we need to consider rates of change between points. The rate of change between the first two points is \(\frac{-8-(-2)}{6-3}=-2\text{.}\) The rate of change between the next two points is \(\frac{-12-(-8)}{8-6}=-2\text{.}\) And the rate of change between the last two points is \(\frac{-20-(-12)}{12-8}=-2\text{.}\) So the rate of change, \(-2\text{,}\) is constant regardless of which pairs we choose. That means these pairs describe a linear relationship.
Letβs return to the data that we opened the section with, in FigureΒ 1. Is that data linear? Well, yes and no. To be completely honest, itβs not linear. Itβs easy to pick out pairs of points where the steepness changes from one pair to the next. In other words, the points do not line up into a single straight line.
However if we step back, there does seem to be an overall upward trend that is captured by the line overlaying the data in FigureΒ 19. Points on the overlaid line do have a linear pattern. Letβs estimate the rate of change between some pair of points on this line. We are free to use any pair of points to do this, so letβs make this calculation easier by choosing points we can clearly identify on the graph: \((2010,28.5)\) and \((2021,31)\text{.}\)
Given a graph with points plotted, when the rate of change from one point to the next one never changes, those points must all be on a straight line as in FigureΒ 20. Instead of saying βsteady, constant rate of changeβ, there is a special word for this.
When \(x\) and \(y\) are two variables where the rate of change between any two points is the same no matter which two points are used, we call this common rate of change the slope. Since having a constant rate of change means the graph will be a straight line, itβs also called the slope of the line.
Considering the definition for rate of change, this means that when \(x\) and \(y\) are two variables where the rate of change between two points is always the same, then you can calculate slope, \(m\text{,}\) by finding two distinct data points \((x_1,y_1)\) and \((x_2,y_2)\text{,}\) and calculating
\begin{equation}
m=\frac{\text{change in $y$}}{\text{change in $x$}}=\frac{\Delta y}{\Delta x}=\frac{y_2-y_1}{x_2-x_1}\text{.}\tag{1.3.1}
\end{equation}
A slope is a rate of change. So if there are units for the horizontal and vertical variables, then there will be units for the slope. The slope will be measured in \(\frac{\text{vertical units}}{\text{horizontal units}}\text{.}\) If the slope is nonzero, we say that there is a linear relationship between \(x\) and \(y\text{.}\) When the slope is \(0\text{,}\) we say that \(y\) is constant with respect to \(x\text{.}\)
Here are some scenarios with different slopes. As you read each scenario, note how a slope is more meaningful with units.
If a tree grows \(2.5\) feet every year, its rate of change in height is the same from year to year. So the height and time have a linear relationship where the slope is 2.5 ftβyr.
If a company loses \(2\) million dollars every year, its rate of change in reserve funds is the same from year to year. So the companyβs reserve funds and time have a linear relationship where the slope is \(-2\) million dollars per year.
If Sakura is an adult who has stopped growing, her rate of change in height is the same from year to yearβitβs zero. So the slope is 0 inβyr. Sakuraβs height is constant with respect to time. Since the slope is zero, we donβt say that Sakuraβs height and time have a linear relationship.
A useful phrase for remembering the definition of slope is βrise over runβ. Here, βriseβ refers to βchange in \(y\)β, and βrunβ refers to βchange in \(x\)β. Be careful. As mentioned earlier, in mathematics the horizontal direction comes first. The phrase βrise over runβ might make it sound like the vertical direction comes first, but that is misleading. (Itβs a bit awkward to say, but the phrase βrun under riseβ puts the horizontal change first.)
On Dec.Β 31, Yara had only \(\$50\) in her savings account. For the the new year, she resolved to deposit \(\$20\) into her savings account each week, without withdrawing any money from the account. Yara keeps her resolution, and her account balance increases steadily by \(\$20\) each week. Thatβs a constant rate of change, so her account balance has a linear relationship with time, and the slope is \(20\, \frac{\text{dollars}}{\text{wk}}\text{.}\)
After \(x\) weeks have passed, we can model the account balance \(f(x)\) (pronounced βf of xβ) with a formula. Since Yara started with \(\$50\) and adds \(\$20\) each week, then \(x\) weeks later the balance is
where \(f(x)\) is a dollar amount. Notice that the slope, \(20\,\frac{\text{dollars}}{\text{wk}}\text{,}\) is used as the multiplier for \(x\text{,}\) the number of weeks that have passed.
In first rows of the table, we see that when \(x\) increases by \(1\) (week), then \(f(x)\) increases by \(20\) (dollars). The row-to-row rate of change is \(\frac{20\,\text{dollars}}{1\,\text{wk}} = 20\,\frac{\text{dollars}}{\text{wk}}\text{,}\) which we already know is the slope. In any table showing a linear relationship, whenever \(x\) increases by \(1\) unit, \(f(x)\) will increase by the slope.
In later rows, notice that the change in \(x\) is larger than \(1\text{,}\) but the change in \(f(x)\) is also larger than \(20\text{.}\) The changes in \(f(x)\) have grown proportionally with the changes in \(x\) and this keeps the rate of change steady. Looking in particular at the last two rows of the table, we see \(x\) increases by \(5\) and \(f(x)\) increases by \(100\text{,}\) which gives a rate of change \(\frac{100\,\text{dollars}}{5\,\text{wk}} = 20\,\frac{\text{dollars}}{\text{wk}}\text{,}\) which is once again the value of the slope.
On a graph of Yaraβs savings, we can βseeβ the rates of change between consecutive rows of the table by using slope triangles. These are right triangles showing how to move horizontally, then vertically, to get from one point to another.
The large slope triangle indicates that when \(5\) weeks pass, Yara saves \(\$100\text{.}\) This is the rate of change between the last two rows of the table, \(\frac{100}{5} = 20 \, \frac{\text{dollars}}{\text{wk}}\text{.}\) The smaller slope triangles indicate, from left to right, the rates of change \(\frac{20\,\text{dollars}}{1\,\text{wk}}\text{,}\)\(\frac{20\,\text{dollars}}{1\,\text{wk}}\text{,}\)\(\frac{40\,\text{dollars}}{2\,\text{wk}}\text{,}\) and \(\frac{60\,\text{dollars}}{3\,\text{wk}}\) respectively. All of these rates simplify to the slope, \(20 \, \frac{\text{dollars}}{\text{wk}}\text{.}\)
Every slope triangle on the graph of Yaraβs savings uses the same angles even though some triangles are larger than others. Since the ratio of vertical change to horizontal change is always \(20\, \frac{\text{dollars}}{\text{wk}}\text{.}\) On any graph of any sloped line, we can draw a slope triangle and compute slope as βrise over runβ.
Of course, we could draw a slope triangle on the top side of a line. This slope triangle works just as well for identifying βriseβ and βrunβ, but it emphasizes vertical change before horizontal change. For consistency with mathematical conventions, we will usually draw slope triangles that show the horizontal change first, followed by the vertical change, as in FigureΒ 25.
The following graph of a line models the amount of gas, in gallons, in Kiranβs gas tank as they drive their car. Find the lineβs slope, and interpret its meaning in this context.
To find a lineβs slope using its graph, we first identify two points on it and then draw a slope triangle. Naturally, we would want to choose two points whose \(x\)- and \(y\)-coordinates are easy to identify exactly based on the graph. We choose the two points where \(x=3\) and \(x=6\text{,}\) because they are right on grid line crossings:
Notice that the change in \(y\) is negative, because the amount of gas is decreasing. Since we chose points with integer coordinates, we can easily calculate the slope:
In the given context, this slope implies gas in the tank is decreasing at the rate of \(\frac{2}{3}\)galβh. Since this slope is written as a fraction, another way to understand it is that Kiran is using \(2\) gallons of gas every \(3\) hours.
To find the slope of a line from its graph, we first need to identify two points that the line passes through. It is wise to choose points with integer coordinates. For this problem, we choose \({\left(0, 2\right)}\) and \({\left(8, 5\right)}\text{.}\)
Make a table and plot the function \(f\text{,}\) where \(f(x)=\frac{3}{4}x+2\text{,}\) which makes a straight line. Use the plot to determine the slope of this line.
Effie, Ivan and Cleo are in a foot race. FigureΒ 34 models the distance each has traveled in the first few seconds. Each runner takes a second to accelerate up to their running speed, but then runs at a constant speed. So they are then traveling with a constant rate of change, and the straight line portions of their graphs have a slope. Find each lineβs slope, and interpret its meaning in this context. What comparisons can you make with these runners?
In a distance-over-time graph, the slope of a line represents speed. The slopes in these examples and the running speeds of these runners are measured in mβs. A relationship we can see is that the more steeply a line is slanted, the larger the slope is. This should make sense because for each passing second, the faster runner travels farther, making a slope triangleβs height taller. This means that we can tell that Cleo is the fastest runner (and Effie is the slowest) just by comparing the slopes \(4>3.5>2.666\text{.}\)
Kato is training for a race up the slope of Mt.Β Hood, from Sandy to Government Camp, and then back. The graph models his elevation from his starting point as time passes. Find the slopes of the three line segments and interpret their meanings in this context.
The first segment started at \((0,0)\) and stopped at \((7,3500)\text{.}\) This implies Kato started at the starting point, traveled \(7\) hours and reached a point \(3500\) feet higher in elevation from the starting point. The slope of the line is
What happened in the second segment, which started at \((7,3500)\) and ended at \((19,3500)\text{?}\) This implies he started this portion \(3500\) feet high, and didnβt change elevation for \(19\) hours. Maybe some of that time he was running at a constant elevation, and some of that time he was resting.
The third segment started at \((19,3500)\) and stopped at \((23,0)\text{.}\) This implies Kato started this part of his trip from \(3500\) feet high, traveled for \(4\) hours, and returned to the starting elevation. The slope of the line is
Several times in this section we computed a slope by drawing a slope triangle. Thatβs not necessary if you already have coordinates for two points on a line. In fact, sometimes itβs not practical to draw a slope triangle. (For instance if you only have specific information about two points that are too close together to draw a triangle, or if you cannot clearly see precise coordinates where you might start and stop your slope triangle.) Here we will show how to find a lineβs slope without drawing a slope triangle.
Your neighbor planted a sapling from a local nursery in his front yard several years ago. Ever since then, it has been growing at a constant rate. By the end of the third year, the tree was 15 ft tall. By the end of the sixth year, the tree was 27 ft tall. Whatβs the treeβs rate of growth (i.e.Β the slope)?
But hold on. Did we really need this picture? The βriseβ of \(12\) came from a subtraction of two \(y\)-values: \(27-15\text{.}\) And the βrunβ of \(3\) came from a subtraction of two \(x\)-values: \(6-3\text{.}\)
Here is a picture-free approach. We know that after 3 yr, the height is 15 ft. As an ordered pair, that information gives us the point \((3,15)\) which we can label as \((\overset{x_1}{3},\overset{y_1}{15})\text{.}\) Similarly, the background information tells us to consider \((6,27)\text{,}\) which we label as \((\overset{x_2}{6},\overset{y_2}{27})\text{.}\) Here, \(x_1\) and \(y_1\) represent the first pointβs \(x\)- and \(y\)-values, and \(x_2\) and \(y_2\) represent the second pointβs \(x\)- and \(y\)-values.
This is known as the slope formula. The following graphs help to understand why this formula works. Basically, we are still using a slope triangle to calculate the slope.
Itβs important to use subscript instead of superscript in the slope equation, because \(y^2\) means to take the number \(y\) and square it. When we use \(y_2\text{,}\) we are saying there are at least two \(y\)-values in the conversation, and \(y_2\) is the second of them.
Note that we used parentheses when substituting negative numbers in \(x_1\) and \(y_1\text{.}\) This is a good habit to protect yourself from making errors with subtraction and double negatives.
If there is a table of data with \(x\)- and \(y\)-values, and the plot of all that data makes a straight line, what is true about the rates of change as you move from row to row in the table?
Aryana is training for a race up the slope of Mt.Β Hood, from Sandy to Government Camp, and then back. The graph below models her elevation from their starting point as time passes. Find the slopes of the four line segments, and interpret their meanings in this context.
Dane is learning to ski on the slopes of Mt.Β Hood. The graph below models his elevation from the ski parkβs base as time passes during one ski run on a small hill. Find the slopes of the four line segments, and interpret their meanings in this context.
A liquid solution is slowly leaking from a container. This graph shows how many milliliters \(y\) of solution remains in the container after \(x\) minutes.