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 records these contributions separately, and comparing two services becomes an intersection problem.
Equal input changes produce equal output changes
For ,
The output change depends on the increment but not on the starting input . Dividing by nonzero gives the same average rate on every interval.
Strictly, is a linear map and is affine when . 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 with outputs , the line interpolating them has slope and intercept . 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 and , with dollars as outputs and kilometres as nonnegative inputs. Equality gives
Both cost 24 dollars there. Their difference is , so B is cheaper for and A is cheaper for . 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 . 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 are the counts, the two constraints are
Substitute to obtain , so and . 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 . 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 and represent parallel lines. Equating them gives , so there is no common solution. The equations and 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 , , the determinant 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 , their two successive slopes are 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
- Construct the line through and .
- Compare and on .
- Solve and .
- Classify and .
- An account starts with 80 units and gains 6 each week without compounding. Write its balance and find when it reaches 200.
- Do lie on one line? Justify from rates.
Worked solutions
- The slope is and intercept 4, so .
- Equality occurs at , cost 30. B is cheaper before 5 and A after 5, since .
- Adding gives , hence and .
- Doubling the first would give right side 8, while the second requires 10. The system is inconsistent.
- ; equality with 200 gives weeks.
- Successive unit-interval rates are 2 and 3, so no exact line passes through all three.
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.