Chari Boru Bariso's Econ Guidses
Chari Boru Bariso's Econ Guidses
Chari Boru Bariso's Econ Guidses
wxmx 1 / 36
Ted Woollett
https://web.csulb.edu/~woollett/
Feb., 2021
➔ [fpprintprec, ratprint];
(%o1) [ 5 , false ]
➔ solns : %[1];
y x2 − 1
(solns) [ a = − ,b=− ]
x y
➔ at (b, %);
x2 − 1
(%o5) −
y
➔ b : at (b,solns);
x2 − 1
(b) −
y
➔ b;
x2 − 1
(%o7) −
y
➔ b (x,y) := at (b,solns);
(%o8) b ( x , y ) := at ( b , solns )
➔ b(2,3);
x2 − 1
(%o9) −
y
➔ b(2,3);
x2 − 1
(%o11) −
y
Dowling02fit.wxmx 3 / 36
➔ b(2,3);
(%o13) − 1
➔ b(x,y);
x2 − 1
(%o14) −
y
but you can't subsequently change the definition of 'solns' with this method.
If we have the symbol b assigned as the expression above, we can define b(x,y)
by using the double single quote ('') in front of b:
➔ b(x,y) := ''b;
x2 − 1
(%o15) b ( x , y ) := −
y
➔ b(2,3);
(%o16) − 1
If we don't have the bound symbol b as above, we can use the Maxima function:
define (func, expr) together with 'expr' being an 'at' expression.
➔ b(2,3);
(%o18) − 1
➔ b;
x2 − 1
(%o19) −
y
Dowling02fit.wxmx 4 / 36
➔ b(x, y);
x2 − 1
(%o20) −
y
➔ [a,b];
x2 − 1
(%o21) [ a , − ]
y
➔ kill(all)$
➔ b(2,3);
(%o1) b ( 2 , 3 )
➔ [a,b,solns];
(%o2) [ a , b , solns ]
➔ at (Energy, Values);
(%o5) W = 4.6296 10 5
➔ kill(all)$
An isocost line represents the different combinations of two inputs or factors of production
that can be purchased with a given expenditure.
In isocost analysis, the individual prices and the expenditure are initially held constant;
only the different combinations of inputs (K, L) are allowed to change. The function can then
be graphed by expressing one variable in terms of the other, as seen in the following
example and Problems 2.5 and 2.6.
Now express this in the canonical straight line form y = m*x + b, with K on the y-axis, L on the
x-axis.
➔ soln, expand;
E L pl
(%o3) [ K = − ]
pk pk
When L = 0, K = E/pk (all the expenditure goes for capital which is the "y intercept" b.
The slope (rise over run) is m = - pl/pk. As L increases, the number of units of capital K
decreases in a straight line (an isocost line). If we choose two different expenditures E,
we get two parallel lines (same slope).
====================================================================
Prob. 2.5
A person has $120 to spend on two goods (X, Y) whose respective prices are $3 and $5.
(a) Draw a budget line showing all the different combinations of the two goods that can be
bought with the given budget (B). What happens to the original budget line (b) if the budget
falls by 25 percent, (c) if the price of X doubles, (d) if the price of Y falls to 4?
First find the reduced budget Br, assuming Br is a 25% reduction from 120.
➔ Br : at (Br, Bsoln);
(Br) 90
Consider the general case: start with the budget eqn, find y(x,px,py,B), and xmax, ymax
solutions for arbitrary x, px, py, B.
we are forcing Maxima to do some work here, even though we could define
this function easily without any help.
➔ y(10,3, 5, 120);
(%o9) 18
➔ soln;
px x − B
(%o10) [ y = − ]
py
when zero units of good x are purchased, the budget can be spent
on good y, which defines ymax.
=======================================
(%t17)
(%o17)
Dowling02fit.wxmx 8 / 36
Obviously, the more units of X purchased, the less units of Y, given a fixed budget.
➔ wxdraw2d ( title = "Original and Reduced Budget Lines", xlabel = "x", ylabel = "y",
yrange = [0, 1.1*ymax0], grid = [2,2],
key = "Case a: B = 120 ", explicit (y(x, 3, 5, 120), x, 0, 1.1* xmax0 ),
color = red, key = "Case b: B = 90 ", explicit (y(x, 3, 5, 90), x, 0, 1.1*xmax0 ) )$
(%t18)
With a reduced budget, less units of both x and y can be purchased, but the slope
(rise over run) of the budget line remains the same.
-----------------------------------------------------------------------------
Case c: price per unit of X doubles ($3 per unit of X to $6 per unit of X)
Dowling02fit.wxmx 9 / 36
➔ wxdraw2d ( title = "Original and Double X Price Budget Lines", xlabel = "x", ylabel = "y",
yrange = [0, 1.1*ymax0], grid = [2,2],
key = "Case a: px = 3", explicit (y(x, 3, 5, 120), x, 0, 1.1*xmax0 ),
color = red, key = "Case c: px = 6 ", explicit (y(x, 6, 5, 120), x, 0, 1.1*xmax0 ) )$
(%t19)
➔ wxdraw2d ( title = "Original and Decreased Y Price Budget Lines", xlabel = "x", ylabel = "y",
yrange = [0, 1.1*ymax0], grid = [2,2],
key = "Case a: py = 5 ", explicit (y(x, 3, 5, 120), x, 0, 1.1*xmax0 ),
color = red, key = "Case d: py = 4 ", explicit (y(x, 3, 4, 120), x, 0, 1.1*xmax0 ) )$
(%t20)
Dowling02fit.wxmx 10 / 36
An example is
Substituting p = 3 into Qs or Qd then gives the equilibrium quantity (4) with a per unit
price of 3.
=========================================================
Prob 2.1.
A complete demand function is given by the equation
Qd = - 30 P + 0.05 Y + 2 Pr + 4T
where P is the price of the good, Y is income, Pr is the price of a related good (here a
substitute), and T is taste.
Since the complete function contains five different variables (Qd, P, Y, Pr, T), it cannot
be graphed as is. In ordinary demand analysis, however, it is assumed that all the
independent variables except price are held constant so that the effect of a change in
price on the quantity demanded can be measured independently of the
influence of other factors, or ceteris paribus ("all other things being equal" or "with
other conditions remaining the same"). If the variables (Y, Pr,T) are held constant, the
we can plot Qd vs. P.
-------------------------------------------------------------------------
Dowling02fit.wxmx 11 / 36
(a) Draw the graph for the demand function in Problem 2.1, assuming Y = 5000, Pr = 25,
and T = 30.
(b) What does the typical demand function drawn in part (a) show?
(c) What happens to the graph if the price of the good changes from 5 to 6?
(d) What happens if any of the other variables change? For example, if income
increases to 7400?
---------------------------
a) By adding the new data to the equation in Problem 2.1, the function is easily graphable.
Define an expression Qd_a to be the price dependent quantity demanded for the given
values of Y, Pr, and T.
➔ qmax0 : Qd_a, P = 0;
(qmax0) 420.0
If we choose to put Qd_a on the vertical axis and P on the horizontal axis,
Dowling02fit.wxmx 12 / 36
(%t28)
(%o28)
In Economics supply and demand analysis, it is customary to place price P on the vertical
axis and Qd on the horizontal axis, even though P is the independent variable and Qd is
the dependent variable. To construct such a plot, we then need Pd(Q), price as a function
of quantity Q, to make the plot in Maxima. Pd(Q) is the so-called "inverse demand function",
or "the marginal value curve".
➔ Qd_a;
(%o29) 420.0 − 30 P
(%t32)
(%o32)
b) The demand function graphed in part (a) shows all the different quantities of the good
that will be demanded at different prices, assuming a given level of income, taste, and
price of substitutes (here 5000, 30, 25) which are not allowed to change.
c) If nothing changes but the price of the good, the graph remains exactly the same since
the graph indicates the different quantities that will be demanded at all the possible prices.
A simple change in the price of the good occasions a movement along the curve which is
called a "change in quantity demanded." When the price goes from 5 to 6, the quantity
demanded falls from 270 to 240 ), a movement from A to B on the curve.
A = (P = 5, Q = 270) → B = (P = 6, Q = 240).
➔ Qd_a;
(%o33) 420.0 − 30 P
(%t35)
(%o35)
(%o38)
----------------------------------------------------------------------------
d)
If any of the other variables change, there will be a shift in the curve. This is called a
"change in demand" because it results in a totally new demand function (and curve)
in response to the changed conditions. If income increases to 7400, the new demand
function becomes Qd = - 30P + 540. This is graphed as a (red) dashed line.
(%o44)
--------------------------------------------------------------------------------------
Prob 2.4
Ans: For these values, the last two terms cancel, the second term = 80, so Qd = - 4 P + 80.
When P = 0, Qd = 80 = Qmax. When Qd = 0, P = 20 = Pmax
Dowling02fit.wxmx 17 / 36
(%t45)
(%o45)
Ans:
The related good Pr has a negative coefficient. This means that a rise in the price of the
related good will lead to a decrease in demand for the original good. The related good
is, by definition, a "complementary good. "
(c) What happens if T (taste) increases to 8, indicating greater preference for the good,
independent of the price?
Ans: The straight line curve shifts to a higher quantity demanded, no matter the price:
the slope remains the same. Qd = - 4 P + 120, Qmax = 120, Pmax = 30.
Dowling02fit.wxmx 18 / 36
(%t46)
(%o46)
(d) Construct the graph along the traditional economic lines with P on the vertical axis
and Q on the horizontal axis.
Ans: In both the original and modified cases, solve for P(Q);
➔ [soln1, soln2] : [ solve ( Q = - 4*P1 + 80, P1), solve ( Q = - 4*P2 + 120, P2) ];
Q − 80 Q − 120
(%o47) [ [ P1 = − ] , [ P2 = − ]]
4 4
(%t49)
(%o49)
Y = C + I + G + (X - Z)
--------------------------------------------
Example 3 considers a "two sector economy" in which only consumption (C) and
investment are taken into account. We assume Y = C + I, with C = C0 + b Y,
and I = I0 = constant. Solving for Y gives
MPC is the key determinant of the Keynesian multiplier, which describes the
effect of increased investment or government spending as an economic stimulus.
C0 and I0 are "autonomous expenditures", since they are constant and are not
affected by the size of the income Y. The factor 1/(1-b) is the "autonomous expenditure
multiplier" which is a measure of the multiple effect of each dollar of autonomous
spending on the equilibrium level of income. Y is an endogenous variable, and
C0, I0, and b are exogenous variables.
----------------------------------------------------------------------------
Prob. 2.7
➔ wxdraw2d ( key_pos = top_left, key = "C = 50 + 0.8*Y ", yrange = [0, 600],
explicit (50 + 0.8*Y, Y, 0, 600), ylabel = "C", xlabel = "Y", grid = [2,2] );
(%t50)
(%o50)
Ans: C + I0 = 100 + 0.8 Y is a line parallel (same slope) to the consumption function
➔ wxdraw2d ( key_pos = top_left, key = "C = 50 + 0.8*Y ", yrange = [0, 600],
explicit (50 + 0.8*Y, Y, 0, 600), ylabel = "C, I", xlabel = "Y", grid = [2,2],
line_width = 3, key = "C + I0", color = dark_green, explicit (100 + 0.8*Y, Y, 0, 600) );
(%t51)
(%o51)
Dowling02fit.wxmx 22 / 36
➔ wxdraw2d ( proportional_axes = xy, yrange = [0, 600], key_pos = top_left, grid = [2,2],
ylabel = "C, I", xlabel = "Y", key = "C = 50 + 0.8*Y ", explicit (50 + 0.8*Y, Y, 0, 600),
line_width = 3, key = "C + I0", color = dark_green, explicit (100 + 0.8*Y, Y, 0, 600),
line_width = 2, key = "", color = red, line_type = dashes, explicit (Y, Y, 0, 600),
color = black, line_width = 1, explicit (500,Y,0,500), parametric (500, t, t, 0, 500) ),
wxplot_size = [480,480];
(%t52)
(%o52)
or find algebraically:
-------------------------------------------------------------------------------
Prob. 2.10
Effects of including a proportional tax (a tax depending on income) on the
parameters of the income determination model.
➔ I : 30$ C : 85 + 0.75*Y$ D : C + I$
➔ D;
(%o57) 0.75 Y + 115
➔ solve (Y = D, Y);
(%o58) [ Y = 460 ]
➔ D, expand;
(%o63) 0.6 Y + 100.0
➔ solve (Y = D, Y);
(%o64) [ Y = 250 ]
➔ wxdraw2d ( title = "Prob 2.10", key_pos = top_left, proportional_axes = xy, key = "C + I0, no tax ",
explicit (115 + 0.75*Y, Y, 0, 600), ylabel = "C + I", xlabel = "Y", grid = [2,2],
line_width = 3, key = "C + I, w/ tax", color = dark_green, explicit (100 + 0.6*Y, Y, 0, 600),
line_width = 2, key = "45 deg line", color = red, line_type = dashes, explicit (Y, Y, 0, 600),
color = black, line_type = solid, color = black, key = "Y = 250", parametric (250, t, t, 0, 250) ,
color = magenta, key = " Y = 460", parametric (460, t, t, 0, 460)), wxplot_size = [680, 680];
(%t65)
(%o65)
Because of the imposed tax structure, the equilibrium income falls from 460 (no tax)
to 250 (with tax), and the MPC (marginal propensity to consume) falls from 0.75 to 0.6.
We have not used plot2d so far. Here is an example of using wxplot2d syntax instead
of wxdraw2d with prob 2.10. Use the option [same_xy, true] for a graphical solution.
Dowling02fit.wxmx 25 / 36
(%t66)
The "IS schedule" is a locus of points representing all the different combinations of interest
rates and income levels consistent with equilibrium in the goods (commodity) market.
Equilibrium in the goods market demands that planned "investment" and planned "saving"
be equal, which is where "IS" comes from.
The "LM schedule" is a locus of points representing all the different combinations of interest
rates and income levels consistent with equilibrium in the money market. The "L" stands for
"liquidity preference" (as the demand for money is sometimes known) and the "M" stands for
the quantity of money supplied.
IS-LM analysis seeks to find the level of income and the rate of interest at which both the
commodity market and the money market will be in equilibrium simultaneously. This can be
accomplished with the techniques used for solving simultaneous equations.
Unlike the simple income determination model in Section 2.3, IS-LM analysis deals explicitly
with the interest rate (i) and incorporates its effect into the model. See Example 4 and Problems
2.23 and 2.24.
The money market is in equilibrium when the supply of money (Ms) equals the demand
for money (Md).
The demand for money (Md) is composed of the transaction-precautionary demand for
money (Mt ) and the speculative demand for money (Mz ). Md = Mt + Mz
-------------------------------------------------------------------------------------------
Ex 4
Assume a two-sector economy where Y = C + I, C = 48 + 0.8 Y, I = 98 - 75i, Ms = 250,
Mt = 0.3Y, and Mz = 52 - 150 i. Here we use i for the (decimal) interest rate on money.
-------------------------------------------------------------------------------------------
Commodity equilibrium (IS) exists when Y = C + I, or Y - C - I = 0.
Assume four exogenous variables are three levels of autonomous spending C0, I0, and G0,
and the constant stock of money M0. The four endogenous variables to be determined by the
model are Y, C, I, and r (rate of interest), such that the four equations
Y = C + I + G0
C = C0 + a Y
I = I0 + e r
f Y - g r = M0
are satisfied. The solutions will depend on C0, I0, G0, and r, and will be expressed in terms of
f, g, e, and a.
The first three equations clear the goods market, and the fourth equation clears the money
market.
X.M=B
The matrix solution is then X = M^(-1) . B, in which M^(-1) is the matrix inverse of M.
Using Maxima syntax translates the right hand side into invert(M) . B or M^^-1 . B
Dowling02fit.wxmx 28 / 36
➔ kill(all)$
M : matrix ([1,-1,-1,0], [a,-1,0,0],[0,0,1,e], [f,0,0,-g] );
B : transpose (matrix ( [G0,-C0, I0, M0] ));
1 −1 −1 0
a −1 0 0
(M)
0 0 1 e
f 0 0 −g
G0
− C0
(B)
I0
M0
➔ X : invert(M) . B, ratsimp;
( I0 + G0 + C0 ) g + M0 e
−
( a−1) g−e f
( ( I0 + G0 ) a + C0 ) g + C0 e f + M0 a e
−
( a−1) g−e f
(X)
( I0 a − I0 ) g + ( G0 + C0 ) e f + ( M0 a − M0 ) e
( a−1) g−e f
( I0 + G0 + C0 ) f + M0 a − M0
−
( a−1) g−e f
➔ kill(all)$
eq1 : Y - C - I = G0$
eq2 : a*Y - C = - C0$
eq3 : I + e*r = I0$
eq4 : f*Y - g*r = M0$
soln : solve ( [eq1, eq2, eq3, eq4], [Y, C, I, r] );
I0 g + G0 g + C0 g + M0 e
(soln) [ [ Y =− ,C=−
a g−g−e f
a ( I0 g + M0 e ) + C0 ( g + e f ) + G0 a g
,I=
a g−g−e f
a ( I0 g + M0 e ) − I0 g + G0 e f + C0 e f − M0 e I0 f + G0 f + C0 f + M0 a − M0
,r =− ]]
a g−g−e f a g−g−e f
example of using grid = [nx,ny] option with draw pkg. This shows two (2) grid
intervals between each numbered tick mark on both axes. Also example of
using the external modifying option wxplot_size to get larger than the default size.
Dowling02fit.wxmx 30 / 36
(%t9)
(%t10)
(%o10)
(%o11)
(%t12)
(%o12)
(%t13)
Dowling02fit.wxmx 33 / 36
(%t14)
(%o14)
Dowling02fit.wxmx 34 / 36
(%t15)
(%o15)
9 Colors
default plot2d colors
Dowling02fit.wxmx 35 / 36
(%t16)
(%o16)
(%t17)
(%o17)
(%t18)