MapleLogExpExamples.mws

Log and Exponential Functions

Differentiation and Integration

>    with(plots):

Warning, the name changecoords has been redefined

>    diff(ln(x),x);

1/x

>    diff(ln(-x),x);

1/x

>    diff(ln(a*x),x);

1/x

>    diff(ln(x^2),x);

2/x

>    diff(ln(2*x^3-3*x+4),x);

(6*x^2-3)/(2*x^3-3*x+4)

>    diff(log10(x),x);

1/(x*ln(10))

>    diff(log[5](x),x);

1/(x*ln(5))

>    diff(log[3](x^2+2*x),x);

(2*x+2)/(x^2+2*x)/ln(3)

>    LnGraph:=plot(ln(x),x=-8..8,y=-8..8,thickness=2):

>    ExpGraph:=plot(exp(x),x=-8..8,y=-8..8,thickness=2,color=green):

>    LineGraph:=plot(x,x=-8..8,y=-8..8,thickness=2,color=blue):

>    display(LnGraph,ExpGraph,LineGraph);

[Maple Plot]

>    diff(exp(x),x);

exp(x)

>    diff(exp(3*x^3-4*x),x);

(9*x^2-4)*exp(3*x^3-4*x)

>    diff(4^x,x);

2*4^x*ln(2)

Note above that the answer represents 4^x  times 2*ln(2) .

>    diff(exp(2*sin(x)),x);

2*cos(x)*exp(2*sin(x))

>    Int((2*x+3)/(x^2+3*x),x);

Int((2*x+3)/(x^2+3*x),x)

>    value(%);

ln(x*(x+3))

>    Int((2*x+3)/(x^2+3*x),x=1..2);

Int((2*x+3)/(x^2+3*x),x = 1 .. 2)

>    value(%);

-ln(2)+ln(5)

>    evalf(%);

.9162907314

>    plot((2*x+3)/(x^2+3*x),x=1..2,filled=true);

[Maple Plot]

>    plot(1/x,x=4..10,filled=true);

[Maple Plot]

>    int(4*x*exp(x^2),x=2..4);

-2*exp(4)+2*exp(16)

>    evalf(%);

17772111.84

>    plot(4*x*exp(x^2),x=2..4,filled=true);

[Maple Plot]

>    plot(2*exp(x),x=4..16,filled=true);

[Maple Plot]

>    diff(4^(x^2),x);

4*4^(x^2)*x*ln(2)

>    Diff(log[4]((x^2+3)/4),x);

Diff(1/2*ln(1/4*x^2+3/4)/ln(2),x)

>    value(%);

1/4*x/(1/4*x^2+3/4)/ln(2)

>    Diff(ln((x^2+3)/4)/ln(4),x);

Diff(1/2*ln(1/4*x^2+3/4)/ln(2),x)

>    value(%);

1/4*x/(1/4*x^2+3/4)/ln(2)

>    int((5*x^2)/(x^3+3),x);

5/3*ln(x^3+3)

>    int((2*x)/(x^2+3),x=0..2);

-ln(3)+ln(7)

>    plot((2*x)/(x^2+3),x=0..2,filled=true);

[Maple Plot]

>    plot(1/x,x=3..7,filled=true);

[Maple Plot]

>    Int(28*exp(4*x),x=0..1);

Int(28*exp(4*x),x = 0 .. 1)

>    value(%);

-7+7*exp(4)

>    evalf(%);

375.1870502

>    plot(28*exp(4*x),x=0..1,filled=true);

[Maple Plot]

>