Math 126 Section 5.7

Lets do the examples from Section 5.7. On the top of page 411
We have the following example. Here is how we express the following
intergral, in the Maple language. The answer appears below our typed
expression.
[Maple Math]

> int(1/(3*x -2),x);

[Maple Math]

Example 5

[Maple Math]

We assign the result of our expression to a variable which we call r1
We do this so we can check our answer by differentiation.

> r1 := int(x*sqrt(x^2 + 2*x + 4),x);

[Maple Math]


Lets differentiate the above. The
diff command is Maples way of differentiating.
We assign the result of the differentiation to the variable r2. Notice we get a
complicated answer. By using the command
simplify , we get back our original expression.

> r2 := diff(r1,x);

[Maple Math]
[Maple Math]

> simplify(r2);

[Maple Math]

Example 6
[Maple Math]

> r1 := int(x*(x^2 + 5)^8,x);

[Maple Math]
[Maple Math]

> r2 := diff(r1,x);

[Maple Math]
[Maple Math]

We'd like this anwer to match our original expression. Let's try the factor command
this time. We get back our original expression.

> factor(r2);

[Maple Math]

Example 7
[Maple Math]

> r1 := int(sin(x)^5*cos(x)^2,x);

[Maple Math]


We take the derivative of the above. Notice that in this case, Maple is at a loss to
simplify this expression so that it looks like the original. Even when we try to simplify
or factor. Try it! This shows some of the limitations of Computer Algebra Systems.
They don't always know how to put the answer in the simplist and most elegant
form.

> r2 := diff(r1,x);

[Maple Math]
[Maple Math]

> r2 := simplify(r2);

[Maple Math]

> r2 := factor(r2);

[Maple Math]

Example 8
[Maple Math]

Find the antiderivative F of f such that F(0) = 0. Graph F (x), f(x), and f'(x).

> r2 := x + 60*sin(x)^4*cos(x)^5;
r1 := int(r1, x);
r3 := diff(r2, x);

[Maple Math]

[Maple Math]
[Maple Math]

[Maple Math]

> plot([r1,r2,r3], x = 0..5, y = -7 ..10);