Examples

  1. Enter and name the expression, then use the diff command to compute the first and second derivatives of the expression.
            expr := x^n
            diff(expr, x)
            diff(expr,x$2)
          
    first and second derivative of x raised to the n power
  2. Enter and name the expression, then use the diff command to compute the first and second derivatives of the expression.
            expr2 := x^(2*cos(x)) → / ln(x)
            diff(expr2, x)
            diff(expr2, x$2)
          
    first and second derivative of x raised to the quantity two times cos x over natural log of x