Go to CCP Homepage Go to Materials Page Go to Differential Equations Materials Go to Table of Contents
Go Back One Page Go Forward One Page

Maple Tutor

Part 9: Differentiation

From now on in this tutorial (if you have not been doing it all along), remember to check your inputs by switching to Standard Math mode. That is, click on the x button in the tool bar at the top of the screen. Make sure the input looks like correct mathematics before trying to evaluate it.
  1. Define g to be the function given by

    g(x) = x2cos x.

    Check your work by evaluating g(pi). You should obtain -pi2. If you have trouble, look at Part 7 again.

  2. Now enter
    diff(g(x),x);
    Then enter
    diff(g(x),x,x);
    How would you calculate the third derivative?

  3. If you want to calculate the derivative of an expression that you have not yet entered, just replace g(x) by the expression. For example, enter
    diff(x^3-x^2+2,x);
    Now insert a literal constant in the expression: Enter
    diff(x^3-a*x^2+2,x);
    Then change the final x to an a. That is, enter
    diff(x^3-a*x^2+2,a);
    What is the role of the symbol after the comma in the differentiation expression?

  4. Now suppose you want the function dg/dx, that is, g'(x). If necessary, restore the definition of g by entering
    g:=x->x2cos(x);
    Then enter
    D(g);
    Then
    D(D(g));
    Evaluate the second derivative of g at 2 by entering
    evalf(D(D(g))(2));
    Check your understanding so far by using Maple to calculate the second derivative of tan(x6-3x+5) at 3/2. (The value is approximately -4521.)

Go to CCP Homepage Go to Materials Page Go to Differential Equations Materials Go to Table of Contents
Go Back One Page Go Forward One Page


modules at math.duke.edu Copyright CCP and the author(s), 1998, 1999, 2000