MapleLimitExamples.mws

Limits 

Some Computations 

> with(plots):
 

Warning, the name changecoords has been redefined
 

 

If you use a small "l" in the "limit" command then Maple computes the limit. 

 

> limit(x*sin(1/x),x=0);
 

0 

> limit(sin(x)/x,x=0);
 

1 

> limit((1-cos(x))/x,x=0);
 

0 

> limit((sqrt(x+1)-2)/(x-3),x=3);
 

1/4 

If you use a capital "L" in the "Limit" command then Maple displays the command. 

 

> Limit((1/(x+4)-1/4)/x,x=0);
 

Limit((1/(x+4)-1/4)/x, x = 0) 

 

You can then use the "value" command to evaluate the output of the previous command which is represented by the "%". 

 

> value(%);
 

(-1)/16 

> limit(sin(7*t)/(3*t),t=0);
 

7/3 

> Limit(tan(x)/x,x=0);
 

Limit(tan(x)/x, x = 0) 

> value(%);
 

1 

> Limit(tan(x)^2/x,x=0);
 

Limit(tan(x)^2/x, x = 0) 

> value(%);
 

0 

 

Piecewise defined functions are looked at below. 

 

> f:=x->piecewise(x<2,x+5,x^2+2);
 

f := proc (x) options operator, arrow; piecewise(x < 2, x+5, x^2+2) end proc 

> plot(f(x),x=0..4,thickness=2);
 

Plot 

> plot(f(x),x=0..4,thickness=2,discont=true);
 

Plot 

> Limit(f(x),x=2);
 

 

> value(%);
 

undefined 

> limit(f(x),x=2,left);
 

7 

> limit(f(x),x=2,right);
 

6 

> g:=x->piecewise(x<-2,-3,x<=1,x-2,x^2-2);
 

g := proc (x) options operator, arrow; piecewise(x < -2, -3, x <= 1, x-2, x^2-2) end proc 

> plot(g(x),x=-4..3,thickness=2,discont=true);
 

Plot 

> Limit(g(x),x=-2);
 

 

> value(%);
 

undefined 

> Limit(g(x),x=1);
 

 

> value(%);
 

-1 

> limit(g(x),x=-2,left);
 

-3 

> limit(g(x),x=-2,right);
 

-4