PDEtools
dcoeffs
obtain coefficients of a polynomial differential equation
Calling Sequence
Parameters
Description
Examples
dcoeffs(expr, y(x))
expr
-
differential expression
y(x)
function with respect to which you want to obtain differential coefficients
The purpose of this command is to collect the input expression, expr, with respect to the input indeterminate - say y(x) - and its derivatives, and output a sequence of the coefficients of the collected form. The input expression is necessarily polynomial in the indeterminate and its derivatives.
Unlike coeffs, the coefficient sequence is returned in a specific order. The output is from higher to lower differential order.
If the collected expr is polynomial in y(x) and its derivatives, then the expression is also collected with respect to differing degrees of the same derivative, and the polynomial degree is used to break differential order ties in the ordered output, from higher to lower polynomial degree.
Consider the following expression.
withPDEtools:
diffyx,x,x,x+adiffyx,x,x2+bdiffyx,x,x+cdiffyx,x+dyx+e
ⅆ3ⅆx3yx+aⅆ2ⅆx2yx2+bⅆ2ⅆx2yx+cⅆⅆxyx+dyx+e
Obtain the coefficients with respect to y(x) and derivatives.
dcoeffs,yx
1,a,b,c,d,e
expr≔axtdiffyt,t2+xtdiffyt,t+bytdiffyt,t+cyt2diffxt,t
expr≔axtⅆⅆtyt2+xtⅆⅆtyt+bytⅆⅆtyt+cyt2ⅆⅆtxt
dcoeffsexpr,yt
axt,b,xt,cⅆⅆtxt
dcoeffsexpr,xt
cyt2,aⅆⅆtyt2+ⅆⅆtyt,bytⅆⅆtyt
See Also
DEtools
dsolve
dsolve,education
pdsolve
Download Help Document