Mathematica 9 is now available
 Documentation / Mathematica / The Mathematica Book / Advanced Mathematics / Calculus  /

3.5.1 Differentiation


Partial differentiation operations.




  • This gives


    .
  • In[1]:= D[x^n, x]

    Out[1]=

  • This gives the third derivative.
  • In[2]:= D[x^n, {x, 3}]

    Out[2]=

  • You can differentiate with respect to any expression that does not involve explicit mathematical operations.
  • In[3]:= D[ x[1]^2 + x[2]^2, x[1] ]

    Out[3]=

  • D does partial differentiation. It assumes here that y is independent of x.
  • In[4]:= D[x^2 + y^2, x]

    Out[4]=







  • If does in fact depend on , you can use the explicit functional form y[x]. Section 3.5.4 describes how objects like y'[x]


    work.
  • In[5]:= D[x^2 + y[x]^2, x]

    Out[5]=










  • Instead of giving an explicit function y[x], you can tell D that yimplicitly depends on x. D[y,x,NonConstants->{y}] then represents , with implicitly depending on


    .
  • In[6]:= D[x^2 + y^2, x, NonConstants -> {y}]

    Out[6]=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.