A General Introduction to Maple

Maple is a computer application for advanced mathematics. The way you run Maple depends on the systems you are on. In Unix systems you would type "xmaple," unless there is an Xmaple icon. Using Microsoft Windows you click on the Maple icon that has an integral symbol superimpossed on a Maple leaf.

First do some simple arithmatic:

> 7*(4^3)-9;

439

> 5^77;

661744490042422139897126953655970282852649688720703...

OK, now some algebra:

> factor(x^7-1);

(x-1)*(x^6+x^5+x^4+x^3+x^2+x+1)

> expand((x^3+3*x+1)*(x^2-1));

x^5+2*x^3-3*x+x^2-1

Now for a graph:

> plot(x*sin(x),x=-3*Pi..3*Pi,color=black,thickness=2);

[Maple Plot]

Next, some calculus.

> diff((x*y+3)/(x^3+7*y^2),x);

y/(x^3+7*y^2)-3*(x*y+3)/(x^3+7*y^2)^2*x^2

> int(x^3*sin(x),x);

-x^3*cos(x)+3*x^2*sin(x)-6*sin(x)+6*x*cos(x)

> int(exp(-x^2),x=0..5);

1/2*erf(5)*Pi^(1/2)

What? Use the HELP button to see what erf means. To get a numerical answer use evalf.

> evalf(int(exp(-x^2),x=0..5));

.8862269255

Notice that this worksheet uses both plane text and Maple comands. You can switch between these input modes by using ctrl t and ctrl m. You can creat new command lines with ctrl k and ctrl j.

Next we do a parametric plot. Is it from 10.2 #12: (You can see that the tangents at (0,0) have two different slopes.)

> plot([sin(t),sin(t+sin(t)),t=0..2*Pi],color=black,thickness=2);

[Maple Plot]

We can also do polar plots. (You need the "extra" theta.)

> plot([2+sin(30*theta),theta,theta=0..2*Pi],coords=polar,color=black,thickness=2);

[Maple Plot]

Maple can do some limits and series.

> limit((n^2+sin(n))/(3*n^2+n),n=infinity);

1/3

> limit(arctan(2*n),n=infinity);

1/2*Pi

> limit(factorial(n)/n^n,n=infinity);

0

> sum(2*(3/7)^(n-1),n=1..infinity);

7/2

> sum(1/n^2,n=1..infinity);

1/6*Pi^2

> sum(1/(n^2-2*n),n=3..infinity);

3/4

Maple can find the Taylor series of a function.

> taylor(sin(x),x=0,10);

series(1*x-1/6*x^3+1/120*x^5-1/5040*x^7+1/362880*x^...

This gave the terms with exponent less than 10 for the Taylor series of sin(x), centered at x=0.