Algebraic Models
Algebraic Models
Often economic models (or parts of models) are expressed in terms of mathematical functions. What is a function? A function describes a relationship. Sometimes the relationship is a definition. For example (using words), your professor is Adam Smith. This could be expressed as Professor = Adam Smith. Or Friends = Bob + Shawn + Margaret.
Often in economics, functions describe cause and effect. The variable on the left-hand side is what is being explained (“the effect”). On the right-hand side is what is doing the explaining (“the causes”). For example, suppose your GPA was determined as follows:
\(\text{GPA = 0.25 × combined_SAT + 0.25 × class_attendance + 0.50 × hours_spent_studying}\)
This equation states that your GPA depends on three things: your combined SAT score, your class attendance, and the number of hours you spend studying. It also says that study time is twice as important (0.50) as either combined_SAT score (0.25) or class_attendance (0.25). If this relationship is true, how could you raise your GPA? By not skipping class and studying more. Note that you cannot do anything about your SAT score, since if you are in university, you have (presumably) already taken the SATs.
Of course, economic models express relationships using economic variables, like Budget = money_spent_on_econ_books + money_spent_on_music, assuming that the only things you buy are economics books and music.
Most of the relationships we use in this course are expressed as linear equations of the form:
\(\text{y = b + mx}\)
Expressing Equations Graphically
Graphs are useful for two purposes. The first is to express equations visually, and the second is to display statistics or data. This section will discuss expressing equations visually.
To a mathematician or an economist, a variable is the name given to a quantity that may assume a range of values. In the equation of a line presented above, x and y are the variables, with x on the horizontal axis and y on the vertical axis, and b and m representing factors that determine the shape of the line. To see how this equation works, consider a numerical example:
\(\text{y = 9 + 3x}\)
In this equation for a specific line, the b term has been set equal to 9 and the m term has been set equal to 3. This table shows the values of x and y for this given equation. This figure shows this equation, and these values, in a graph. To construct the table, just plug in a series of different values for x, and then calculate what value of y results. In the figure, these points are plotted and a line is drawn through them.
Values for the Slope Intercept Equation
| x | y |
|---|---|
| 0 | 9 |
| 1 | 12 |
| 2 | 15 |
| 3 | 18 |
| 4 | 21 |
| 5 | 24 |
| 6 | 27 |
Slope and the Algebra of Straight Lines
This line graph has x on the horizontal axis and y on the vertical axis. The y-intercept—that is, the point where the line intersects the y-axis—is 9. The slope of the line is 3; that is, there is a rise of 3 on the vertical axis for every increase of 1 on the horizontal axis. The slope is the same all along a straight line.
This example illustrates how the b and m terms in an equation for a straight line determine the shape of the line. The b term is called the y-intercept. The reason for this name is that, if x = 0, then the b term will reveal where the line intercepts, or crosses, the y-axis. In this example, the line hits the vertical axis at 9. The m term in the equation for the line is the slope. Remember that slope is defined as rise over run; more specifically, the slope of a line from one point to another is the change in the vertical axis divided by the change in the horizontal axis. In this example, each time the x term increases by one (the run), the y term rises by three. Thus, the slope of this line is three. Specifying a y-intercept and a slope—that is, specifying b and m in the equation for a line—will identify a specific line. Although it is rare for real-world data points to arrange themselves as an exact straight line, it often turns out that a straight line can offer a reasonable approximation of actual data.
Interpreting the Slope
The concept of slope is very useful in economics, because it measures the relationship between two variables. A positive slope means that two variables are positively related; that is, when x increases, so does y, or when x decreases, y decreases also. Graphically, a positive slope means that as a line on the line graph moves from left to right, the line rises. The length-weight relationship, shown in this figure later in this Appendix, has a positive slope. We will learn in other tutorials that price and quantity supplied have a positive relationship; that is, firms will supply more when the price is higher.
A negative slope means that two variables are negatively related; that is, when x increases, y decreases, or when x decreases, y increases. Graphically, a negative slope means that, as the line on the line graph moves from left to right, the line falls. The altitude-air density relationship, shown in this figure later in this appendix, has a negative slope. We will learn that price and quantity demanded have a negative relationship; that is, consumers will purchase less when the price is higher.
A slope of zero means that there is no relationship between x and y. Graphically, the line is flat; that is, zero rise over the run. This figure of the unemployment rate, shown later in this appendix, illustrates a common pattern of many line graphs: some segments where the slope is positive, other segments where the slope is negative, and still other segments where the slope is close to zero.
The slope of a straight line between two points can be calculated in numerical terms. To calculate slope, begin by designating one point as the “starting point” and the other point as the “end point” and then calculating the rise over run between these two points. As an example, consider the slope of the air density graph between the points representing an altitude of 4,000 meters and an altitude of 6,000 meters:
Rise: Change in variable on vertical axis (end point minus original point)
\(\begin{array}{rcl}& \text{=}& \text{0.100 – 0.307}\\ & \text{=}& \text{–0.207}\end{array}\)
Run: Change in variable on horizontal axis (end point minus original point)
\(\begin{array}{ccl}& \text{=}& \text{6,000 – 4,000}\\ & \text{=}& \text{2,000}\end{array}\)
Thus, the slope of a straight line between these two points would be that from the altitude of 4,000 meters up to 6,000 meters, the density of the air decreases by approximately 0.1 kilograms/cubic meter for each of the next 1,000 meters
Suppose the slope of a line were to increase. Graphically, that means it would get steeper. Suppose the slope of a line were to decrease. Then it would get flatter. These conditions are true whether or not the slope was positive or negative to begin with. A higher positive slope means a steeper upward tilt to the line, while a smaller positive slope means a flatter upward tilt to the line. A negative slope that is larger in absolute value (that is, more negative) means a steeper downward tilt to the line. A slope of zero is a horizontal flat line. A vertical line has an infinite slope.
Suppose a line has a larger intercept. Graphically, that means it would shift out (or up) from the old origin, parallel to the old line. If a line has a smaller intercept, it would shift in (or down), parallel to the old line.
Solving Models with Algebra
Economists often use models to answer a specific question, like: What will the unemployment rate be if the economy grows at 3% per year? Answering specific questions requires solving the “system” of equations that represent the model.
Suppose the demand for personal pizzas is given by the following equation:
\(\text{Qd = 16 – 2P}\)
where Qd is the amount of personal pizzas consumers want to buy (i.e., quantity demanded), and P is the price of pizzas. Suppose the supply of personal pizzas is:
\(\text{Qs = 2 + 5P}\)
where Qs is the amount of pizza producers will supply (i.e., quantity supplied).
Finally, suppose that the personal pizza market operates where supply equals demand, or
\(\text{Qd = Qs}\)
We now have a system of three equations and three unknowns (Qd, Qs, and P), which we can solve with algebra:
Since Qd = Qs, we can set the demand and supply equation equal to each other:
\(\begin{array}{rcl}\text{Qd}& \text{=}& \text{Qs}\\ \text{16 – 2P}& \text{=}& \text{2 + 5P}\end{array}\)
Subtracting 2 from both sides and adding 2P to both sides yields:
\(\begin{array}{rcl}\text{16 – 2P – 2}& \text{=}& \text{2 + 5P – 2}\\ \text{14 – 2P}& \text{=}& \text{5P}\\ \text{14 – 2P + 2P}& \text{=}& \text{5P + 2P}\\ \text{14}& \text{=}& \text{7P}\\ \cfrac{\text{14}}{\text{7}}& \text{=}& \cfrac{\text{7P}}{\text{7}}\\ \text{2}& \text{=}& \text{P}\end{array}\)
In other words, the price of each personal pizza will be $2. How much will consumers buy?
Taking the price of $2, and plugging it into the demand equation, we get:
\(\begin{array}{rcl}\text{Qd}& \text{=}& \text{16 – 2P}\\ & \text{=}& \text{16 – 2(2)}\\ & \text{=}& \text{16 – 4}\\ & \text{=}& \text{12}\end{array}\)
So if the price is $2 each, consumers will purchase 12. How much will producers supply? Taking the price of $2, and plugging it into the supply equation, we get:
\(\begin{array}{rcl}\text{Qs}& \text{=}& \text{2 + 5P}\\ & \text{=}& \text{2 + 5(2)}\\ & \text{=}& \text{2 + 10}\\ & \text{=}& \text{12}\end{array}\)
So if the price is $2 each, producers will supply 12 personal pizzas. This means we did our math correctly, since Qd = Qs.
Solving Models with Graphs
If algebra is not your forte, you can get the same answer by using graphs. Take the equations for Qd and Qs and graph them on the same set of axes as shown in this figure. Since P is on the vertical axis, it is easiest if you solve each equation for P. The demand curve is then P = 8 – 0.5Qd and the demand curve is P = –0.4 + 0.2Qs. Note that the vertical intercepts are 8 and –0.4, and the slopes are –0.5 for demand and 0.2 for supply. If you draw the graphs carefully, you will see that where they cross (Qs = Qd), the price is $2 and the quantity is 12, just like the algebra predicted.
Supply and Demand Graph
The equations for Qd and Qs are displayed graphically by the sloped lines.
We will use graphs more frequently in this book than algebra, but now you know the math behind the graphs.
This lesson is part of:
Introduction to Economics