Linear functions and straight-line graphs
The graph of y = mx + c is a straight line. m is the slope (rate of change); c is the y-intercept (value when x is 0).
Straight-line formulas
Reading the slope in business
| Slope | Line | Example |
|---|---|---|
| m > 0 | Rises left to right | Total cost rises with output |
| m < 0 | Falls left to right | Demand: higher price, fewer sales |
| m = 0 | Horizontal | Fixed cost: same at any output |
| Undefined | Vertical | A fixed capacity limit, x = 500 |
The line through two points
Find the equation of the line through (2, 5) and (6, 17).
- m = (17 − 5) ÷ (6 − 2) = 12 ÷ 4 = 3.
- Point-slope form with (2, 5): y − 5 = 3(x − 2).
- y − 5 = 3x − 6, so y = 3x − 1.
- Check with (6, 17): 3(6) − 1 = 17. ✓
y = 3x − 1
A cost line from two data points
A Negombo printing shop's total cost is Rs. 16,000 for 100 wedding cards and Rs. 22,000 for 250 cards. Assuming a linear cost function, find it, interpret it, and find the cost of 400 cards.
- Points (100, 16,000) and (250, 22,000).
- m = (22,000 − 16,000) ÷ (250 − 100) = 6,000 ÷ 150 = 40.
- C − 16,000 = 40(x − 100), so C = 40x − 4,000 + 16,000 = 40x + 12,000.
- Interpretation: variable cost Rs. 40 per card (slope); fixed cost Rs. 12,000 (intercept).
- C(400) = 40 × 400 + 12,000 = 16,000 + 12,000 = 28,000.
C(x) = 40x + 12,000; 400 cards cost Rs. 28,000.
Intercepts of a budget line
A firm spends exactly Rs. 100,000 on advertising: radio spots cost Rs. 2,000 each (x) and newspaper adverts Rs. 5,000 each (y). Find the intercepts and slope of the budget line.
- Budget line: 2,000x + 5,000y = 100,000.
- x-intercept (y = 0): x = 100,000 ÷ 2,000 = 50 radio spots.
- y-intercept (x = 0): y = 100,000 ÷ 5,000 = 20 adverts.
- Slope = −2,000 ÷ 5,000 = −0.4, so y = 20 − 0.4x.
- Meaning: each extra radio spot means giving up 0.4 of a newspaper advert.
Intercepts (50, 0) and (0, 20); slope −0.4.
A Sri Lankan printing shop or catering business can split its costs into a fixed part (rent, salaries) and a variable part per unit. That split is just the intercept and the slope of a straight line.
Short answer: “Find the slope of the line through (2, 3) and (6, 11).” (11 − 3) ÷ (6 − 2) = 8 ÷ 4 = 2.
Structured question: “Cost is Rs. 16,000 for 100 cards and Rs. 22,000 for 250. Find the linear cost function and interpret it.” m = 40, C = 40x + 12,000: Rs. 40 variable per card, Rs. 12,000 fixed.
Short answer: “Find the x- and y-intercepts of 3x + 4y = 24.” x = 8 (when y = 0) and y = 6 (when x = 0).
Slope = rise ÷ run. In a cost line, slope = variable cost per unit and intercept = fixed cost.