The most basic concepts of calculus are the derivative and the integral. It should come as not surprise that Maple has utililities to symbolically compute both. In this section we consider the derivative. The basic command is
Consider the examples.
Explain this one.
Functions can also be used. For example, we might have
We can also find the second derivative. Here is the command
Higher order derivatives are just as easy to compute using the following general command
is the order of the derivative to be determined. The similar command works
for whole expressions:
diff(expression,x$k); You need not use a
function; any expression will do. This sometimes makes computations quicker
Maple is a power tool for finding relative maxima or minima. To accomplish this we need to used a couple of the commands already learned. There are two basic steps. (1) Find the derivative. (2) Find the critical points. (i.e. Solve (3) Determine whether they are relative maxima or minima. (i.e. Evaluate at the critical points.) Confirm the results using the plot function. Here is a complete example.
Find the relative maxima and minima for the function
We conclude that has a relative maximum at and a relative minimum at . Now plot to confirm what has been proved.
Note that the the range of the plot was suitably restricted so as to reveal a ``good'' picture of the function within the range in question.
You can also differentiate using the
command. In addition, you can use this ``operator'' in composite form to find higher order derivatives as well. Thus will yield the second derivative.Here is how.
This command will work only for functions as functions ``know'' what the variable is.
f := x -> x^3 + 2 x^2 + 4;
Find the first two derivatives as follows:
As you can see
D(f)yields a function. So, you can use it
directly for critical points using
fsolve. We obtain
Below is an example using these and a couple of other features of Maple.
Find the relative and absolute maxima and minima and points of inflection for of the function
Solution. Convert the function to Maple syntax and proceed as above.
Note in the next step that we index the variable In this way we can reference the one we want. (Use square brackets to enclose the index.) We obtain
To apply the second derivative test, we need . From above we use the command.
Finally check the endpoints.
We conclude that is an absolute minimum; is an absolute maximum, and is a relative minimum.
Candidate for inflection points are the values just above. We need only check that changes sign at these values --- and it does. Now plot the function in the interval . The appropriate command is
Find the relative maxima and minima for the following functions. Plot the function to confirm your answers.
Find the relative and absolute maxima and minima and points of inflection for the given function over the given interval
Find the derivatives of the following functions as indicated.
Don't forget those semicolons (;).