Internal
problem
ID
[9146]
Book
:
Second
order
enumerated
odes
Section
:
section
2
Problem
number
:
25
Date
solved
:
Friday, April 25, 2025 at 05:57:55 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
Time used: 0.235 (sec)
Solve
This is second order non-homogeneous ODE. Let the solution be
Where
In normal form the ode
Becomes
Where
Applying change of variables
Where
Let
This ode is solved resulting in
Using (6) to evaluate
Substituting the above in (3) and noting that now
The above ode is now solved for
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
Or
Will add steps showing solving for IC soon.
The above solution is now transformed back to
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.281 (sec)
Solve
This is second order non-homogeneous ODE. In standard form the ODE is
Where
Where
In normal form the ode
Becomes
Where
Applying change of variables
Where
Let
Substituting the above into (4) results in
Therefore ode (3) now becomes
The above ode is now solved for
Now from (6)
Substituting the above into the solution obtained gives
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.517 (sec)
Solve
Writing the ode as
Let the solution be
Where
The generalized form of Bessel ode is given by Bowman (1958) as the following
With the standard solution
Comparing (3) to (1) and solving for
Substituting all the above into (4) gives the solution as
Therefore the homogeneous solution
The particular solution
Where
In the Variation of parameters
Where
Which gives
Therefore
Which simplifies to
Which simplifies to
Therefore Eq. (2) becomes
Which simplifies for
Hence
And Eq. (3) becomes
Which simplifies for
Hence
Therefore the particular solution, from equation (1) is
Which simplifies to
Therefore the general solution is
Will add steps showing solving for IC soon.
Summary of solutions found
Time used: 0.510 (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
The poles of
Attempting to find a solution using case
Looking at poles of order 2. The partial fractions decomposition of
For the pole at
Since the order of
Let
Comparing Eq. (9) with Eq. (8) shows that
From Eq. (9) the sum up to
Now we need to find
This shows that the coefficient of
Where
We see that the coefficient of the term
Hence
The following table summarizes the findings so far for poles and for the order of
pole |
pole order | |
|
|
| | | | |
Order of |
|
|
|
|
| | |
Now that the all
Where
Since
The above gives
Now that
Let
Substituting the above in eq. (1A) gives
The equation is satisfied since both sides are zero. Therefore the first solution to the ode
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
Where
In the Variation of parameters
Where
Which gives
Therefore
Which simplifies to
Which simplifies to
Therefore Eq. (2) becomes
Which simplifies to
Hence
And Eq. (3) becomes
Which simplifies to
Hence
Therefore the particular solution, from equation (1) is
Which simplifies to
Therefore the general solution is
Will add steps showing solving for IC soon.
Summary of solutions found
ode:=x*diff(diff(y(x),x),x)-diff(y(x),x)+4*x^3*y(x) = x^5; 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 checking if the LODE is of Euler type trying a symmetry of the form [xi=0, eta=F(x)] <- linear_1 successful <- solving first the homogeneous part of the ODE successful
ode=x*D[y[x],{x,2}]-D[y[x],x]+4*x^3*y[x]==x^5; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-x**5 + 4*x**3*y(x) + x*Derivative(y(x), (x, 2)) - Derivative(y(x), x),0) ics = {} dsolve(ode,func=y(x),ics=ics)
NotImplementedError : The given ODE -x*(-x**4 + 4*x**2*y(x) + Derivative(y(x), (x, 2))) + Derivative(y(x), x) cannot be solved by the factorable group method