The Internet Economy

 

Econ 407: Lecture on the application of the lagrangian multiplier to minimize cost function for a firm producing two goods, x and y. We use the first and second order conditions to demonstrate the application of the method. Bascially, you have to take thee partial derivatives, set them equal to zero, and solve for the three unknowns. After that, use second order conditions to check for the existence of a relative minimum.

> C:=8*x^2-x*y+12*y^2;

[Maple Math]

> con:=42-x-y;

[Maple Math]

> L:=C+lambda*(con);

[Maple Math]

> Lx:=diff(L,x);

[Maple Math]

> Ly:=diff(L,y);

[Maple Math]

> Llambda:=diff(L,lambda);

[Maple Math]

> solve({Lx,Ly,Llambda},{x,y,lambda});

[Maple Math]

Let us examine the second-order conditions.

> Lxx:=diff(Lx,x);

[Maple Math]

> Lyy:=diff(Ly,y);

[Maple Math]

> Lxy:=diff(Lx,y);

[Maple Math]

> Pdct:=Lxx*Lyy;

[Maple Math]

> Sqcross:=(Lxy)^2;

[Maple Math]

Since the products of the second derivatives is greater than the squared cross derivative and since Lxx>0, and Lyy>0, we have the conditions for a relative minimum.

> eval(C,{x=25,y=17});

[Maple Math]

> plot3d(C,x=0..50,y=0..40);

[Maple Plot]

Second hourly exam Monday, Oct. 25, 1999. Don't Miss IT! There will be no make-ups.