Internal
problem
ID
[9149]
Book
:
Second
order
enumerated
odes
Section
:
section
2
Problem
number
:
26
Date
solved
:
Sunday, March 30, 2025 at 02:23:57 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
Time used: 1.367 (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
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.728 (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
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:=diff(diff(y(x),x),x)+(1-1/x)*diff(y(x),x)+4*x^2*y(x)*exp(-2*x) = 4*(x^3+x^2)*exp(-3*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)] trying symmetries linear in x and y(x) -> Try solving first the homogeneous part of the ODE trying a symmetry of the form [xi=0, eta=F(x)] <- linear_1 successful <- solving first the homogeneous part of the ODE successful
ode=D[y[x],{x,2}]+(1-1/x)*D[y[x],x]+4*x^2*y[x]*Exp[-2*x]==4*(x^2+x^3)*Exp[-3*x]; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(4*x**2*y(x)*exp(-2*x) + (1 - 1/x)*Derivative(y(x), x) - (4*x**3 + 4*x**2)*exp(-3*x) + Derivative(y(x), (x, 2)),0) ics = {} dsolve(ode,func=y(x),ics=ics)
NotImplementedError : The given ODE -x*(4*x**3 - 4*x**2*y(x)*exp(x) + 4*x**2 - exp(3*x)*Derivative(y(x), (x, 2)))*exp(-3*x)/(x - 1) + Derivative(y(x), x) cannot be solved by the factorable group method