Notice! This document is currently in Archived status.
The content of this document may be incorrect or outdated.

Print this article Edit this article

Calculus on Maple

Purdue Engineering Computer Network

Introduction

If you are entering the fields of the physical science, engineering, business, or quantitative psychology, you probably have to take a calculus course. Calculus can be frustrating to many. Maple may be able to help some of your frustrations. This document addresses the different commands that can be used for calculus problems and shows how to use these commands through examples.

The topics that will be discussed are:


Derivatives

If you want to find the rate of change or find the slope of a line, you take the derivative of that function. The derivative takes the general form:
    f'(x)=nxn-1
For example, the derivative of x3 would be 3x2. In Maple, the diff command can be used to take the derivative of a function. The diffcommand take the general form:
    diff( function, variable)

Example 1.1

Consider the function:
    f(x)=56x23+sin(2x3)*xe2x+(x+1)2
Find the derivative of this function.

-Solution-

  1. First, type the diff command for this function.

      diff((56*x^23)+(sin(2*x^3)*x^exp(2*x))+((x+1)^2),x);

  2. Press return and the answer should yield:

      1288x22+6cos(2x3)*x2*xe2x+sin(2x3)*xe2x*(2e2x*ln(x)+e2x/x)+2x+2

Partial Derivatives

In multivariale calculus, the student is introduced to the partial derivative. The partial derivative takes the general form:
    f'(x,y)=nxn-1yn+xnnyn-1
As above when we introduced the diff command for derivatives, the diff command is also used for partial derivatives. The genereal form of the diff command for partail derivatives is as follows:
    diff ( function, variable1, variable2)

Example 1.2

Consider the function:
    f(x,y)=x3y+e2y2(x2+2x+5)3+cos(y)sin(x)
find f'(x,y).

-Solution-

  1. First, enter the diff command as follows:

      diff((x^3)*y+((e^(2*y^2))*((x^2)+2*x+5)^3)+cos(x)*sin(x),x,y);

  2. Press return and the answer should be as follows:

      3x2+12e2y2yln(e)(x2+sx+5)2(2x+2)

Indefinite Integration

Integration is when you take a function and preform what is known as an antiderivative. The general form of an antiderivative is as follows:
    f(x)=(1/(n+1))xn+1+constant
An Indefinite Integral is simply taking the antiderivative of a function without boundary conditions. In Maple, you can use th int to perform an Indefinite Integral. The int command takes the following general form:
    int (itegrand, variable of integration)

Example 1.3

Dr. John Doe calculated the velocity of an airplane to be the following:
    V(t)=t3+3t2+2t+5
Find the distance function.

-Solution-

  1. In order to find the distance function, you must take the integral of the velocity function. In Maple, type the int command as follows:

      int((t^3)+(3*t^2)+2*t+5,t);

  2. Press return and the answer should yield:

      1/4 t4 + t3 + t2 + 5t

Definite Integral

A Definite Integral is preforming an integration with boundary conditions. To preform a definite integral in Maple you use the int which takes the general form as follows:
    int ( integrand, variable of intergration = low .. high)

Example 1.4

A satellite in orbit around Jupiter in not conserved. The torque of the satellite is as follows:
    T(t)=Cos(2t)+t
Find the Angular Momentum and evaulate the Angular Momentum from the times from 0 to 3.

-Solution-

  1. In order to find the angular momentum and evaulate from 0 to 3, you must take the integral of torque. Enter the int as follows:

      int(cos(t)+t,t=0..3);

  2. Press return and the answer should yield as follows:

      sin(3)+9/2

Last Modified: Dec 19, 2016 11:12 am US/Eastern
Created: Mar 5, 2007 1:39 pm US/Eastern by admin
JumpURL: