Linear Functions 📈
Welcome, students. In this lesson, you will explore linear functions, one of the most important models in mathematics and in real life. A linear function describes a relationship with a constant rate of change, which means that when one quantity changes by the same amount each step, the other quantity changes by the same amount too. This idea appears in many contexts: taxi fares, mobile phone plans, temperature conversions, and the speed of a moving object 🚗.
By the end of this lesson, you should be able to:
- explain the key ideas and vocabulary of linear functions,
- identify and interpret parts of linear equations and graphs,
- use linear models to solve context-based problems,
- connect linear functions to the broader study of functions,
- and understand how linear models support data analysis in IB Mathematics: Applications and Interpretation HL.
Linear functions are a foundation for more advanced topics because they help you describe patterns, make predictions, and interpret changes in real-world data.
What is a Linear Function?
A linear function is a function whose graph is a straight line. In algebraic form, it is often written as $f(x)=mx+b$, where $m$ and $b$ are constants. The value $m$ is the slope, and $b$ is the $y$-intercept. The slope tells us the rate of change, while the $y$-intercept tells us where the graph crosses the $y$-axis.
If a relationship is linear, then equal changes in $x$ produce equal changes in $f(x)$. For example, if a gym charges a fixed sign-up fee plus a regular monthly fee, the total cost is linear because each extra month adds the same amount to the total. This constant increase is what makes the graph a straight line.
A linear function can also be written in other forms. One common form is point-slope form, $y-y_1=m(x-x_1)$, which is useful when you know a point on the line and the slope. Another form is standard form, $Ax+By=C$, where $A$, $B$, and $C$ are constants. All these forms represent the same type of relationship.
For IB work, it is important not only to write formulas but also to interpret them in context. If $f(x)=3x+5$, then the output increases by $3$ for every increase of $1$ in $x$, and the starting value when $x=0$ is $5$.
Slope, Intercepts, and Meaning in Context
The slope of a line can be calculated using two points $(x_1,y_1)$ and $(x_2,y_2)$ with the formula $m=\frac{y_2-y_1}{x_2-x_1}.$ This formula shows the average rate of change between two points on the line. For a linear function, this average rate of change is constant everywhere on the graph.
A positive slope means the function increases as $x$ increases. A negative slope means the function decreases as $x$ increases. A slope of $0$ gives a horizontal line, which is still linear because the output stays constant. A vertical line is not a function because one input would have more than one output.
The $y$-intercept is the value of the function when $x=0$. In $f(x)=mx+b$, the intercept is $b$. In a context, this often represents an initial amount. For example, if a water tank starts with $20$ liters and fills at a rate of $4$ liters per minute, then the model is $V(t)=4t+20$. Here, $4$ is the rate of change and $20$ is the starting amount.
Interpreting these values correctly is a major IB skill. Suppose a delivery company charges $8$ plus $2$ for each kilometer traveled. A suitable model is $C(k)=2k+8$. The slope $2$ means the cost rises by $2$ dollars per kilometer, and the intercept $8$ is the fixed fee. This kind of interpretation is often more important than simply drawing the line.
Graphing and Transformations
The graph of a linear function is a straight line, and its shape is determined by slope and intercept. When graphing, you can start with the intercept, then use the slope as a rise-over-run pattern. For $f(x)=\frac{3}{2}x-1$, begin at $(0,-1)$, then move up $3$ and right $2$ to find another point.
Linear functions also connect to transformations. Starting with the parent function $f(x)=x$, you can create new linear functions by changing the slope and shifting the line. For example, $f(x)=2x$ is a vertical stretch compared with $f(x)=x$, while $f(x)=x-4$ shifts the graph down $4$ units. A negative slope, such as in $f(x)=-x+3$, reflects the line across the $x$-axis before shifting it up.
These transformations help you understand how a change in the formula changes the graph. This is useful in IB because you are expected to move flexibly between algebraic and graphical representations. If a graph is shifted upward, the intercept changes. If the slope becomes steeper, the line rises or falls more quickly.
A quick example: compare $f(x)=x+2$ and $g(x)=3x+2$. Both cross the $y$-axis at $2$, but $g(x)$ has a larger slope, so it increases faster. This tells you that even if two linear functions start at the same point, they may behave very differently over time.
Linear Functions in Real-World Modeling
Linear models are useful when change happens at a constant rate over a relevant interval. In real life, not every situation is perfectly linear forever, but many situations can be approximated well by a line over a limited range.
For example, if a car travels at a steady speed of $60$ kilometers per hour, the distance traveled after $t$ hours can be modeled by $d(t)=60t$. If the car already has a $15$-kilometer head start, then the model becomes $d(t)=60t+15$. Here, the slope is the speed, and the intercept is the initial distance.
Another example is temperature conversion. The relationship between Celsius and Fahrenheit is linear: $F=\frac{9}{5}C+32.$ This formula works because each increase of $1$ degree Celsius corresponds to an increase of $\frac{9}{5}$ degrees Fahrenheit. The intercept $32$ shows the freezing point of water in Fahrenheit.
In IB Applications and Interpretation HL, you may be asked to choose a suitable model from data. A linear model is appropriate when the scatter plot shows points clustering around a straight line. If the data follow a curved pattern, another model may fit better. Technology such as graphing calculators or spreadsheet software can help you create a regression line and judge whether linearity is reasonable.
Regression, Fitting, and Technology
Regression is the process of finding a line that best fits a set of data points. The most common linear regression model is the line of best fit, which minimizes the overall distance between the observed data and the predicted values. The equation is often written as $y=mx+b$ or $\hat{y}=mx+b$, where $\hat{y}$ means predicted output.
For example, a school might collect data on the number of hours studied, $x$, and test score, $y$. If the data show a positive trend, a regression line can estimate how much the score changes for each extra hour of study. If the model is $\hat{y}=4x+50$, then the prediction is that each additional hour of study is associated with about $4$ more points, and a student who studies $0$ hours is predicted to score about $50$.
Technology is very important here. A calculator or software can compute regression coefficients quickly, but you still need to interpret the results. You should ask: Does a linear model make sense? Are there outliers? Is the line a good fit? Does the context support predictions outside the observed data range? These questions are central to good mathematical reasoning in HL.
A line of best fit is not a perfect description of reality. It is a model. Because of this, predictions should be made carefully. If the data only cover ages $10$ to $15$, it may not be sensible to use the model for ages $30$.
Conclusion
Linear functions are a key part of the study of functions because they show how input and output can change at a constant rate. They are easy to graph, simple to interpret, and powerful in modeling real situations. You should now be able to identify the slope and intercept, explain what they mean in context, and use a linear equation to make predictions.
In IB Mathematics: Applications and Interpretation HL, linear functions appear in many places: modeling, graphs, transformations, and regression. They also build the habits of thinking that help with more advanced function types. When students understands a linear function well, many later topics become easier to learn.
Study Notes
- A linear function has the form $f(x)=mx+b$ and its graph is a straight line.
- The slope $m$ is the constant rate of change, found by $m=\frac{y_2-y_1}{x_2-x_1}$.
- The $y$-intercept $b$ is the value of the function when $x=0$.
- Positive slope means increasing, negative slope means decreasing, and slope $0$ means constant.
- Linear functions model real situations with constant change, such as taxi fares, salary plans, and uniform motion.
- Point-slope form is $y-y_1=m(x-x_1)$, and standard form is $Ax+By=C$.
- Graphs can be transformed by changing slope, shifting up or down, or reflecting.
- Regression uses data to find a line of best fit, often written as $\hat{y}=mx+b$.
- Technology helps calculate regression, but interpretation and context are still essential.
- Linear functions connect directly to the broader study of functions because they relate inputs to outputs in a predictable way.
