The Central Idea

Suppose a delivery service charges a fixed fee of \$8 plus \$2.50 per mile.

Let

\[ d=\text{distance in miles} \]

and

\[ C=\text{cost in dollars}. \]

The fixed fee gives the intercept:

\[ b=8. \]

The per-mile rate gives the slope:

\[ m=2.50. \]

So the model is

\[ \boxed{ C(d)=2.50d+8 }. \]

This equation is useful because each parameter has a practical meaning:

A good linear model turns a real situation into a mathematical relationship while preserving the meaning of its quantities.

What Is a Mathematical Model?

A mathematical model is a mathematical representation of a real or conceptual system.

A model may use:

A model simplifies reality so that important relationships can be studied more clearly.

What Is a Linear Model?

A linear or affine model in one input variable commonly has the form

\[ \boxed{ y=mx+b }. \]

In strict Malone Math terminology:

In modeling practice, both are often grouped under the familiar phrase linear model.

The Meaning of the Parameters

For

\[ y=mx+b, \]

the slope

\[ m \]

represents the constant change in output per unit change in input.

The intercept

\[ b \]

represents the model's output when

\[ x=0. \]

These are not merely algebraic symbols. They should be interpreted in the context of the problem.

Modeling Begins with Variables

Before writing an equation, define the quantities.

For example:

\[ t=\text{time in hours}, \] \[ D=\text{distance in miles}. \]

Then a model such as

\[ D=55t+20 \]

has a clear interpretation.

Without variable definitions and units, the same equation is much less informative.

Independent and Dependent Variables

In a model

\[ y=mx+b, \]

the input \(x\) is usually treated as the independent variable.

The output \(y\) depends on it.

For a cost model, for example:

\[ q=\text{quantity purchased}, \] \[ C=\text{total cost}. \]

Then cost depends on quantity.

Units Are Part of the Model

Suppose

\[ D=55t+20, \]

where distance is in miles and time is in hours.

Then the slope must have units

\[ 55\frac{\text{miles}}{\text{hour}}. \]

The intercept has units

\[ 20\text{ miles}. \]

Dimensional consistency helps verify that the model has been constructed correctly.

The Constant-Rate Assumption

The defining assumption of an affine model is that the rate of change is constant:

\[ \boxed{ \frac{\Delta y}{\Delta x}=m }. \]

Equivalently,

\[ \Delta y=m\,\Delta x. \]

If the real process does not maintain approximately constant rate over the relevant domain, a single linear model may be inappropriate.

Exact Models Versus Approximate Models

Some relationships are exactly affine by definition or design.

For example, a service may literally charge

\[ \$5+\$3\text{ per unit}. \]

Then

\[ C(q)=3q+5 \]

may be exact.

Other relationships are only approximately linear.

For noisy data, write

\[ \boxed{ y\approx mx+b } \]

or describe the equation as a trend model.

Start with the Story, Not the Formula

Before choosing

\[ y=mx+b, \]

ask:

The equation should emerge from the structure of the situation.

Model from a Rate and Initial Value

A tank contains \(500\) liters and drains at \(40\) liters per minute.

Let

\[ t=\text{minutes} \]

and

\[ V=\text{volume in liters}. \]

The slope is

\[ m=-40. \]

The initial value is

\[ b=500. \]

Therefore,

\[ \boxed{ V(t)=500-40t }. \]

Interpret the Tank Model

For

\[ V(t)=500-40t, \]

the slope

\[ -40\frac{\text{L}}{\text{min}} \]

means the volume decreases by \(40\) liters each minute.

The intercept

\[ 500\text{ L} \]

is the volume at time zero.

Find the Natural Domain

The tank reaches zero when

\[ 500-40t=0. \]

So

\[ 40t=500, \] \[ t=12.5. \]

A natural physical domain is

\[ \boxed{ 0\le t\le12.5 }. \]

The algebraic line extends farther, but the physical model need not.

Model from One Observation and a Rate

Suppose a vehicle is \(140\) miles from a reference point at

\[ t=2 \]

hours and continues away at \(60\) miles per hour.

The observed point is

\[ (2,140). \]

Use point-slope form:

\[ D-140=60(t-2). \]

Thus,

\[ \boxed{ D(t)=140+60(t-2) }. \]

Why Point-Slope Form May Be Better for a Model

The form

\[ D=140+60(t-2) \]

keeps the known observation visible.

Expanding gives

\[ D=60t+20. \]

Both are equivalent, but the first emphasizes measured information while the second exposes the intercept.

The best representation depends on what we want to communicate.

Model from Two Observations

Suppose a machine produces \(120\) units after \(3\) hours and \(240\) units after \(7\) hours.

Assume production is affine over that interval.

The slope is

\[ m= \frac{240-120}{7-3} = \frac{120}{4} = 30. \]

Using \((3,120)\):

\[ P-120=30(t-3). \]

So

\[ \boxed{ P(t)=30t+30 }. \]

Interpret the Implied Intercept Carefully

The model

\[ P(t)=30t+30 \]

implies

\[ P(0)=30. \]

That may mean \(30\) units had already been completed at time zero.

But if the observed data began later, the intercept may simply be an extrapolated feature of the affine model.

Do not assign practical meaning to an intercept automatically.

Model from a Table

Suppose:

Hours \(h\) Cost \(C\)
145
375
5105

The rate is

\[ \frac{75-45}{3-1}=15 \]

and

\[ \frac{105-75}{5-3}=15. \]

The constant rate supports an affine model.

Using \((1,45)\):

\[ C-45=15(h-1). \]

So

\[ \boxed{ C(h)=15h+30 }. \]

Check the Model Against Every Data Point

For

\[ C(h)=15h+30, \]

check:

\[ C(1)=45, \] \[ C(3)=75, \] \[ C(5)=105. \]

All observations are reproduced exactly.

This supports the model for the data provided.

Model from Noisy Data

Suppose observations are:

\[ (0,9.8), \qquad (1,12.1), \qquad (2,13.9), \qquad (3,16.2). \]

The changes are close to \(2\) per input unit, but not exact.

A reasonable informal trend model might be

\[ \boxed{ y\approx2x+10 }. \]

This equation summarizes the pattern rather than passing through every observation.

Residuals Measure Model Error

If the model predicts

\[ \hat y \]

and the observed value is

\[ y, \]

then the residual is

\[ \boxed{ r=y-\hat y }. \]

Residuals measure how far observations lie from the model.

Example: Residual Check

Using

\[ \hat y=2x+10, \]

at \(x=3\) the model predicts

\[ \hat y=16. \]

If the observed value is

\[ 16.2, \]

then

\[ r=16.2-16=0.2. \]

The observed point lies \(0.2\) units above the model.

Residual Pattern Matters More Than One Residual

One small residual does not prove the model is good.

Inspect residuals across the data.

If they remain small and show no obvious structure, a linear model may be reasonable.

If they form a curved pattern, the model may be missing nonlinear behavior.

Graph the Data and the Model Together

A graph helps reveal whether the proposed line captures the data pattern.

Look for:

Graphical checking complements algebraic checking.

Modeling with Standard Form

Not every useful linear model needs to isolate one variable immediately.

Suppose product \(x\) requires \(2\) labor hours and product \(y\) requires \(5\) labor hours.

If exactly \(100\) labor hours are used, then

\[ \boxed{ 2x+5y=100 }. \]

This standard-form relation models a resource constraint.

Interpret the Constraint Intercepts

For

\[ 2x+5y=100, \]

if

\[ y=0, \]

then

\[ x=50. \]

If

\[ x=0, \]

then

\[ y=20. \]

The intercepts describe extreme production combinations under the resource limit.

Equality Versus Inequality Constraints

The equation

\[ 2x+5y=100 \]

means exactly \(100\) labor hours are used.

The inequality

\[ \boxed{ 2x+5y\le100 } \]

means no more than \(100\) labor hours may be used.

The first describes a boundary line; the second describes a feasible region.

Modeling Thresholds

Suppose a subscription costs

\[ C(m)=12m+30, \]

where \(m\) is months.

If the budget is at most \$150, solve

\[ 12m+30\le150. \]

Then

\[ 12m\le120, \] \[ \boxed{m\le10}. \]

The linear model becomes a decision tool.

Break-Even Modeling

Suppose revenue is

\[ R(q)=25q \]

and cost is

\[ C(q)=15q+400. \]

Break-even occurs when

\[ R(q)=C(q). \]

So

\[ 25q=15q+400, \] \[ 10q=400, \] \[ \boxed{q=40}. \]

Profit Region

Profit is positive when

\[ R(q)>C(q). \]

Thus,

\[ 25q>15q+400, \] \[ 10q>400, \] \[ \boxed{q>40}. \]

The equality locates the threshold; the inequality identifies the favorable region.

Comparing Competing Linear Models

Suppose two service plans are

\[ A(x)=4x+40 \]

and

\[ B(x)=7x+10. \]

Plan \(A\) starts higher but grows more slowly.

Plan \(B\) starts lower but grows faster.

Set them equal to find the crossover:

\[ 4x+40=7x+10. \]

Then

\[ 30=3x, \] \[ \boxed{x=10}. \]

Interpret the Crossover

At

\[ x=10, \]

both plans have the same cost.

For smaller \(x\), compare one test value.

At \(x=0\):

\[ A(0)=40, \qquad B(0)=10. \]

So \(B\) is cheaper initially.

For large \(x\), the larger slope of \(B\) eventually makes \(A\) cheaper.

Interpolation in a Linear Model

If a linear model is valid over an observed interval, it can estimate values between known observations.

For example, suppose

\[ C(q)=8q+340 \]

fits observed costs for

\[ 20\le q\le50. \]

Estimating at

\[ q=35 \]

is interpolation.

The model gives

\[ C(35)=620. \]

Extrapolation in a Linear Model

Using the same observed range

\[ 20\le q\le50, \]

predicting at

\[ q=100 \]

is extrapolation.

The formula still produces a number:

\[ C(100)=1140. \]

But the reliability depends on whether the same cost structure continues that far.

Short-Term Versus Long-Term Models

A model may be useful over one interval and poor over another.

Examples:

Model validity is usually tied to a domain.

Model Assumptions Should Be Stated

A useful model report may say:

Stating assumptions makes the model easier to evaluate and revise.

Model Assumptions Are Testable

If a model assumes constant rate, new data can test that assumption.

If observed slopes begin changing systematically, the model may need to be updated.

A model is not a permanent declaration. It is a working mathematical representation that can be compared with evidence.

Piecewise-Linear Models

If the rate changes at known thresholds, one affine equation may be too simple.

A piecewise-linear model can use a different rate on each interval.

For example, overtime pay may use one hourly rate before \(40\) hours and another afterward.

Example: Overtime Model

Suppose a worker earns \$20 per hour for the first \(40\) hours and \$30 per hour afterward.

Then

\[ P(h)= \begin{cases} 20h, & 0\le h\le40,\\ 800+30(h-40), & h>40. \end{cases} \]

A piecewise-linear model preserves the changing rate without abandoning linear structure within each region.

When a Nonlinear Model Is Better

A single linear model may be poor when:

In such cases, another function family may better represent the system.

Constant Percentage Change Is Not Linear

If a quantity grows by \(5\%\) each period, the change depends on the current amount.

The process is multiplicative, not additive.

Such behavior is naturally modeled by an exponential function rather than by

\[ y=mx+b. \]

Curvature Is Evidence Against One Global Line

If data rise slowly at first and then increasingly rapidly, one constant slope cannot capture the whole pattern.

A local line may still be useful over a small interval, but a global nonlinear model may be more appropriate.

Outliers and Model Choice

An outlier may strongly affect a fitted line.

Before changing or discarding the model, ask:

Do Not Remove Data Just to Improve the Fit

A model should represent the system, not merely look neat.

Removing inconvenient observations without justification can hide important information.

Data quality decisions should be explained.

Graph Scale Can Mislead

A line may appear nearly flat or extremely steep depending on axis scaling.

Always interpret slope numerically using the variable units.

Do not judge rate only by the visual angle of the graph.

Zero May Be Outside the Relevant Domain

The intercept \(b\) describes the model at

\[ x=0. \]

But if the meaningful domain is

\[ 50\le x\le100, \]

then \(b\) is extrapolated far outside the observed region.

It may still be mathematically useful without having a realistic direct interpretation.

Physical Bounds Can Limit a Model

A line may predict impossible values if extended too far.

Examples include:

Known bounds should constrain the valid domain.

Discrete Inputs

Some models use inputs that can take only whole-number values.

For example,

\[ C(n)=8n+25 \]

may model the cost of \(n\) items.

If \(n\) counts items, then

\[ n\in\{0,1,2,\ldots\}. \]

The formula is affine, but the practical graph consists of discrete points rather than every point on the continuous line.

Continuous Inputs

Other variables may vary continuously.

Examples include:

For continuous domains, the model may reasonably include all real inputs in an interval.

Model Precision Should Match Data Precision

If measurements are only accurate to the nearest kilogram, reporting a model prediction to twelve decimal places creates false precision.

Round results at a level appropriate to the quality of the data and the purpose of the model.

Example: Reasonable Rounding

Suppose a model predicts

\[ 47.3862 \]

minutes, but measured times are recorded only to the nearest minute.

A practical report might state

\[ \boxed{47\text{ minutes}} \]

or perhaps \(47.4\) minutes if tenths are justified.

Sensitivity to the Slope

Small slope errors become more important over large input changes.

If two models differ in slope by

\[ 0.2, \]

then after an input change of \(100\), their predictions differ by

\[ 0.2(100)=20. \]

This is one reason distant extrapolation can amplify small modeling errors.

Sensitivity to the Intercept

If two models have the same slope but intercepts differing by \(5\), their predictions differ by exactly \(5\) everywhere.

The intercept shifts the entire line without changing its rate.

Model Comparison Through Residuals

If two candidate models are available, compare how well each predicts the observed data.

A model with consistently smaller, less structured residuals may be preferable.

But mathematical fit is only one criterion.

Simplicity, interpretability, physical meaning, and domain knowledge also matter.

Simple Models Have Value

A linear model may be useful even when reality is more complicated.

Its advantages include:

A model need not be perfect to be useful.

But Simplicity Has a Cost

Every simplification ignores some details.

A good modeling decision balances:

\[ \boxed{ \text{simplicity} \quad\text{and}\quad \text{accuracy} }. \]

The right balance depends on the task.

Prediction Is Not Explanation

A line may predict data well without explaining why the pattern occurs.

For example, two variables may rise together because both are influenced by a third factor.

Mathematical association does not automatically establish causation.

Modeling and Causation

To make causal claims, additional evidence may be needed, such as:

A linear equation alone cannot supply that evidence.

Communicating a Linear Model

A complete model statement should usually include:

Example of a Complete Model Statement

Suppose

\[ C(q)=8q+340, \qquad 20\le q\le50. \]

A complete interpretation might be:

“For production levels between \(20\) and \(50\) units, total cost is modeled as \$340 plus approximately \$8 per unit produced. The slope represents marginal cost per additional unit. The intercept is the affine model's implied cost at zero production, but zero production lies outside the observed range and should not automatically be interpreted as an observed fixed cost.”

Model Validation with New Data

A strong test of a model is how well it performs on data not used to construct it.

If a line was built from earlier observations, compare future observations with its predictions.

Large systematic errors suggest the model should be revised.

Updating a Model

Suppose a machine originally produced at

\[ 30\text{ units per hour}, \]

but newer observations show a rate closer to

\[ 25\text{ units per hour}. \]

The old model may no longer represent current operation.

Models should be updated when the system or evidence changes.

Modeling as an Iterative Process

A practical modeling cycle is:

\[ \boxed{ \text{observe} \rightarrow \text{model} \rightarrow \text{predict} \rightarrow \text{check} \rightarrow \text{revise} }. \]

Modeling is not a one-time calculation.

It is a process of using mathematics to represent, test, and improve our understanding of a system.

A Reliable Linear-Modeling Workflow

  1. Identify the quantities.
  2. Define variables and units.
  3. Decide whether constant-rate behavior is plausible.
  4. Identify the slope from a rate or data.
  5. Identify an intercept or known point.
  6. Choose a useful equation form.
  7. State the valid domain.
  8. Interpret the parameters.
  9. Check the model against data and context.
  10. Revise or replace the model if the assumptions fail.

A Reliable Data-to-Model Workflow

  1. Plot or inspect the data.
  2. Check whether the rate is constant or approximately constant.
  3. Distinguish exact data from noisy observations.
  4. Construct an exact line or approximate trend line as appropriate.
  5. Compute residuals or deviations.
  6. Check for curvature, thresholds, or outliers.
  7. Use interpolation more confidently than distant extrapolation.

A Reliable Applied-Decision Workflow

  1. Construct the relevant linear models.
  2. Translate the decision into an equation or inequality.
  3. Solve for the threshold or feasible interval.
  4. Apply domain restrictions such as nonnegativity or integrality.
  5. Interpret the result in units and context.
  6. Check whether the model remains valid near the decision boundary.

A Reliable Model-Communication Workflow

  1. State the equation.
  2. Define every variable.
  3. Give units.
  4. Interpret slope and intercept.
  5. State assumptions and domain.
  6. Label predictions as predictions.
  7. Describe limitations rather than hiding them.

Common Errors

Using a Linear Model Without Checking Constant Rate

A line should reflect the structure of the data or system, not merely be chosen because it is familiar.

Treating an Approximate Trend as an Exact Law

Noisy data generally support approximate statements, not exact equality.

Ignoring Units

Slope must carry output units per input unit.

Interpreting Every Intercept Literally

If \(x=0\) lies outside the meaningful or observed domain, the intercept may not have direct physical meaning.

Extrapolating Too Far

A locally useful line may fail outside the region where it was tested.

Ignoring Physical Bounds

Negative inventories, impossible percentages, or unlimited growth may signal model failure.

Ignoring Discrete Domains

If the variable counts objects, only whole-number inputs may be meaningful.

Confusing Correlation with Causation

A strong linear association does not by itself establish a causal mechanism.

Reporting False Precision

Model outputs should not imply more precision than the data justify.

Keeping a Model After the System Changes

Models should be revised when new evidence shows that their assumptions no longer hold.

Practice

1. Rate and Initial Value

A service charges \$12 initially plus \$7 per hour. Construct a cost model \(C(h)\).

Check Answer \[ \boxed{ C(h)=7h+12 }. \]

The slope is \$7 per hour, and the intercept is \$12.

2. Observation and Rate

At \(t=3\) hours, a vehicle is \(210\) miles from a reference point. It continues away at \(50\) miles per hour. Construct a model.

Check Answer \[ D-210=50(t-3). \]

So

\[ \boxed{ D(t)=210+50(t-3) }. \]

Equivalently,

\[ \boxed{ D(t)=50t+60 }. \]

3. Two Observations

A company's cost is \$420 at \(10\) units and \$660 at \(30\) units. Assume an affine relationship. Construct \(C(q)\).

Check Answer \[ m= \frac{660-420}{30-10} = \frac{240}{20} = 12. \]

Use \((10,420)\):

\[ C-420=12(q-10). \]

Therefore,

\[ \boxed{ C(q)=12q+300 }. \]

4. Interpret the Slope

For

\[ C(q)=12q+300, \]

interpret \(12\).

Check Answer

The slope represents an additional modeled cost of

\[ \boxed{\$12\text{ per additional unit produced}}. \]

5. Intercept Caution

If the model above was based only on observations for \(10\le q\le30\), should the intercept \(300\) automatically be treated as an observed fixed cost?

Check Answer

No.

The intercept is the affine model's implied cost at \(q=0\), which lies outside the observed range. It may represent fixed cost, but that interpretation requires additional evidence.

6. Natural Domain

A tank model is

\[ V(t)=240-30t. \]

Assuming time begins at \(0\) and the model ends when the tank is empty, find the natural domain.

Check Answer

Set volume to zero:

\[ 240-30t=0. \] \[ 30t=240. \] \[ t=8. \]

So

\[ \boxed{ 0\le t\le8 }. \]

7. Break-Even

Revenue is

\[ R(q)=30q \]

and cost is

\[ C(q)=18q+480. \]

Find the break-even quantity.

Check Answer \[ 30q=18q+480. \] \[ 12q=480. \] \[ \boxed{q=40}. \]

8. Profit Region

Using the same models, for what quantities is revenue greater than cost?

Check Answer \[ 30q>18q+480. \] \[ 12q>480. \] \[ \boxed{q>40}. \]

9. Compare Two Plans

Plan A costs

\[ A(x)=5x+30, \]

and Plan B costs

\[ B(x)=8x+6. \]

Find where they cost the same.

Check Answer \[ 5x+30=8x+6. \] \[ 24=3x. \] \[ \boxed{x=8}. \]

10. Detect Model Failure

A population model is

\[ P(t)=1000-80t. \]

What warning should be given before using it for very large \(t\)?

Check Answer

The line eventually predicts negative population, which is impossible. The model can only be valid over a limited domain and should not be extrapolated indefinitely.

11. Exact or Approximate?

Observed data do not lie exactly on one line but cluster close to

\[ y=3x+5. \]

How should the relationship be written?

Check Answer

Use approximate language such as

\[ \boxed{ y\approx3x+5 } \]

or describe the equation as a linear trend model.

12. Choose a Better Model

A process grows by \(10\%\) each month. Is an exact affine model the natural choice?

Check Answer

No.

A constant percentage increase is multiplicative, so an exponential model is more natural than an exact affine model.

Key Ideas

Where This Leads

Linear modeling completes the study of Linear and Affine Relationships by bringing the section's tools together into one practical process. Slope describes rate, intercepts establish position, equation forms organize information, graphs reveal structure, inequalities identify decision regions, and interpolation and piecewise functions extend the model to realistic situations.

These ideas now support the next layers of Algebraic Relationships: systems of equations and matrix methods, polynomial and rational models, exponential and logarithmic change, sequences, graphical methods, numerical algorithms, and introductory analysis. The line remains one of the simplest mathematical models, but it becomes a reference point against which more complicated relationships can be understood.