Docsity

Defining, Plotting Functions and Finding Limits using Maple, Assignments of Analytical Geometry and Calculus

Partial preview of the text

Download Defining, Plotting Functions and Finding Limits using Maple and more Assignments Analytical Geometry and Calculus in PDF only on Docsity!

Demo Math 113 23 May 2007

Defining and plotting functions

Example f(x)=x^2 + 1

> f := x / x^2

f := x / x^2

> f ( 2 )

> f 0

> f ( .5 )

> evalf^ 0 f^ 0

> f ( 2. )

> plot ( f ( x ) , x )

> plot ( f ( x ) , x = 0 ..5 )

> help ( plot )

> help ( plot )

> g := x / x^3 K 8 $ x

g := x / x^3 K 8 x

> plot ( g ( x ) , x )

> plot ( g ( x ) , x = K4 ..4 )

>

Doing limits in MAPLE

Example #34, p. 83

> f := x /

( x C 2 ) sqrt ( x^2 C 5 ) K 3

f := x /

x C 2

x^2 C 5 K 3

> f ( 2. )

Float ( N )

> f^ ( 3.6 )

> f ( 6 )

8 41 K 3

> f ( K2. )

Float ( undefined )

>

Want to find limit of f(x) as x-> -

> f ( K1. )

K

> f^ (^ K1.5 )

K

> f ( K1.9 )

K

> f ( K1 )

1 6 K 3

> f ( K1.95 )

K

K

> plot ( f ( x ) , x = K2.5 ..K1.5 )

> limit ( f ( x ) , x = K2. )

K

> limit^ (^ f^ (^ x^ ) ,^ x^ =^ K2 )

K 3 2

>

Using MAPLE for limits at infinity.

Example #60, p. 108

> h^ :=^ x^ /^

( K x^4 ) x^4 K 7 $ x^3 C 7 $ x^2 C 9

h := x /K x

4

x^4 K 7 x^3 C 7 x^2 C 9

> h ( 100 )

K 100000000 93070009

> h ( 200 )

K 1600000000 1544280009

> h ( 500 )

K 62500000000 61626750009

> h ( 1000 )

K 1000000000000 993007000009

> h ( 10000 )

K 10000000000000000 9993000700000009

> h^ ( 500. )

K

> h ( 1000. )

> plot ( f ( x ) , x =K.5 ..2.0 )

> T := x / 2 $ x K 1

T := x / 2 x K 1

> plot ( [ f ( x ) , T ( x ) ] , x =K.5 ..2.0 )

> Q^ :=^ h^ / ( g ( 3. C h ) K g ( 3. ) ) h

Q := h /

g ( 3. C h ) K g ( 3. ) h

> Q ( 1. )

> plot ( g ( x ) , x )

> plot ( g ( x ) , x = 2 ..5 )

> S1 := x / g ( 3. ) C Q ( 1. ) $ ( x K 3. )

S1 := x / g ( 3. ) C Q ( 1. ) ( x K 3. )

> S1 ( 4. )

> plot ( [ g ( x ) , S1 ( x ) ] , x = 2 ..5 )

> plot ( [ g ( x ) , S2 ( x ) , S1 ( x ) ] , x = 2 ..5 )

> Q ( 1. )

> Q ( .1 )

> Q ( .05 )

> limit ( Q ( h ) , h = 0 )