2. Functions

Linear Functions

Linear Functions 📈

Welcome, students! In this lesson, you will explore linear functions, one of the most important function types in mathematics and in real life. A linear function describes a relationship with a constant rate of change, which means it changes by the same amount each time the input changes by one unit. This idea appears in transport costs, wages, temperature conversions, and many other everyday situations. 🚗💰🌡️

What you will learn

By the end of this lesson, you should be able to:

  • explain the main ideas and terminology of linear functions,
  • identify and interpret linear relationships in context,
  • use graphs, tables, and equations to model real situations,
  • connect linear functions to the wider topic of functions,
  • use technology-supported reasoning to analyze linear models.

Linear functions are a foundation for the study of functions because they are simple, predictable, and easy to interpret. They also help you understand more advanced models later in the course.

What is a linear function?

A linear function is a function whose graph is a straight line. It can be written in the form $f(x)=mx+b$, where $m$ and $b$ are constants.

Here is what the parts mean:

  • $m$ is the slope or gradient.
  • $b$ is the $y$-intercept, which is the value of the function when $x=0$.
  • $x$ is the input variable.
  • $f(x)$ is the output variable.

The slope tells us the rate of change. If $m=3$, then every time $x$ increases by $1$, the output increases by $3$. If $m=-2$, then every time $x$ increases by $1$, the output decreases by $2$.

A useful way to think about this is in a taxi fare model. Suppose the fare starts at $5$ dollars and increases by $2$ dollars per kilometer. Then the cost function is $C(x)=2x+5$, where $x$ is the number of kilometers travelled. The $5$ is the starting fee, and the $2$ is the rate per kilometer. 🚕

Understanding slope and intercept

The slope is one of the most important ideas in this topic. It measures how steep a line is and shows the rate at which one quantity changes compared with another. In IB Mathematics: Applications and Interpretation SL, you are expected not only to calculate the slope but also to interpret it in context.

If a line goes up from left to right, the slope is positive. If it goes down from left to right, the slope is negative. If the line is horizontal, the slope is $0$. A vertical line does not represent a function because one input would have more than one output.

You can calculate slope using two points on the line, such as $(x_1,y_1)$ and $(x_2,y_2)$, with the formula

$$m=\frac{y_2-y_1}{x_2-x_1}.$$

For example, if a phone plan costs $20$ dollars for $2$ GB and $35$ dollars for $5$ GB, the slope is

$$m=\frac{35-20}{5-2}=\frac{15}{3}=5.$$

This means the cost increases by $5$ dollars per GB. If the cost is modeled by $C(x)=5x+b$, then using the point $(2,20)$ gives

$$20=5(2)+b,$$

so

$$b=10.$$

Therefore the model is $C(x)=5x+10$.

This tells us the plan has a $10$ dollar base fee and a $5$ dollar charge per GB. This kind of interpretation is essential in context-based questions.

Graphs and real-world meaning

A graph of a linear function is a straight line, but the graph is more than just a picture. It helps you see relationships quickly.

When studying graphs, think about:

  • the direction of the line,
  • the steepness of the line,
  • the $y$-intercept,
  • the meaning of the axes,
  • whether the model makes sense in the situation.

For example, suppose $h(t)=180-6t$ models the height of water in a tank in centimeters after $t$ minutes. The $y$-intercept is $180$, so at the start there are $180$ cm of water. The slope is $-6$, meaning the height decreases by $6$ cm each minute. That is a clear linear decrease. 💧

If you are given a graph, you should be able to describe it in words. If you are given a context, you should be able to create a graph. If you are given a table, you should be able to check whether the change is constant. These are all connected skills.

Forms of linear equations

Linear functions can be written in different forms, and each form is useful in a different situation.

Slope-intercept form

The form $f(x)=mx+b$ is called slope-intercept form. It is useful because it directly shows the slope and intercept.

Point-slope form

If you know a point and the slope, you can use

$$y-y_1=m(x-x_1).$$

This is helpful when building a model from information about one point and the rate of change.

Standard form

A line may also be written as

$$Ax+By=C,$$

where $A$, $B$, and $C$ are constants. This form is often useful for algebraic manipulation or solving systems of equations.

For IB applications, you should recognize all of these forms and know when each one is convenient.

Linear functions in context

Linear functions are especially useful when a quantity changes at a constant rate. Real-world examples include:

  • hourly pay: $P(h)=15h$ if someone earns $15$ dollars per hour,
  • temperature conversion: $F(C)=\frac{9}{5}C+32$,
  • distance at constant speed: $d(t)=vt$,
  • subscriptions with a fixed fee: $C(x)=ax+b$.

The key question in context is: What do the slope and intercept mean?

For example, if a gym charges $30$ dollars to join and then $12$ dollars each month, the cost after $m$ months is

$$C(m)=12m+30.$$

Here, $30$ is the initial joining fee, and $12$ is the monthly increase. If $m=6$, then

$$C(6)=12(6)+30=102.$$

So after six months, the total cost is $102$. This is a simple but realistic linear model.

Sometimes a linear model is only valid in a certain range. For instance, a taxi fare may be linear for short trips, but the real world can include extra charges, discounts, or traffic delays. In IB problems, always check whether the model matches the situation.

Technology-supported analysis and regression

In Applications and Interpretation SL, technology is an important tool. You may use a graphing calculator or software to create scatter plots, find lines of best fit, and analyze data.

When data points are roughly arranged in a line, a linear regression model can be used. Regression finds the line that best fits the data by minimizing the overall error. This is very useful when the relationship is not perfect but still close to linear.

For example, if you collect data on studying time and test scores, the points may show an upward trend. A regression line may help estimate the score for a given study time. However, regression gives an approximate model, not an exact rule.

A good linear model should be judged using:

  • the shape of the scatter plot,
  • whether the trend is approximately straight,
  • the size of the residuals,
  • whether the model makes sense in context.

Residuals are the differences between observed values and predicted values. If the residuals are randomly scattered around zero, the linear model may be appropriate. If the residuals show a curved pattern, a linear model may not be suitable.

Connecting linear functions to the broader topic of functions

Functions are rules that assign each input exactly one output. Linear functions are one type of function, and they help build your understanding of function notation, domains, ranges, and modeling.

For a function such as $f(x)=2x+1$, the domain is the set of allowable inputs, and the range is the set of possible outputs. In context, the domain may be restricted. For example, if $x$ represents time, then negative values may not make sense. If $x$ represents number of items, then it may need to be a whole number.

This is important in IB Mathematics: Applications and Interpretation SL because real-world modeling often requires deciding what values are meaningful. A mathematically correct formula is not enough; the interpretation must also be sensible.

You should also understand that linear functions can be transformed. Changing the constant term moves the line up or down, while changing the coefficient of $x$ changes the slope. This links linear functions to the broader study of transformations of graphs.

Conclusion

Linear functions are one of the most useful and accessible parts of the study of functions. They have a constant rate of change, a straight-line graph, and a clear interpretation in real situations. By understanding slope, intercept, graph behavior, and context, you can describe relationships accurately and choose sensible models. Technology and regression extend this knowledge to real data, where lines can be used to estimate and interpret trends.

Mastering linear functions gives you a strong foundation for the rest of the topic of Functions and for many later mathematical ideas. Keep asking: What does the slope mean? What does the intercept mean? Does the model fit the context? These questions will guide your reasoning in IB tasks. ✅

Study Notes

  • A linear function can be written as $f(x)=mx+b$.
  • $m$ is the slope, which shows the constant rate of change.
  • $b$ is the $y$-intercept, the value when $x=0$.
  • The graph of a linear function is a straight line.
  • A positive slope means the line rises from left to right.
  • A negative slope means the line falls from left to right.
  • A horizontal line has slope $0$ and represents a constant function.
  • The slope formula is $m=\frac{y_2-y_1}{x_2-x_1}$.
  • Point-slope form is $y-y_1=m(x-x_1)$.
  • Standard form is $Ax+By=C$.
  • In context, the slope often represents a rate such as cost per item or distance per hour.
  • In context, the intercept often represents an initial value or starting amount.
  • Linear regression is used when data show an approximately straight-line trend.
  • Residuals help check whether a linear model fits data well.
  • Always check whether the domain makes sense in the real situation.
  • Linear functions are a key part of the broader study of functions and modeling.

Practice Quiz

5 questions to test your understanding