test a given integrating factor
mutest(mu, ODE, y(x))
ordinary differential equation
(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
ODE ≔ ⅆⅆx⁢y⁡x=y⁡x⁢a⁡x+b⁡x
An integrating factor for ODE above
Μ ≔ intfactor⁡ODE
Testing this integrating factor
A second order ODE example
ODE ≔ ⅆ2ⅆx2⁢y⁡x=−ⅆⅆx⁢y⁡x2+2⁢x⁢ⅆⅆx⁢y⁡x+2⁢y⁡xy⁡x
Μ ≔ 1ⅆⅆx⁢y⁡x+2⁢x
Download Help Document
What kind of issue would you like to report? (Optional)