implicitdiff
differentiation of a function defined by an equation
Calling Sequence
Parameters
Description
Examples
implicitdiff(f, y, x)
implicitdiff(f, y, x1,...,xk)
implicitdiff({f1,...,fm}, {y1,...,yn}, u, x)
implicitdiff({f1,...,fm}, {y1,...,yn}, u, x1,...,xk)
implicitdiff({f1,...,fm}, {y1,...,yn}, {u1,...,ur}, x)
implicitdiff({f1,...,fm}, {y1,...,yn}, {u1,...,ur}, x1,...,xk)
f, f1, ..., fm
-
algebraic expressions or equations
y, y1, ..., yn
(variable) names or function of dependent variables
u, u1, ..., ur
names (of dependent variables)
x, x1, ..., xk
names (of derivative variables)
notation=<derivative>
optional notation directive
The implicitdiff(f, y, x) (implicit differentiation) calling sequence computes dydx, the partial derivative of the function y with respect to x. The input f defines y as a function of x implicitly. It must be an equation in x and y or an algebraic expression, which is understood to be equated to zero. For example, the call implicitdiff(x^2*y+y^2=1,y,x) computes the derivative of y with respect to x. Here, y is implicitly a function of x. The result returned is −2⁢x⁢yx2+2⁢y.
The second argument y specifies the dependent variables, the independent variables, and the constants. If y is a name, this means that y is the dependent variable. All other names, which appear in the input f and the derivative variable(s) x and are not of type constant, are treated as independent variables. For example, the call implicitdiff(R=P*V/T, P, T) specifies P, the dependent variable, is to be regarded as a function of R, P, and T the independent variables. If y is a function y⁡x1,...,xj, this states the independent variables and their order explicitly. All other variables appearing in the input f are implicitly understood to be constants. For example, the call implicitdiff(R=P*V/T, P(V, T), T) specifies that P is a function of T and V, and the variable R is a constant. The result is PT.
Higher order partial derivatives are specified by giving more variables as optional arguments, exactly as with the diff command.
The implicitdiff routine will return the value FAIL if the derivative does not exist. This would happen, for instance, if the first argument f is not a function of y.
The remaining four calling sequences specify the case of m equations f1,...,fm defining n functions y1,...,yn implicitly. The first argument f1,...,fm must be a set of equations or algebraic expressions which are understood to be equated to zero. The second argument y1,...,yn specifies the dependent variables, the independent variables and the constants as in the previous calling sequences. Note that if the equations f1,...,fm are overdetermined, the implicitdiff command may return FAIL.
The call implicitdiff({f1,...,fm},{y1,...,yn}, u, x) computes the derivative of the function u with respect to x where u must be one of the given y's. The call implicitdiff({f1,...,fm},{y1,...,yn}, u, x1,...,xk) computes higher order derivatives of u. For example, the call implicitdiff({x^2+y=z, x+y*z=1}, {y, z}, y, x) computes dydx. The result is −2⁢x⁢y+1z+y.
The call implicitdiff({f1,...,fm},{y1,...,yn},{u1,...,ur}, x) computes the partial derivatives of the functions u1,...,ur with respect to x. For example, the call implicitdiff({x^2+y=z, x+y*z=1},{y,z},{y,z}, x) computes dydx and dzdx. The result is {D⁡y=−1+2⁢x⁢yz+y, D⁡z=−1+2⁢x⁢zz+y}. The result returned is the set of equations of the form dydx=F⁡x,y,z. The notation used to label the partial derivatives dydx can be either Maple's D notation (the default) or a subscripted Diff notation. If the last argument is notation=D or no notational directive is given, then Maple's D notation is used. For functions of one variable, y⁡x, the notation D⁡y will be used. For functions of more than one variable, the Di⁡y notation will be used. If the Diff notation is specified, then instead of using D⁡y for dydx, ⅆyⅆx is used. And instead of using D1⁡y for dydx where y is a function of more than one variable, say y⁡x,z then Diff(y, x)[z] is used.
f≔y=x2z
implicitdiff⁡f,y,x
2⁢xz
implicitdiff⁡f,y,z
−x2z2
f≔x2+y3=1
f≔y3+x2=1
−2⁢x3⁢y2
implicitdiff⁡f,x,y
−3⁢y22⁢x
0
implicitdiff⁡f,y⁡x,x
If the expression notation is used, the variable names must match:
implicitdiff⁡f,y⁡a,x
Error, (in implicitdiff) 2nd argument y(a) must be a function of x
implicitdiff⁡f,y,x,x
−2⁢3⁢y3+4⁢x29⁢y5
implicitdiff⁡f,z,x
FAIL
f≔a⁢x3⁢y−2⁢yz=z2
implicitdiff⁡f,y⁡x,z,x
−3⁢a⁢x2⁢y⁢za⁢x3⁢z−2
implicitdiff⁡f,y⁡x,z,x,z
6⁢a⁢x2⁢−z3+2⁢ya⁢x3⁢z−22
f≔y2−2⁢x⁢z=1
f≔−2⁢x⁢z+y2=1
g≔x2−exp⁡x⁢z=y
g≔x2−ⅇx⁢z=y
implicitdiff⁡f,g,y,z,y,x
2⁢xⅇx⁢z⁢y+1
implicitdiff⁡f,g,y,z,y,z,x
D⁡y=2⁢xⅇx⁢z⁢y+1,D⁡z=−z⁢ⅇx⁢z⁢y−2⁢y⁢x+zⅇx⁢z⁢y+1⁢x
implicitdiff⁡f,g,y⁡x,z⁡x,y,z,x,notation=Diff
ⅆyⅆx=2⁢xⅇx⁢z⁢y+1,ⅆzⅆx=−z⁢ⅇx⁢z⁢y−2⁢y⁢x+zⅇx⁢z⁢y+1⁢x
f≔a⁢sin⁡u⁢v+b⁢cos⁡w⁢x=c
g≔u+v+w+x=z
h≔u⁢v+w⁢x=z
implicitdiff⁡f,g,h,u⁡x,z,v⁡x,z,w⁡x,z,u,z
u⁢cos⁡u⁢v⁢a⁢x+u⁢sin⁡w⁢x⁢b⁢x−u⁢cos⁡u⁢v⁢a−sin⁡w⁢x⁢b⁢xx⁢cos⁡u⁢v⁢a+sin⁡w⁢x⁢b⁢−v+u
implicitdiff⁡g,h,u⁡x,z,v⁡x,z,w⁡x,z,u,v,w,z
D2⁡u=−−1+xv−x−u−x⁢D2⁡vv−x,D2⁡v=D2⁡v,D2⁡w=−v+u⁢D2⁡vv−x+v−1v−x
implicitdiff⁡f,g,h,u⁡x,z,v⁡x,z,u,z
See Also
D
diff
Download Help Document