Internal
problem
ID
[10366]
Book
:
Second
order
enumerated
odes
Section
:
section
1
Problem
number
:
7
Date
solved
:
Wednesday, April 29, 2026 at 08:26:28 AM
CAS
classification
:
[[_2nd_order, _quadrature]]
0.086 (sec)
Entering second order ode quadrature solverIntegrating once gives
Integrating again gives
Summary of solutions found
0.381 (sec)
Entering second order linear constant coefficient ode solverThis is second order non-homogeneous ODE. In standard form the ODE is
Where \(A=1, B=0, C=0, f(x)=1\). Let the solution be
Where \(y_h\) is the solution to the homogeneous ODE
And \(y_p\) is a particular solution to the non-homogeneous ODE
Where \(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=0\). 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 the roots are
Substituting \(A=1, B=0, C=0\) into the above gives
Hence this is the case of a double root \(\lambda _{1,2} = 0\). Therefore the solution is
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 \(1\) is duplicated in the UC_set, then this basis is multiplied by extra \(x\). The UC_set becomes
Since \(x\) is duplicated in the UC_set, then this basis is multiplied by extra \(x\). The UC_set becomes
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 \(\{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
Summary of solutions found
0.528 (sec)
Entering second order linear exact ode solverAn ode of the form
is exact if
For the given ode the above values are
Hence
Therefore (1) becomes
This shows the ode is exact. Since the ode is exact, it can be written as
Integrating the above gives
Substituting the values of \(p,q,r,s\) into the above results in
Entering first order ode quadrature solverSince the ode has the form \(y^{\prime }=f(x)\), then we only need to integrate \(f(x)\). Integrating gives
Summary of solutions found
0.251 (sec)
Entering second order ode missing \(y\) solverThis is second order ode with missing dependent variable \(y\). Let
Then
Hence the ode becomes
Which is now solved for \(u(x)\) as first order ode.
Entering first order ode quadrature solverSince the ode has the form \(u^{\prime }\left (x \right )=f(x)\), then we only need to integrate \(f(x)\). Integrating gives
In summary, these are the solution found for \(y\)
For solution \(u \left (x \right ) = x +c_1\), since \(u=y^{\prime }\) then the new first order ode to solve is
Entering first order ode quadrature solverSince the ode has the form \(y^{\prime }=f(x)\), then we only need to integrate \(f(x)\). Integrating gives
In summary, these are the solution found for \((y)\)
Summary of solutions found
0.149 (sec)
Entering second order integrable as is solverIntegrating both sides of the ODE w.r.t \(x\) gives
Which is now solved for \(y\). Entering first order ode quadrature solverSince the ode has the form \(y^{\prime }=f(x)\), then we only need to integrate \(f(x)\). Integrating gives
Summary of solutions found
0.326 (sec)
Entering kovacic solverWriting 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 \(infinity\) then the necessary conditions for case one are met. Therefore
Since \(r = 0\) 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
And \(y_p\) is a particular solution to the nonhomogeneous ODE
\(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 \(1\) is duplicated in the UC_set, then this basis is multiplied by extra \(x\). The UC_set becomes
Since \(x\) is duplicated in the UC_set, then this basis is multiplied by extra \(x\). The UC_set becomes
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 \(\{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
Summary of solutions found
ode:=diff(diff(y(x),x),x) = 1; dsolve(ode,y(x), singsol=all);
Maple trace
Methods for second order ODEs: --- Trying classification methods --- trying a quadrature <- quadrature successful
Maple step by step
ode=D[y[x],{x,2}]==1; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(Derivative(y(x), (x, 2)) - 1,0) ics = {} dsolve(ode,func=y(x),ics=ics)
Python version: 3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0] Sympy version 1.14.0
classify_ode(ode,func=y(x)) ('nth_algebraic', 'nth_linear_constant_coeff_undetermined_coefficients', 'nth_linear_euler_eq_nonhomogeneous_undetermined_coefficients', 'nth_linear_constant_coeff_variation_of_parameters', 'nth_linear_euler_eq_nonhomogeneous_variation_of_parameters', 'nth_algebraic_Integral', 'nth_linear_constant_coeff_variation_of_parameters_Integral', 'nth_linear_euler_eq_nonhomogeneous_variation_of_parameters_Integral', '2nd_nonlinear_autonomous_conserved', '2nd_nonlinear_autonomous_conserved_Integral')