The Internet Economy

 

Econ 407:

Log and Exponential Functions.

Examples of Exponential Functions and their graphs

> y:=a^x;

[Maple Math]

The simplest exponential function--where a is a constant and x is a variable.

> y:=2^x;

[Maple Math]

> plot(y,x=0..2);

[Maple Plot]

> Wpop:=6^x;

[Maple Math]

> plot(Wpop,x=0..2.3);

[Maple Plot]

> plot({0.3^x,0.4^x,0.5^x},x=-2.0..3);

[Maple Plot]

> plot({3^(-x),4^(-x),5^(-x)}, x=-3..3);

[Maple Plot]

>

> y:=exp(0.5*x);

[Maple Math]

> eval(y,x=2);

[Maple Math]

> y:=exp(x);

[Maple Math]

> dy:=diff(y,x);

[Maple Math]

> plot(y,x=-2..2);

[Maple Plot]

> plot({y,dy},x=-2..2);

[Maple Plot]

An important exponential function is y=e^x, where e is the base of the natural log. One of the interesting properties of this function is that its first, second, third derivatives are identical to the original function.

> y:=exp(x);

[Maple Math]

> y:=exp(2*x);

[Maple Math]

> dy:=diff(y,x);

[Maple Math]

> plot({y,dy},x=-2..2);

[Maple Plot]

> y:=exp(5*x^2);

[Maple Math]

> dy:=diff(y,x);

[Maple Math]

> y:=exp(5*x^5);

[Maple Math]

> dy:=diff(y,x);

[Maple Math]

> y:=exp(5*x^(-2));

[Maple Math]

> dy:=diff(y,x);

[Maple Math]

Here is an example of a demand and supply function which depend on the natural log of price. Note that in such a function, the coefficient of price (i.e. the number multiplied by log(p) is a measure of elastcity of demand or supply.

> qd:=120-8*log(p);

[Maple Math]

> qs:=50*log(p)-60.0;

[Maple Math]

> eval(qd,p=19.0);

[Maple Math]

> eval(qs,p=19.0);

[Maple Math]

> solve(qd=qs,p);

[Maple Math]

> eval(qd,p=22.27462807);

[Maple Math]

> eval(qs,p=22.27462807);

[Maple Math]

>

>