Internal
problem
ID
[9096]
Book
:
Second
order
enumerated
odes
Section
:
section
1
Problem
number
:
25
Date
solved
:
Sunday, March 30, 2025 at 02:06:56 PM
CAS
classification
:
[[_2nd_order, _with_linear_symmetries]]
Time used: 0.159 (sec)
Solve
This is second order non-homogeneous ODE. In standard form the ODE is
Where
Where
This is second order with constant coefficients homogeneous ODE. In standard form the ODE is
Where in the above
Since
exponential function is never zero, then dividing Eq(2) throughout by
Equation (2) is the characteristic equation of the ODE. Its roots determine the general solution form.Using the quadratic formula
Substituting
Hence
Which simplifies to
Since roots are complex conjugate of each others, then let the roots be
Where
Which becomes
Therefore the homogeneous solution
The particular solution is now found using the method of undetermined coefficients. Looking at the RHS of the ode, which is
Shows that the corresponding undetermined set of the basis functions (UC_set) for the trial solution is
While the set of the basis functions for the homogeneous solution found earlier is
Since there is no duplication between the basis function in the UC_set and the basis functions of the homogeneous solution, the trial solution is a linear combination of all the basis in the UC_set.
The unknowns
Solving for the unknowns by comparing coefficients results in
Substituting the above back in the above trial solution
Therefore the general solution is
Will add steps showing solving for IC soon.
Summary of solutions found
Time used: 0.297 (sec)
Solve
Writing the ode as
Comparing (1) and (2) shows that
Applying the Liouville transformation on the dependent variable gives
Then (2) becomes
Where
Substituting the values of
Comparing the above to (5) shows that
Therefore eq. (4) becomes
Equation (7) is now solved. After finding
The first step is to determine the case of Kovacic algorithm this ode belongs to. There are 3 cases depending on the order of poles of
Case |
Allowed pole order for |
Allowed value for |
1 |
|
|
2 |
Need to have at least one pole
that is either order |
no condition |
3 |
|
|
The order of
There are no poles in
Since
Using the above, the solution for the original ode can now be found. The first solution to the original ode in
Which simplifies to
The second solution
Substituting gives
Therefore the solution is
This is second order nonhomogeneous ODE. Let the solution be
Where
The homogeneous solution is found using the Kovacic algorithm which results in
The particular solution is now found using the method of undetermined coefficients. Looking at the RHS of the ode, which is
Shows that the corresponding undetermined set of the basis functions (UC_set) for the trial solution is
While the set of the basis functions for the homogeneous solution found earlier is
Since there is no duplication between the basis function in the UC_set and the basis functions of the homogeneous solution, the trial solution is a linear combination of all the basis in the UC_set.
The unknowns
Solving for the unknowns by comparing coefficients results in
Substituting the above back in the above trial solution
Therefore the general solution is
Will add steps showing solving for IC soon.
Summary of solutions found
ode:=diff(diff(y(x),x),x)+diff(y(x),x)+y(x) = x; dsolve(ode,y(x), singsol=all);
Maple trace
Methods for second order ODEs: --- Trying classification methods --- trying a quadrature trying high order exact linear fully integrable trying differential order: 2; linear nonhomogeneous with symmetry [0,1] trying a double symmetry of the form [xi=0, eta=F(x)] -> Try solving first the homogeneous part of the ODE checking if the LODE has constant coefficients <- constant coefficients successful <- solving first the homogeneous part of the ODE successful
Maple step by step
ode=D[y[x],{x,2}]+D[y[x],x]+y[x]==x; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-x + y(x) + Derivative(y(x), x) + Derivative(y(x), (x, 2)),0) ics = {} dsolve(ode,func=y(x),ics=ics)