Piecewise linear models
分段一次函数模型
How do you build a piecewise linear model?
Tiered pricing needs a separate linear rule on each interval; check that the pieces meet at the boundaries.
Sign in to read the whole lesson, with 1 interactive aid, 13 exercises
Sign in / Sign upMastery goals
- Can build a piecewise linear function for a tiered-pricing or similar context
- Can answer questions about the context using the piecewise model
Many everyday problems involve two variables that are related by exactly a linear function. Tackling such a problem with a linear function usually goes in three moves: recast the real situation as a question about a linear function, use the given conditions to pin down its formula, and then reason with the graph and properties of the function to reach the answer.
Example 1
The price of a kind of peanuts is yuan/kg. If you buy no more than kg at a time, the price stays the same; if you buy more than kg, the part above kg is sold at off.
(1) Write the formula for the amount paid in terms of the amount bought, and draw the graph;
(2) How much must you pay for kg of peanuts bought at once?
Analysis: What you pay depends on the price per kilogram, and that price changes with how much you buy: up to kg it is worked out one way, beyond kg another. So both the formula and the graph must handle and separately.
Solution: (1) Let the amount bought be kg and the amount paid yuan.
For the price is yuan/kg, so ;
for , kg are priced at yuan/kg and the other kg (the part above kg) at yuan/kg ( off), so
The graph is shown in the figure.
(2) Since , . So kg of peanuts bought at once costs yuan.
The formula can also be written together as
You should find that applies for and for ; beyond kg each extra kilogram costs only yuan, so the graph becomes less steep.
Related points
All points in this topicCite this page: Piecewise linear models · KnowledgeTree (知识树), https://www.knowledgetree.world/en/kp/KP000355