



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Mathematics Computer Lab oratory - Math 1200 Lab 8 - Limits
Due
You should only turn in exercises in this lab with its title and your name as the Title and Subtitle. Edit your do cument and use appropriate margins to get a p olished and neat do cument.
The right limit of f (x) as x approaches a : lim x!a+
f (x) is the value the function f (x) approaches, if any, as x values larger than a get close to a. The left limit of f (x) as x approaches a : lim x!a
f (x) is the value the function f (x) approaches, if any, as x values smaller than a get close to a. The limit of f (x) as x approaches a :
xlim!a f^ (x)^ =^ L^ if^ b^ oth^ the^ right^ limit^ and^ the^ left^ limit^ values^ exist^ and^ they^ are^ equal^ to^ L^.
An imp ortant fact is that the value of (^) xlim!a f (x) is indep endent of f (a). That is, the limit dep ends
There are three general ways of computing a limit: numerically, graphically and algebraically.
(a) f[x_]:=Sin[x]/Abs[x] This de nes f (x) = sin jx^ jx.
(b) Let's generate numerical approximations to lim x! 0 +
sin x
Table[{x, NumberForm[N[f[x]],9]}, {x, 0.1, 0.01, -0.01}]//TableForm This table gives x and its corresp onding value of f (x) starting from x = 0 : 1 and ending at x = 0 : 01 in steps of 0 : 01. Notice that f (0) = sin j 0 j^0 is^ unde^ ned^ so^ we^ stop^ at^0 :^01.
zero : The prediction is lim x! 0 +
sin x
(c) Table[{x, NumberForm[N[f[x]],9]}, {x, -0.1, -0.01, 0.01}]//TableForm This table gives
Table[{x, NumberForm[N[f[x]],9]}, {x, -0.001, -0.0001, 0.0001}]//TableForm From these table, it is resonable to conclude that lim x! 0
sin x
x! 0
sin x
do es not exist since the right and left limit values are not the same.
(d) To nd (^) xlim! sin x
, we need to make a table for large values of x.
Table[{x, N[f[x]]}, {x, 1000, 10000, 1000}]//TableForm This table gives the values of or- dered pairs (x; f (x)) starting with x = 1000 and ending with x = 10000 in steps of 1000. The command N is used to obtain the decimal approximation of f (x).
that (^) xlim! sin x
(e) Consider the function g (x) = x^3 + 1. Let's nd the limit value of the slop es of the secant lines through the p oints (1; g (1)) = (1; 2) and (t; g (t)) as t approaches 1. The slop e of the secant line is m = g^ (t) t g 1 (1). Evaluate each of the following in a di erent cell.
g[x_]:=x^3+ Table[{t, (g[t]-g[1])/(t-1)}, {t, 2, 1.1, -0.1}]//TableForm Since the expression g^ (t t) 1 g^ (1)
From the table of values, it is reasonable to conclude that lim t! 1 +
From the table values, it app ears that lim t! 1
= 3. Therefore we predict that lim t! 1
(a) Plot[f[x], {x, -2Pi, 2Pi}]
right side of the y -axis. (Click on the graph, hold down the Ctrl^ key^ (^ Alt^ key^ on^ some^ machines) and move the mouse to the desired p osition. The co ordinates of the p oints app ear on the bar in the b ottom of the noteb o ok window.) Then lo ok at the y -values of the p oints on the graph as x values get closer to zero. (Hold down the Ctrl key and slide the mouse on the graph toward the y -axis.) You should see y values close to 1. Therefore lim x! 0 +
(c) From parts (a) and (b), it is clear that (^) xlim! 0 f (x) do es not exist. Surprisingly, Mathematica will give the wrong answer to (^) xlim! 0 f (x).
Limit[f[x], x->0] Mathematica tends to nd the right limit only and not check whether the left limit is the same value as the right limit. Therefore, if the limit do es not exit, Mathematica will probably give the wrong answer. (d) Limit[f[x], x->Infinity] This is lim x! f (x) and you should get 0.
(e) Limit[(g[t]-g[1])/(t-1), t->1, Direction->-1] You should get 3. Limit[(g[t]-g[1])/(t-1), t->1, Direction->1] Again, you should get 3.
Since lim t! 1 +
= lim t! 1
= 3 , we conclude lim t! 1
Limit[(g[t]-g[1])/(t-1), t->1]
f 0 (a) = lim h! 0
h ; assuming this limit exists.
(a) Let's nd the derivative of k (x) = x sin x at x = = 3. Evaluate each of the following in a di erent cell.
k[x_]:=x Sin[x] Table[{h, (k[Pi/3 + h]-k[Pi/3])/h}, {h, 0.1, 0.01, -0.01}]//TableForm Table[{h, (k[Pi/3 + h]-k[Pi/3])/h}, {h, -0.1, -0.01, +0.01}]//TableForm These two ta- bles seem to show the left and the right limits exists and they are equal. Limit[(k[Pi/3 + h]-k[Pi/3])/h, h->0] N[%] It app ears that k 0 ( =3) = 16 (
(b) We can use the limit de nition to nd the derivative of k (x) for any x value: \k 0 (x)". Limit[(k[x + h]-k[x])/h, h->0] You should get x Cos[x] +Sin[x]. (c) Mathematica has several commands for nding the derivative. Evaluate each of the following in a di erent cell.
k^0 [Pi/3] This is the derivative of k (x) = x sin x at x = = 3 and is the same value as in part (a). k^0 [x] This is k 0 (x) and is the same expression as in part (b). D[k[x], x] This is the derivative of k (x) with resp ect to x and is the same expression as in the last part. The command D stands for the derivative, k[x] the function whose derivative is desired and x the variable with resp ect which the derivative should b e taken. (d) Recall that the slop e of the line tangent to a graph at a given p oint is the value of its derivative at that p oint. It is also the limit value of the slop e of secant lines through the given p oint as the second p oint on the graph is moved toward the given p oint. Therefore lim t! 1
is the slop e of the tangent line to y = g (x) at x = 1 and is also equal to g 0 (1).
g^0 [1] Is this the same value as lim t! 1
found earlier?
(f ) To demonstrate the ideas that the derivative gives the slop e of the tangent line, which in turn is the limiting value of the slop es of secant lines, do the following animations.
tl[x_]:=g[1]+g^0 1 sl[x_]:=g[1]+((g[t]-g[1])/(t-1))(x-1) Table[Plot[{g[x], sl[x], tl[x]}, {x, -0.25, 2.25}, PlotRange->{{-0.25, 2.25}, {-0.5, 10}}, PlotStyle->{{RGBColor[1, 0, 0]}, {RGBColor[0, 1, 0]}, {RGBColor[0, 0, 1]}}], {t, 0, 0.9, 0.1}]; Double click on the middle bracket, the cell that contains all individual graphic cells. Highlight the new shortened middle bracket by just clicking on it once. Then click consecutively on buttons Cell and Animate Selected Graphics.
Clear[f, g, msl, k, tl, sl]
Perform each of the following exercises. Explain your work by typing in necessary comments in text cells.
A. Investigate the following limits. Decide if a limit has a value by using either numerical (Table command) or graphical (Plot command) means. If a limit exists, nd its value using the Limit command. If a limit do es not exist, explain why.
(i) lim x! 0
x^2
(ii) (^) xlim!