This worksheet is based on SageMath 7.4.beta2 + branch of ticket #21286
version()
'SageMath version 7.4.beta2, Release Date: 2016-08-26'
%display latex
var('x y')
F = function('f')(x,y)
F
diff(F,x)
print(diff(F,x))
diff(f(x, y), x)
diff(F,x,y)
print(diff(F,x,y))
diff(f(x, y), x, y)
diff(F,y,x)
diff(F,x,x,x)
diff(F,x,y,x)
diff(F,x,x,y)
diff(F,x,y,y)
G = function('g')(x)
G
diff(G,x)
var('th', latex_name=r'\theta')
H = function('h')(th)
H
diff(H,th)
print(diff(H,(th)))
diff(h(th), th)
diff(F,th)
diff(f(th,y),y)
diff(f(g(th),y),y)
diff(f(g(th),y),th)
print(diff(f(g(th),y),th))
D[0](f)(g(th), y)*diff(g(th), th)
F.diff(x)
F.differentiate(x,y)
diff(F,x)(0,1)
/home/eric/sage/beta1/local/lib/python2.7/site-packages/IPython/core/interactiveshell.py:2869: DeprecationWarning: Substitution using function-call syntax and unnamed arguments is deprecated and will be removed from a future release of Sage; you can use named arguments instead, like EXPR(x=..., y=...) See http://trac.sagemath.org/5930 for details. exec(code_obj, self.user_global_ns, self.user_ns)
diff(F,x)(x=0,y=y)
diff(F,x)(y,x)
diff(F,x)(x=y,y=y)
diff(F,x)(x=y,y=x)
diff(f(x+y,y),x)
print(diff(f(x+y,y),x))
D[0](f)(x + y, y)
diff(f(x+y,y),y)