MATH 150 · Mathematics for Economics I
Lines, Slopes and Intercepts
Read and build straight lines, interpret slope and intercept with units, and see how budget and demand lines tell economic stories.
Key takeaways
- A straight line can be written y = mx + b, where m is the slope and b is the value of y when x is zero.
- Slope measures how much y changes when x rises by one unit, and it always carries units.
- Two points are enough to determine a line, since you can compute the slope and then solve for the intercept.
- Economists often draw price on the vertical axis, so the slope of a drawn demand curve is the inverse of the slope of the demand equation.
- A change in a parameter shifts or rotates a line, while a change in the variable on an axis moves you along it.
Lena's taco truck has a mystery. Her cousin Ravi says every extra dollar on the price of a taco plate costs her ten customers a day. Her accountant says her daily costs "start at $150 and climb $4 a plate." Both are describing something they could draw with a ruler.
Lena draws the first one. It slopes downhill. She draws the second. It slopes uphill and does not start at zero. Suddenly two sentences of shop talk are two pictures she can lay on top of each other, extend, compare and question.
A straight line is the simplest relationship between two quantities that is still interesting. Two numbers pin it down completely. This lesson is about those two numbers, what they mean and how to find them.
The grid and the points
Start with two number lines that cross at right angles. The horizontal one is usually called the x axis, and the vertical one the y axis. Where they cross is the origin, the point where both are zero.
Any location on the grid is a pair of numbers (x, y). The first says how far to go sideways, the second how far to go up. The point (3, 7) means three to the right and seven up. On Lena's cost graph, x is plates sold and y is dollars of cost, so (10, 190) means that selling 10 plates goes with $190 of cost.
An equation in two variables is a filter. Some points make it true and the rest do not. The graph of the equation is the collection of all the points that pass. For a linear equation, those points form a straight line.
Slope: the price of one more step
The slope of a line is how much y changes for each one-unit increase in x. To compute it from two points, divide the change in y by the change in x.
slope = Δy / Δx = (y₂ − y₁) / (x₂ − x₁) The symbol Δ means "change in." People also say slope is "rise over run."
Lena's accountant gives two data points: 10 plates cost $190 in total, and 30 plates cost $270.
slope = (270 − 190) / (30 − 10) = 80 / 20 = 4 The slope is $4 per plate. Notice the units. Slope is not just "4." It is dollars of cost per plate. In economics this particular slope has a name, marginal cost: the added cost of one more unit.
A positive slope climbs from left to right. A negative slope falls. A slope of zero is a flat line: y does not respond to x at all. A vertical line has no slope that you can compute, because Δx is zero and dividing by zero is not allowed.
A vertical line has an undefined slope, because x never changes.
The size of the slope tells you about steepness, but be careful. Steepness on the page depends on how the axes are scaled. Squash the horizontal axis and any line looks dramatic. Always read the numbers.
Intercepts: where the line meets the axes
The y-intercept is the value of y when x is zero. It is where the line crosses the vertical axis. The x-intercept is the value of x when y is zero.
Lena knows the slope is 4, and the line passes through (10, 190). The general form of a line is
y = mx + b where m is the slope and b is the y-intercept. Plug in what you know:
190 = 4 × 10 + b
b = 150 So cost = 150 + 4q. The intercept, $150, is the cost of opening the truck even if nobody buys a thing: the parking permit and the cook's guaranteed pay, say. Economists call that fixed cost. The slope is the added cost per plate.
From the first marked point to the second, cost rises $80 over 20 plates.
Check the second point: 150 + 4 × 30 = 270. Good. Two points were enough to fix the whole line.
Point-slope form
If you know a slope and one point, you can write the line directly:
y − y₁ = m(x − x₁) With m = 4 and the point (30, 270), that is y − 270 = 4(x − 30). Expand it and you get y = 4x + 150 again. Use whichever form saves you work. The algebra in solving linear equations turns one into the other.
The demand line and the axis flip
Ravi's claim was this: at a price of $10, Lena sells 60 plates a day, and each extra dollar loses 10 plates. So the quantity equation is
q = 160 − 10p Check: 160 − 10 × 10 = 60. The slope of q with respect to p is −10 plates per dollar.
But economists draw p on the vertical axis. To get the equation of the line as drawn, solve for p:
10p = 160 − q
p = 16 − 0.1q Now the slope is −0.1 dollars per plate. The two slopes are reciprocals, which means one is 1 divided by the other: 1 / (−10) = −0.1. Both are correct. They answer different questions. "How many plates do I lose if I add a dollar?" gets −10. "How much must I cut price to sell one more plate?" gets −0.10.
The intercepts have meanings too. The price intercept, $16, is the price at which sales fall to zero, at least according to the line. The quantity intercept, 160, is how many plates would go out at a price of zero.
A worked example: Lena's lunch budget for supplies
Lena has $120 a week to spend on two things: limes at $3 a bag and tortillas at $6 a pack. A budget line shows every combination that uses the money exactly.
Let L be bags of limes and T be packs of tortillas.
3L + 6T = 120 Step 1: Find the intercepts. If she buys no tortillas, 3L = 120, so L = 40. If she buys no limes, 6T = 120, so T = 20.
Step 2: Put limes on the horizontal axis and solve for T.
6T = 120 − 3L
T = 20 − 0.5L Step 3: Interpret the slope. The slope is −0.5. One more bag of limes means giving up half a pack of tortillas. That is the opportunity cost of limes, an idea introduced in scarcity and opportunity cost. It equals the price ratio: 3 / 6.
Step 4: Check a point. At L = 16, T = 20 − 8 = 12. Spending is 3 × 16 + 6 × 12 = 48 + 72 = $120.
More money shifts the line out without changing its slope.
Step 5: Change something. If the budget rises to $150, the line becomes T = 25 − 0.5L. The intercept rose and the slope stayed put, so the new line is parallel to the old. If instead the price of limes rose to $4, the line would be T = 20 − (2/3)L. The tortilla intercept stays at 20, but the line rotates inward and the lime intercept drops to 30.
Shifts, rotations and movements
This distinction will follow you through the whole subject.
| What changes | What happens to the line |
|---|---|
| The variable on an axis | You move along the same line |
| The intercept only | The line shifts to a parallel position |
| The slope only | The line rotates around its intercept |
When the price of a taco plate changes, Lena moves along her demand line. When a new office tower opens nearby and brings 40 more hungry people at every price, the whole line shifts: q = 200 − 10p. The same logic drives shifting curves and predicting prices.
Two lines with the same slope and different intercepts never meet. Two lines with different slopes meet at exactly one point, and finding that point is the job of the next lesson on systems of equations.
The common mistake: confusing slope with level
A line can be high and falling, or low and rising. The slope describes change, not size.
Suppose two trucks have costs C = 500 + 2q and C = 100 + 6q. Which is "more expensive"? At 20 plates, the first costs $540 and the second $220. At 200 plates, the first costs $900 and the second $1,300. The first has the higher fixed cost, and the second has the higher cost per extra plate. They cross where 500 + 2q = 100 + 6q, which gives q = 100.
A related slip is computing slope with the points in mixed order. If you start with y₂ on top, you must start with x₂ on the bottom. Mixing them flips the sign and turns a falling line into a rising one. Sketch the two points first. Your eyes will tell you which sign to expect.
Finally, do not assume the world is straight just because a line is convenient. Lena's first extra dollar might lose 3 customers while her fifth loses 20. A line is often a fine approximation over a small range, and a poor one over a large range.
Words to know
Origin the point where both axes are zero.
Slope the change in the vertical variable for each one-unit increase in the horizontal variable.
Intercept the value where a line crosses an axis.
Linear function a rule of the form y = mx + b, whose graph is a straight line.
Marginal cost the added cost of producing one more unit.
Reciprocal the number you get by dividing 1 by a given number.
Budget line all the combinations of two goods that use up a given amount of money.
Check yourself
- Find the slope of the line through (2, 9) and (6, 21).
- Write the equation of that line in the form y = mx + b.
- A demand equation is q = 90 − 3p. What is the slope when p is drawn on the vertical axis?
- A $60 budget buys coffee at $5 and muffins at $3. With coffee on the horizontal axis, give the slope and both intercepts.
- Cost is C = 80 + 7q. Explain what the 80 and the 7 mean.
- Explain the difference between moving along a demand line and shifting it.
Show the answers
- (21 − 9) / (6 − 2) = 12 / 4 = 3.
- 9 = 3 × 2 + b gives b = 3, so y = 3x + 3.
- Solving gives p = 30 − q/3, so the slope is −1/3 dollars per unit.
- The slope is −5/3, the coffee intercept is 60 / 5 = 12, and the muffin intercept is 60 / 3 = 20.
- The 80 is the cost when nothing is produced, and the 7 is the added cost of each additional unit.
- A change in the good's own price moves you along the line, while a change in something else, such as the number of nearby workers, moves the whole line.