Docsity

Limits for Mathematics Computer - Lab 8 | MATH 1200, Lab Reports of Mathematics

Toggle sidebar
bg1
Mathematics Computer Laboratory - 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 document and use appropriate margins to get a polished and neat document.
1. This lab considers limits from several points of view. Then, it considers the special limit that leads
to the derivative of a function.
2. Here is an informal review of limits.
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
:
lim
x
!
a
f
(
x
) =
L
if both the right limit and the left limit values exist and they are equal to
L
.
An important fact is that the value of lim
x
!
a
f
(
x
) is independent of
f
(
a
). That is, the limit depends
on the values of the function
near
x
=
a
but not
f
(
a
) itself. Also,
a
can be +
1
or
,1
and the
value of a limit may also be +
1
or
,1
.
There are three general ways of computing a limit: numerically, graphically and algebraically.
3. Numerically: Use the command
Table
to keep track of numerical approximations to limits.
(a)
f[x_]:=Sin[x]/Abs[x]
This denes
f
(
x
) =
sin
x
j
x
j
.
(b) Let's generate numerical approximations to lim
x
!
0
+
sin
x
j
x
j
.
Table[{x, NumberForm[N[f[x]],9]}, {x, 0.1, 0.01, -0.01}]//TableForm
This table gives
x
and its corresponding 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 0
j
0
j
is undened so we stop at 0
:
01 .
Redo the last table starting from
x
= 0
:
01 and ending at
x
= 0
:
001 in steps of 0
:
001 :
f
x, 0.01,
0.001, -0.001
g
. The values of this function seem to approach 1 as positive
x
values get close to
zero : The prediction is lim
x
!
0
+
sin
x
j
x
j
=1.
pf3
pf4
pf5

Partial preview of the text

Download Limits for Mathematics Computer - Lab 8 | MATH 1200 and more Lab Reports Mathematics in PDF only on Docsity!

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.

  1. This lab considers limits from several p oints of view. Then, it considers the sp ecial limit that leads to the derivative of a function.
  2. Here is an informal review of limits.

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

on the values of the function near x = a but not f (a) itself. Also, a can b e + 1 or 1 and the

value of a limit may also b e + 1 or .

There are three general ways of computing a limit: numerically, graphically and algebraically.

  1. Numerically: Use the command Table to keep track of numerical approximations to limits.

(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

jxj

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.

Redo the last table starting from x = 0 : 01 and ending at x = 0 : 001 in steps of 0 : 001 : fx, 0.01,

0.001, -0.001g. The values of this function seem to approach 1 as p ositive x values get close to

zero : The prediction is lim x! 0 +

sin x

jxj

  1. Continued.

(c) 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.

Try fx, -0.01, -0.001, 0.001g in the last table. To nd values of f (x) to nine decimal places for

x's starting from 0 : 001 and ending at 0 : 0001 in steps of 0 : 0001 , evaluate the following.

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

jxj

= 1. Therefore lim

x! 0

sin x

jxj

do es not exist since the right and left limit values are not the same.

(d) To nd (^) xlim! sin x

jxj

, 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).

Try fx, 10000, 100000, 10000 g in the last table. Although the sign of f (x) changes, it app ears

that (^) xlim! sin x

jxj

(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) tg 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)

is unde ned at t = 1 , the table was stopp ed b efore reaching this t-value. Try ft, 1.1, 1.01,

-0.01g and then ft, 1.01, 1.001, -0.001g in the last table.

From the table of values, it is reasonable to conclude that lim t! 1 +

g (t) g (1)

t 1

Table[{t, (g[t]-g[1])/(t-1)}, {t, 0, 0.9, 0.1}]//TableForm Try ft, 0.9, 0.99, 0.01g

and then ft, 0.99, 0.999, 0.001g in the last table.

From the table values, it app ears that lim t! 1

g (t) g (1)

t 1

= 3. Therefore we predict that lim t! 1

g (t) g (1)

t 1

  1. Graphically: Use the command Plot to graphically approximate values of limits.

(a) Plot[f[x], {x, -2Pi, 2Pi}]

Rep eat the last graph with fx, -1, 1 g. Lo ok at the y -co ordinate of a p oint on the graph to the

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 +

f (x)  1.

(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 +

g (t) g (1)

t 1

= lim t! 1

g (t) g (1)

t 1

= 3 , we conclude lim t! 1

g (t) g (1)

t 1

Limit[(g[t]-g[1])/(t-1), t->1]

  1. Recall the limit de nition of the derivative of the function y = f (x) at x = a :

f 0 (a) = lim h! 0

f (a + h) f (a)

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 (

p

(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

g (t) g (1)

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

g (t) g (1)

t 1

found earlier?

(e) The equation of the tangent line to the curve y = g (x) = x^3 + 1 at x = 1 is y g (1) = g 0 (1)(x 1)

which simpli es to y = g (1) + g 0 (1)(x 1) or y = 3 x 1.

The equation of the secant line through p oints (1; g (1)) and (t; g (t)) is y g (1) = g^ (t t) 1 g (1)(x^ ^ 1)

which simpli es to y = g (1) + g^ (t) tg 1 (1) (x 1) or y = g^ ( tt) 1 2 (x 1) + 2.

(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.

Redo the last animation with ft, 2, 1.1, -0.1g.

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

1 cos x

x^2

(ii) (^) xlim!

2 x^3 + 150 x^2 + 6 x + 1999

5 x^3 2000 x^2 + x + 3

(iii) lim x! 0

ex^ 1

jxj

B. Graphically, explain why lim x! 0 +

sin

x do es not exist. For x = (^) n^1 , sin x = sin ( 1 =n ) = sin n. Consider

values of sin x for x = n^1 where n = 1 ; 2 ; 3 ;    as illustrated by

Table[f1/n, Sin[n Pi]g, fn, 1, 10, 1 g].

The y values in the table may make one to b elieve that the limit exists. Why is the limit value not the y value of the p oints in the table? Explain! C. Given f (x) = xex^ nd each of the following using: 1. The limit de nition of the derivative and the Limit command and 2. The derivative symb ol prime \ 0 " or the command D. (i) f 0 (1) (ii) f 0 (x) D. Find the equation of the tangent line to the graph of y = x^2 sin x at x = 2 . You may use a derivative command.