Internal
problem
ID
[8864]
Book
:
Own
collection
of
miscellaneous
problems
Section
:
section
3.0
Problem
number
:
6
Date
solved
:
Wednesday, March 05, 2025 at 06:57:01 AM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
Solve
With initial conditions
Time used: 0.250 (sec)
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
Or
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
Since there was duplication between the basis functions in the UC_set and the basis functions of the homogeneous solution, the trial solution is a linear combination of all the basis function in the above updated 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.185 (sec)
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
Since
Which simplifies to
The second solution
Since
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
Since there was duplication between the basis functions in the UC_set and the basis functions of the homogeneous solution, the trial solution is a linear combination of all the basis function in the above updated 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: 1.908 (sec)
In normal form the ode
Becomes
Where
The Lagrange adjoint ode is given by
Which is 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 original ode now reduces to first order ode
Or
Which is now a first order ode. This is now solved for
Comparing the above to the given ode shows that
The integrating factor
The ode becomes
Integrating gives
Dividing throughout by the integrating factor
Hence, the solution found using Lagrange adjoint equation method is
The constants can be merged to give
Will add steps showing solving for IC soon.
Summary of solutions found
ode:=diff(diff(y(x),x),x)+y(x) = sin(x); ic:=y(1) = 0; dsolve([ode,ic],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}]+y[x]==Sin[x]; ic={y[0] == 0}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(y(x) - sin(x) + Derivative(y(x), (x, 2)),0) ics = {y(1): 0} dsolve(ode,func=y(x),ics=ics)