Internal
problem
ID
[8965]
Book
:
Own
collection
of
miscellaneous
problems
Section
:
section
5.0
Problem
number
:
5
Date
solved
:
Friday, April 25, 2025 at 05:27:03 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
Time used: 0.083 (sec)
Solve
The ode satisfies this form
Where
Multiplying both sides of the ODE by the integrating factor
Integrating once gives
Integrating again gives
Hence the solution is
Or
Will add steps showing solving for IC soon.
Summary of solutions found
Time used: 0.267 (sec)
Solve
This is second order non-homogeneous ODE. Let the solution be
Where
In normal form the given ode is written as
Where
Calculating the Liouville ode invariant
Since the Liouville ode invariant does not depend on the independent variable
is used to change the original ode to a constant coefficients ode in
Hence (3) becomes
Applying this change of variable to the original ode results in
Which is now solved for
The above ode can be simplified to
The ODE simplifies to
Integrating twice gives the solution
Will add steps showing solving for IC soon.
Now that
But from (5)
Hence (7) becomes
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 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
Time used: 0.135 (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
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:=4*x^2*diff(diff(y(x),x),x)+(-8*x^2+4*x)*diff(y(x),x)+(4*x^2-4*x-1)*y(x) = 4*x^(1/2)*exp(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 checking if the LODE is of Euler type trying a symmetry of the form [xi=0, eta=F(x)] checking if the LODE is missing y -> Trying a Liouvillian solution using Kovacics algorithm A Liouvillian solution exists Reducible group (found an exponential solution) <- Kovacics algorithm successful <- solving first the homogeneous part of the ODE successful
ode=4*x^2*D[y[x],{x,2}]+(-8*x^2+4*x)*D[y[x],x]+(4*x^2-4*x-1)*y[x] == 4*x^(1/2)*Exp[x]; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-4*sqrt(x)*exp(x) + 4*x**2*Derivative(y(x), (x, 2)) + (-8*x**2 + 4*x)*Derivative(y(x), x) + (4*x**2 - 4*x - 1)*y(x),0) ics = {} dsolve(ode,func=y(x),ics=ics)
NotImplementedError : The given ODE Derivative(y(x), x) - (-sqrt(x)*exp(x) + x**2*y(x) + x**2*Derivative(y(x), (x, 2)) - x*y(x) - y(x)/4)/(x*(2*x - 1)) cannot be solved by the factorable group method