DEtools
linearsol
find solutions of a first order linear ODE
Calling Sequence
Parameters
Description
Examples
linearsol(lode, v)
lode
-
first order linear differential equation
v
dependent variable of the lode
The linearsol routine determines whether the first argument is a first order linear ODE and, if so, returns a solution to the equation.
The first argument is a differential equation in diff or D form and the second argument is the function in the differential equation.
This function is part of the DEtools package, and so it can be used in the form linearsol(..) only after executing the command with(DEtools). However, it can always be accessed through the long form of the command by using DEtools[linearsol](..).
with⁡DEtools:
ode≔diff⁡z⁡t,t+p⁡t⁢z⁡t=q⁡t
ode≔ⅆⅆtz⁡t+p⁡t⁢z⁡t=q⁡t
linearsol⁡ode,z⁡t
z⁡t=∫q⁡t⁢ⅇ∫p⁡tⅆtⅆt+_C1⁢ⅇ∫−p⁡tⅆt
ode≔D⁡z⁡t+t2⁢z⁡t=1−t+t2
ode≔D⁡z⁡t+t2⁢z⁡t=t2−t+1
z⁡t=−1+ⅇt33+323⁢−113⁢t2⁢−123⁢Γ⁡23−t323−t2⁢−123⁢Γ⁡23,−t33−t3233−313⁢−123⁢2⁢t⁢3⁢−113⁢π3⁢Γ⁡23⁢−t313−t⁢−113⁢Γ⁡13,−t33−t3133+_C1⁢ⅇ−t33
See Also
dsolve
Download Help Document