Linear Functions and Modeling
Linear functions describe relationships where one variable changes at a constant rate relative to another. They're the foundation of mathematical modeling because so many real-world situations (cost analysis, revenue projection, population trends) behave linearly over a given interval. This section covers how to build linear models from data, interpret their components, and apply them to solve problems.

Construction of Linear Models
Building a linear model means translating a real-world situation into the equation . Here's the process:
-
Identify the independent and dependent variables. The independent variable () is the input you control or that changes on its own (time, quantity produced, miles driven). The dependent variable () is the output that responds to changes in (total cost, revenue, distance remaining).
-
Determine the slope (). The slope is the constant rate of change between the two variables. If you have two data points, calculate it with:
For example, if producing 10 units costs $70 and producing 20 units costs $120, then dollars per unit.
- Identify the y-intercept (). This is the value of when . Sometimes the problem gives it directly (an initial fee, a starting balance). Other times, substitute a known point and the slope into and solve for .
Using the example above: , so .
- Write the model. Combine the slope and y-intercept: .

Components of Linear Functions
Once you have a model, you need to interpret what each piece means in context.
Slope (): Describes how the dependent variable changes per one-unit increase in the independent variable. In the cost model , the slope of 5 means each additional unit produced adds $5 to the total cost.
Y-intercept (): Describes the starting value of the dependent variable before the independent variable has any effect. In , the y-intercept of 20 means there's a fixed cost of $20 even if zero units are produced (think of it as setup costs or overhead).
Domain and range should reflect the context of the problem, not just "all real numbers."
- The domain is the set of realistic input values. If represents units produced, the domain might be (you can't produce negative units). If the model only applies up to a production capacity of 500, then .
- The range is the set of output values that result from the domain. For with , the range is .
Always ask: does this value make sense in the real-world scenario?

Application of Linear Models
Evaluating the model (finding from ): Substitute the given -value directly into the equation. If the revenue model is and 100 units are sold:
So selling 100 units generates $1,050 in revenue.
Solving for from a given : Work backward through the equation. To find how many units produce $1,000 in revenue using :
- units
Making predictions: You can use the model to estimate values you don't have data for. Interpolation estimates values within the range of your known data and tends to be reliable. Extrapolation estimates values beyond your data and carries more risk, since the linear trend may not hold indefinitely.
For instance, if your cost data covers 0 to 100 units, predicting the cost at 50 units is interpolation. Predicting the cost at 500 units is extrapolation, and the actual cost could differ significantly if, say, bulk discounts or new equipment costs kick in.
Limitations and assumptions are worth thinking about on any modeling problem:
- Linear models assume a constant rate of change. In reality, rates often shift (economies of scale, market saturation, diminishing returns).
- External factors like inflation, competition, or supply disruptions aren't captured by a simple linear equation.
- The model is only as good as the data it's built from. A model based on two data points is far less reliable than one based on twenty.
Data Analysis and Model Fitting
When you're given raw data rather than a neat equation, you need to determine whether a linear model is appropriate and then find the best one.
- Scatter plots let you visualize the relationship. Plot each data pair as a point and look for a roughly linear pattern.
- Correlation measures the strength and direction of the linear relationship. A correlation coefficient () close to or indicates a strong linear association; close to suggests the relationship isn't linear.
- Linear regression (often done with a calculator or software) finds the line of best fit by minimizing the overall distance between the data points and the line.
- Residuals are the differences between observed values and the values your model predicts: . If residuals are small and randomly scattered (no clear pattern), the linear model fits well. If residuals show a curve or trend, a linear model may not be the right choice.