Precalculus · Textbook draft · 10 minute reading

Linear Models and Systems

Use rates, intersections, and feasible domains to compare simple models.

Before you begin

  • Line equations and function notation.

Learning objectives

  • Construct affine models with meaningful units.
  • Solve and interpret two-variable linear systems.
  • Distinguish interpolation from model-dependent extrapolation.

A delivery service charges a fixed dispatch fee plus an amount per kilometre. The total cost has two different contributions, one present even before travel and one proportional to distance. An affine model C(d)=md+bC(d)=md+b records these contributions separately, and comparing two services becomes an intersection problem.

Equal input changes produce equal output changes

For f(x)=mx+bf(x)=mx+b,

f(x+h)−f(x)=mh.f(x+h)-f(x)=mh.

The output change depends on the increment hh but not on the starting input xx. Dividing by nonzero hh gives the same average rate mm on every interval.

Strictly, mxmx is a linear map and mx+bmx+b is affine when b≠0b\ne0. In elementary graph terminology both are often called linear functions. We will state the formula so that the fixed contribution is visible regardless of this naming convention.

Given two distinct inputs x1,x2x_1,x_2 with outputs y1,y2y_1,y_2, the line interpolating them has slope (y2−y1)/(x2−x1)(y_2-y_1)/(x_2-x_1) and intercept y1−mx1y_1-mx_1. Two points determine that line, but they do not establish that the actual process follows it between or beyond the observations.

Comparing two cost models

Suppose the hypothetical service costs are A(d)=12+1.5dA(d)=12+1.5d and B(d)=4+2.5dB(d)=4+2.5d, with dollars as outputs and kilometres as nonnegative inputs. Equality gives

12+1.5d=4+2.5d,d=8.12+1.5d=4+2.5d,\qquad d=8.

Both cost 24 dollars there. Their difference is A(d)−B(d)=8−dA(d)-B(d)=8-d, so B is cheaper for 0≤d<80\le d<8 and A is cheaper for d>8d>8. A comparison of slopes alone would omit the fixed dispatch fees.

If the prices apply only up to 20 kilometres, the comparison’s domain is [0,20][0,20]. Extrapolating either formula beyond that range would be an additional pricing assumption.

A system describes a shared constraint

Suppose adult tickets cost 12 dollars and student tickets cost 8 dollars. A hypothetical event sells 40 tickets and collects 400 dollars. If a,sa,s are the counts, the two constraints are

a+s=40,12a+8s=400.a+s=40,\qquad12a+8s=400.

Substitute s=40−as=40-a to obtain 12a+320−8a=40012a+320-8a=400, so a=20a=20 and s=20s=20. Substitution into both original equations confirms the counts and revenue.

Elimination uses the same constraints without solving one variable explicitly. Subtract eight times the first equation from the second to get 4a=804a=80. Adding a multiple of one equation to the other preserves their common solutions because the operation is reversible.

Intersections may be absent or nonunique

The equations y=2x+1y=2x+1 and y=2x−3y=2x-3 represent parallel lines. Equating them gives 1=−31=-3, so there is no common solution. The equations y=2x+1y=2x+1 and 2y=4x+22y=4x+2 describe the same line, giving infinitely many common points.

A general two-variable linear system has a unique solution when its two independent constraints are not parallel. In coefficient form a1x+b1y=c1a_1x+b_1y=c_1, a2x+b2y=c2a_2x+b_2y=c_2, the determinant a1b2−a2b1a_1b_2-a_2b_1 being nonzero identifies that case. The matrix chapter will derive the relationship through elimination and extend it to larger systems.

A fitted line is a modeling choice

If measurements are (0,5),(2,10),(4,12)(0,5),(2,10),(4,12), their two successive slopes are 2.52.5 and 1. They do not lie on one exact line. A modeler might use a straight line as an approximation, but its deviations and intended range must then be considered. The statistics course develops least-squares fitting and uncertainty; here we distinguish the exact algebra of a proposed line from evidence that a line is a useful representation.

Exercises

  1. Construct the line through (1,7)(1,7) and (5,19)(5,19).
  2. Compare A(x)=20+2xA(x)=20+2x and B(x)=5+5xB(x)=5+5x on x≥0x\ge0.
  3. Solve x+y=9x+y=9 and 2x−y=32x-y=3.
  4. Classify x+2y=4x+2y=4 and 2x+4y=102x+4y=10.
  5. An account starts with 80 units and gains 6 each week without compounding. Write its balance and find when it reaches 200.
  6. Do (0,1),(1,3),(2,6)(0,1),(1,3),(2,6) lie on one line? Justify from rates.
Worked solutions
  1. The slope is 12/4=312/4=3 and intercept 4, so y=3x+4y=3x+4.
  2. Equality occurs at x=5x=5, cost 30. B is cheaper before 5 and A after 5, since A−B=15−3xA-B=15-3x.
  3. Adding gives 3x=123x=12, hence x=4x=4 and y=5y=5.
  4. Doubling the first would give right side 8, while the second requires 10. The system is inconsistent.
  5. B(n)=80+6nB(n)=80+6n; equality with 200 gives n=20n=20 weeks.
  6. Successive unit-interval rates are 2 and 3, so no exact line passes through all three.
Your study progress · Optional

Keep your place

Mark this lesson complete after you've read it, attempted its exercises, and explained its central idea in your own words.

Progress is not saved unless you choose to mark the lesson complete.

Saved only in this browser's local storage. No required account, server transmission, or analytics. You can reset your saved progress on the course page. Clearing browser data also clears the record.