Skip to main content

Writing Linear Functions

The starting fee is missing from a receipt, but you know the cost at two durations. Can you reconstruct the shop's rule? We will build a line from two points, write it from a point and a rate, and use the same idea to describe a sequence.

  • Linear function: A function with constant slope, writable as y=mx+by=mx+b.

Core ideas​

Two points​

Compute slope from the change between the points, then use either point to find the intercept. Through (1,4)(1,4) and (3,8)(3,8), the line is y=2x+2y=2x+2.

A point and a slope​

A slope of 22 through (1,4)(1,4) gives y−4=2(x−1)y-4=2(x-1). The point-slope form directly states the rate and a known point.

Arithmetic sequences​

Each step adds the same difference. Starting at 44 with step 22 gives an=4+2(n−1)a_n=4+2(n-1) for integers n≥1n\ge1.

Essential example​

Suppose a rental costs 9 dollars at two hours and 15 dollars at five hours. Assume the price changes at a fixed rate. The slope is

m=15−95−2=2.m=\frac{15-9}{5-2}=2.

Using C=mh+bC=mh+b and the first receipt gives 9=2(2)+b9=2(2)+b, so b=5b=5. The reconstructed formula is C=5+2hC=5+2h. The other receipt checks it because 5+2(5)=155+2(5)=15.

This reconstruction uses the assumption of a constant rate. Two points with different horizontal coordinates determine one line. Other curves can also pass through those points, so the receipts alone do not establish that a line is the right model.

Use a point and a rate​

Suppose a tank contains 12 liters at time t=3t=3 minutes and gains 4 liters per minute. Measure time in minutes and volume in liters. Relative to the known point,

V−12=4(t−3).V-12=4(t-3).

The difference in volume equals the rate times the difference in time. Expanding gives V=4tV=4t. When the constant-rate model applies at t=5t=5, it predicts 20 liters. If the tank has a capacity of 24 liters, the same rule stops applying after t=6t=6 unless overflow is included in the model.

Use the line at discrete inputs​

A row of seats starts with 12 seats in row 1, and each next row has four more. For integer row numbers n≥1n\ge1,

an=12+4(n−1).a_n=12+4(n-1).

Row 5 has 2828 seats. The sequence follows a line at whole-number inputs. The slope of the associated line is four seats per row, while a1a_1 is the first actual row count. The extrapolated value at row zero belongs only to the extended algebraic line.

When the intercept is an extrapolation​

A service charges 20 dollars at two hours and 35 dollars at five hours. If a linear rule is appropriate on that interval, its rate is (35−20)/(5−2)=5(35-20)/(5-2)=5 dollars per hour. Using the point at two hours gives C−20=5(h−2)C-20=5(h-2), or C=5h+10C=5h+10. The extended line predicts 10 dollars at time zero. To interpret that intercept as a real fee, the same pricing rule must also apply at time zero. The two quoted prices alone establish a line through the given points.

Keep and continue​

Keep the rules C=5+2hC=5+2h and C=3hC=3h. Next, solve simultaneous conditions using a graph and two algebraic methods.

Course outline

Previous: Slope and Intercepts

Next: Solving Systems of Equations