Internal
problem
ID
[9109]
Book
:
Second
order
enumerated
odes
Section
:
section
1
Problem
number
:
38
Date
solved
:
Sunday, March 30, 2025 at 02:07:20 PM
CAS
classification
:
[[_2nd_order, _missing_x]]
Time used: 0.113 (sec)
Solve
This is second order non-homogeneous ODE. In standard form the ODE is
Where \(A=1, B=0, C=1, f(x)=1\). Let the solution be
Where \(y_h\) is the solution to the homogeneous ODE \( A y''(x) + B y'(x) + C y(x) = 0\), and \(y_p\) is a particular solution to the non-homogeneous ODE \(A y''(x) + B y'(x) + C y(x) = f(x)\). \(y_h\) is the solution to
This is second order with constant coefficients homogeneous ODE. In standard form the ODE is
Where in the above \(A=1, B=0, C=1\). Let the solution be \(y=e^{\lambda x}\). Substituting this into the ODE gives
Since exponential function is never zero, then dividing Eq(2) throughout by \(e^{\lambda x}\) gives
Equation (2) is the characteristic equation of the ODE. Its roots determine the general solution form.Using the quadratic formula
Substituting \(A=1, B=0, C=1\) into the above gives
Hence
Which simplifies to
Since roots are complex conjugate of each others, then let the roots be
Where \(\alpha =0\) and \(\beta =1\). Therefore the final solution, when using Euler relation, can be written as
Which becomes
Or
Therefore the homogeneous solution \(y_h\) is
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 \(\{A_{1}\}\) are found by substituting the above trial solution \(y_p\) into the ODE and comparing coefficients. Substituting the trial solution into the ODE and simplifying gives
Solving for the unknowns by comparing coefficients results in
Substituting the above back in the above trial solution \(y_p\), gives the particular solution
Therefore the general solution is
Will add steps showing solving for IC soon.
Summary of solutions found
Time used: 1.094 (sec)
Solve
Multiplying the ode by \(y^{\prime }\) gives
Integrating the above w.r.t \(x\) gives
Which is now solved for \(y\). Solving for the derivative gives these ODE’s to solve
Now each of the above is solved separately.
Solving Eq. (1)
Integrating gives
Singular solutions are found by solving
for \(y\). This is because we had to divide by this in the above step. This gives the following singular solution(s), which also have to satisfy the given ODE.
Solving Eq. (2)
Integrating gives
Singular solutions are found by solving
for \(y\). This is because we had to divide by this in the above step. This gives the following singular solution(s), which also have to satisfy the given ODE.
Will add steps showing solving for IC soon.
Solving for \(y\) from the above solution(s) gives (after possible removing of solutions that do not verify)
The solution
was found not to satisfy the ode or the IC. Hence it is removed. The solution
was found not to satisfy the ode or the IC. Hence it is removed.
Summary of solutions found
Time used: 0.155 (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 \(r\) is given by
Substituting the values of \(A,B,C\) from (3) in the above and simplifying gives
Comparing the above to (5) shows that
Therefore eq. (4) becomes
Equation (7) is now solved. After finding \(z(x)\) then \(y\) is found using the inverse transformation
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 \(r\) and the order of \(r\) at \(\infty \). The following table summarizes these cases.
Case |
Allowed pole order for \(r\) |
Allowed value for \(\mathcal {O}(\infty )\) |
1 |
\(\left \{ 0,1,2,4,6,8,\cdots \right \} \) |
\(\left \{ \cdots ,-6,-4,-2,0,2,3,4,5,6,\cdots \right \} \) |
2 |
Need to have at least one pole that is either order \(2\) or odd order greater than \(2\). Any other pole order is allowed as long as the above condition is satisfied. Hence the following set of pole orders are all allowed. \(\{1,2\}\),\(\{1,3\}\),\(\{2\}\),\(\{3\}\),\(\{3,4\}\),\(\{1,2,5\}\). |
no condition |
3 |
\(\left \{ 1,2\right \} \) |
\(\left \{ 2,3,4,5,6,7,\cdots \right \} \) |
The order of \(r\) at \(\infty \) is the degree of \(t\) minus the degree of \(s\). Therefore
There are no poles in \(r\). Therefore the set of poles \(\Gamma \) is empty. Since there is no odd order pole larger than \(2\) and the order at \(\infty \) is \(0\) then the necessary conditions for case one are met. Therefore
Since \(r = -1\) is not a function of \(x\), then there is no need run Kovacic algorithm to obtain a solution for transformed ode \(z''=r z\) as one solution is
Using the above, the solution for the original ode can now be found. The first solution to the original ode in \(y\) is found from
Since \(B=0\) then the above reduces to
Which simplifies to
The second solution \(y_2\) to the original ode is found using reduction of order
Since \(B=0\) then the above becomes
Therefore the solution is
This is second order nonhomogeneous ODE. Let the solution be
Where \(y_h\) is the solution to the homogeneous ODE \( A y''(x) + B y'(x) + C y(x) = 0\), and \(y_p\) is a particular solution to the nonhomogeneous ODE \(A y''(x) + B y'(x) + C y(x) = f(x)\). \(y_h\) is the solution to
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 \(\{A_{1}\}\) are found by substituting the above trial solution \(y_p\) into the ODE and comparing coefficients. Substituting the trial solution into the ODE and simplifying gives
Solving for the unknowns by comparing coefficients results in
Substituting the above back in the above trial solution \(y_p\), gives the particular 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)+y(x) = 1; 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}]+y[x]==1; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(y(x) + Derivative(y(x), (x, 2)) - 1,0) ics = {} dsolve(ode,func=y(x),ics=ics)