DEtools
mutest
test a given integrating factor
Calling Sequence
Parameters
Description
Examples
mutest(mu, ODE, y(x))
mu
-
integrating factor
ODE
ordinary differential equation
y(x)
(optional) indeterminate function of the ODE
The mutest command checks whether a given expression is an integrating factor of a given ODE. Similar to odetest, mutest returns 0 when the first argument - say mu - is indeed an integrating factor. Otherwise it returns an algebraic expression obtained after simplifying the Exactness condition. This Exactness condition is obtained by applying Euler's operator (satisfied by total derivatives) to mu times the ODE.
Note however that when the result returned by mutest is not zero, the expression might nevertheless be an integrating factor. In some cases you can obtain the desired 0 with further simplifications by using commands such as expand and combine.
This function is part of the DEtools package, and so it can be used in the form mutest(..) only after executing the command with(DEtools). However, it can always be accessed through the long form of the command by using DEtools[mutest](..).
A first order ODE
with⁡DEtools:
ODE≔diff⁡y⁡x,x=y⁡x⁢a⁡x+b⁡x
ODE≔ⅆⅆxy⁡x=y⁡x⁢a⁡x+b⁡x
An integrating factor for ODE above
Μ≔intfactor⁡ODE
Μ≔ⅇ∫−a⁡xⅆx
Testing this integrating factor
mutest⁡Μ,ODE
0
A second order ODE example
ODE≔diff⁡y⁡x,x,x=−diff⁡y⁡x,x2+2⁢x⁢diff⁡y⁡x,x+2⁢y⁡xy⁡x
ODE≔ⅆ2ⅆx2y⁡x=−ⅆⅆxy⁡x2+2⁢x⁢ⅆⅆxy⁡x+2⁢y⁡xy⁡x
Μ≔1diff⁡y⁡x,x+2⁢x
Μ≔1ⅆⅆxy⁡x+2⁢x
See Also
dsolve
firint
intfactor
PDEtools
redode
Download Help Document