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.
with⁡PDEtools:
diff⁡y⁡x,x,x,x+a⁢diff⁡y⁡x,x,x2+b⁢diff⁡y⁡x,x,x+c⁢diff⁡y⁡x,x+d⁢y⁡x+e
ⅆ3ⅆx3y⁡x+a⁢ⅆ2ⅆx2y⁡x2+b⁢ⅆ2ⅆx2y⁡x+c⁢ⅆⅆxy⁡x+d⁢y⁡x+e
Obtain the coefficients with respect to y(x) and derivatives.
dcoeffs⁡,y⁡x
1,a,b,c,d,e
expr≔a⁢x⁡t⁢diff⁡y⁡t,t2+x⁡t⁢diff⁡y⁡t,t+b⁢y⁡t⁢diff⁡y⁡t,t+c⁢y⁡t2⁢diff⁡x⁡t,t
expr≔a⁢x⁡t⁢ⅆⅆty⁡t2+x⁡t⁢ⅆⅆty⁡t+b⁢y⁡t⁢ⅆⅆty⁡t+c⁢y⁡t2⁢ⅆⅆtx⁡t
dcoeffs⁡expr,y⁡t
a⁢x⁡t,b,x⁡t,c⁢ⅆⅆtx⁡t
dcoeffs⁡expr,x⁡t
c⁢y⁡t2,a⁢ⅆⅆty⁡t2+ⅆⅆty⁡t,b⁢y⁡t⁢ⅆⅆty⁡t
See Also
DEtools
dsolve
dsolve,education
pdsolve
Download Help Document