10. Other Commands
limits
Suppose you need to find the limit ie,
for which both the numerator and denominator tend to zero. This is an example of an indeterminate form of which many others will be investigated in later mathematics using L’Hôpital’s Rule. One method is to find the limit graphically. Enter:
clear all
syms x
f=(2^x-2)/(2*x-2);
ezplot(f,0.95,1.05)
zoom on
You might notice a small hole in the graph at because the expression is undefined there. However, by zooming in, you see that the function is tending towards a value 0.6931 as x → 1. Do you recognise this value? To obtain an exact answer, use the “Maple”s limit command. Add to the above M-file the extra command lim=limit(f,x,1) to obtain the answer lim = log(2) (which is ln 2).
Exercise 1: Change the previous M-file to demonstrate that
both graphically and using limit.
Exercise 2: Change the previous M-file to find
(clearly undefined at x = 0.25)
to obtain 0.3679 graphically and 1/e using limit.