Maple Project 2 MTH 142 Fall 2001

Department of Mathematics, University of Rhode Island

PROBLEM 1.

a) define in Maple the function . Produce a plot of the function for .

b) Obtain taylor polynomials , , of for near .

c) Plot together with , , .

d)The error when approximating f(x) by at is defined as

Calculate , , and . Comment on the numbers you obtain.

e) Produce a plot of and with suitable ranges for the dependent and independent variables, so that it is possible to see what part of the plot of is well matched by . What is a guess for the interval of convergence of the Taylor series of for near ?

PROBLEM 2.

a) It can be shown mathematically that

Verify that Maple produces the same result.

b) Define the the partial sum function

Produce a pointplot of , for .

c)The error when approximating by is defined as

Calculate , , . Comment on the rate at which the error goes to zero as is increased.

** COMMENTS and additional information**

- Your name, date, class and section should be at the top of your paper. The final project should have only one author. You may discuss the project with your classmates, but what you turn in should contain your own original answers. Plagiarism is considered a serious offence.
- Before each Maple computation, you should insert an explanation of what you are about to do. Neatness and good English will be taken into account. It is not sufficient to have it right; you should communicate it well.
- Maple should be
*used in all calculations and plots*. - For additional information on
Plotting, solving equations and calculating integrals
in maple: see the maple worksheet
*`` Introduction to Maple in Calculus II''(intro142.mws)*, located in*www.math.uri.edu/Center/workc2.html* - MAPLE HELP will be available in some of the labs.
The schedule and location will be announced at the web site
*www.math.uri.edu*. - To submit this project, you may use the Mathematics Department's electronic submission system, available at
*www.math.uri.edu*( you must register as soon as possible ).

USEFUL MAPLE COMMANDS

> restart; # good to have this at the top of worksheet; > with(student); # adds leftsum, rightsum, trapezoid functions (and others) > with(plots); # adds extra functionality for plots > f:=x->x^2; # define a function > f:=x->evalf(x^2); # define a function, force it to give decimal result > plot([f(x),g(x)],x=0..5);# plot two functions > p1:=pointplot({seq([n,g(n)],n=1..10)}): # plot points (1,g(1)), (2,g(2)),...,(10,g(10)), # and store the plot under the name p1 > display([p1,p2]); # show two plots called p1 and p2 in one set of coordinate axes > Pi # the number 3.1415... > exp(2.5); # exponential function evaluated at 2.5 > taypol:=n->convert( taylor(f(x),x=1,n+1),polynom); # taypol(5) gives the Taylor polynomial of degree 5 of # the function f(x) about x = 1; > sub(x=2,p); # substitute x=2 into p (here p could be a polynomial, for example) > sum(1/n,n=1..infinity); # infinite sum from n=1 to n=infinity of 1/n