01 / 21

Building
Linear Models

Learn how to construct linear equations from real-world data, two given points, or stated conditions using \( y = mx + b \).

Finite Mathematics

What Is a Linear Model?

A linear model is an equation of the form \( y = mx + b \) that describes a relationship where one quantity changes at a constant rate with respect to another. The graph is always a straight line.

\( m \) : Slope
The constant rate of change: how much \( y \) changes per unit increase in \( x \).
\( b \) : \( y \)-Intercept
The value of \( y \) when \( x = 0 \): the starting value of the model.

Why Linear Models Matter

Linear models appear everywhere: predicting costs, forecasting revenue, modeling depreciation, and estimating population growth over short intervals. If the rate of change is roughly constant, a line is the simplest and most powerful tool.

Business
\( \text{Cost} = \text{fixed cost} + (\text{cost per unit}) \times \text{quantity} \)
Science
\( \text{Distance} = \text{rate} \times \text{time} \) for uniform motion
Finance
Straight-line depreciation of an asset over its useful life

Anatomy of the Line

\( x \)
\( y \)
\( b = \) y-intercept
run
rise
slope \( m = \frac{\text{rise}}{\text{run}} \)

The Slope Formula

Given two points \( (x_1, y_1) \) and \( (x_2, y_2) \), the slope is:

This ratio is constant between any two points on the same line. Once you know \( m \), substitute either point into \( y = mx + b \) to solve for \( b \).

Point-Slope vs. Slope-Intercept

Point-Slope Form Slope-Intercept Form
Equation \( y - y_1 = m(x - x_1) \) \( y = mx + b \)
You need A point + slope Slope + \( y \)-intercept
Best when Given data points, no intercept Intercept is known or required
Final step Rearrange to \( y = mx + b \) Already in standard output form

How to Build a Linear Model

1
Identify two data points or a point and a slope from the problem conditions.
2
Compute the slope: \( m = \dfrac{y_2 - y_1}{x_2 - x_1} \).
3
Use point-slope form: \( y - y_1 = m(x - x_1) \) with either point.
4
Simplify to slope-intercept form \( y = mx + b \).
5
Interpret the slope and intercept in the context of the problem.

Example 1: Two Points

A company's revenue was $12,000 after 2 months and $27,000 after 5 months. Build a linear model for revenue \( R \) as a function of time \( t \) (months).

\(t\) (months)
\(R\) ($k)
\(1\)
\(2\)
\(3\)
\(4\)
\(5\)
\(6\)
\(0\)
\(5\)
\(10\)
\(15\)
\(20\)
\(25\)
\(30\)
\((2, 12)\)
\((5, 27)\)

Example 2: Slope + Condition

A tank drains at a constant rate of 3 gallons per minute. After 10 minutes the tank holds 50 gallons. Write a linear model for the volume \( V \) remaining after \( t \) minutes.

Example 3: Straight-Line Depreciation

A machine costs $40,000 and will have a salvage value of $4,000 after 8 years. Find the linear depreciation model.

\(t\) (years)
\(V\) ($k)
\(0\)
\(1\)
\(2\)
\(3\)
\(4\)
\(5\)
\(6\)
\(7\)
\(8\)
\(0\)
\(10\)
\(20\)
\(30\)
\(40\)
\((0, 40)\)
\((8, 4)\)

Interpreting \( m \) and \( b \)

Slope \( m \)
"For every 1-unit increase in \( x \), \( y \) changes by \( m \) units." Always include units and direction (increase/decrease).
Intercept \( b \)
"When \( x = 0 \), \( y = b \)." This is the initial value or starting condition. Make sure \( x = 0 \) makes sense in context.

Building from a Data Table

When given a table of values, pick any two rows to compute \( m \). Then use one row as your point.

\( x \) \( y \)
17
313
519
725

Is the Data Actually Linear?

Before building a linear model, verify that the rate of change is constant. Compute \( \frac{\Delta y}{\Delta x} \) between consecutive points. If the ratios are equal (or approximately equal), the data is linear.

Linear
Constant first differences: \( \frac{\Delta y}{\Delta x} \) is the same everywhere.
Not Linear
Varying first differences: the rate of change is accelerating or decelerating.

Parallel and Perpendicular Lines

Parallel: same \(m\)
Perpendicular: \( m_1 \cdot m_2 = -1 \)
Parallel Lines
\( m_1 = m_2 \). Same slope, different intercepts. They never cross.
Perpendicular Lines
\( m_1 \cdot m_2 = -1 \). Their slopes are negative reciprocals.

Common Mistakes

✕ Swapping \( x \) and \( y \)
Computing \( \frac{x_2 - x_1}{y_2 - y_1} \) instead of \( \frac{y_2 - y_1}{x_2 - x_1} \). Remember: rise (y) over run (x).
✕ Sign Errors in Slope
Mixing up which value is subtracted first. Stay consistent: always \( y_2 - y_1 \) on top, \( x_2 - x_1 \) on bottom.
✕ Forgetting to Solve for \( b \)
Finding the slope but leaving the model incomplete. Always substitute a known point back in to find the intercept.

Summary of Linear Model Forms

Form Equation When to Use
Slope-Intercept \( y = mx + b \) Final answer form; intercept given
Point-Slope \( y - y_1 = m(x - x_1) \) Building tool; point + slope given
Standard \( Ax + By = C \) Systems of equations; integer coefficients
Two-Point Method Compute \( m \), then point-slope Two data points, no slope given

Question 1 of 5

Find the equation of the line through \( (1, 5) \) and \( (4, 14) \).

Question 2 of 5

A car rental costs $30/day plus $0.20 per mile. Which model represents the total daily cost \( C \) as a function of miles \( m \)?

Question 3 of 5

A machine purchased for $60,000 depreciates linearly to a salvage value of $12,000 over 6 years. What is the annual depreciation (slope)?

Question 4 of 5

In the model \( y = -2.5x + 100 \), what does the \( y \)-intercept represent?

Question 5 of 5

Data shows: \( (2, 10) \), \( (4, 16) \), \( (6, 22) \), \( (8, 28) \). Which equation models this data?