Internal
problem
ID
[9105]
Book
:
Second
order
enumerated
odes
Section
:
section
1
Problem
number
:
34
Date
solved
:
Sunday, March 30, 2025 at 02:07:11 PM
CAS
classification
:
[[_2nd_order, _missing_y]]
Time used: 0.125 (sec)
Solve
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 real and distinct, then the solution is
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.166 (sec)
Solve
An ode of the form
is exact if
For the given ode we have
Hence
Therefore (1) becomes
Hence the ode is exact. Since we now know the ode is exact, it can be written as
Integrating gives
Substituting the above values for
We now have a first order ode to solve which is
In canonical form a linear first order is
Comparing the above to the given ode shows that
The integrating factor
The ode becomes
Integrating gives
Dividing throughout by the integrating factor
Will add steps showing solving for IC soon.
Summary of solutions found
Time used: 0.185 (sec)
Solve
This is second order ode with missing dependent variable
Then
Hence the ode becomes
Which is now solved for
In canonical form a linear first order is
Comparing the above to the given ode shows that
The integrating factor
The ode becomes
Integrating gives
Dividing throughout by the integrating factor
In summary, these are the solution found for
For solution
Since the ode has the form
In summary, these are the solution found for
Will add steps showing solving for IC soon.
Summary of solutions found
Time used: 0.076 (sec)
Solve
Integrating both sides of the ODE w.r.t
Which 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
Will add steps showing solving for IC soon.
Summary of solutions found
Time used: 0.128 (sec)
Solve
Writing the ode as
Integrating both sides of the ODE w.r.t
Which 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
In canonical form a linear first order is
Comparing the above to the given ode shows that
The integrating factor
The ode becomes
Integrating gives
Dividing throughout by the integrating factor
Will add steps showing solving for IC soon.
Time used: 0.091 (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 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
ode:=diff(diff(y(x),x),x)+diff(y(x),x) = x^2+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 -> Calling odsolve with the ODE, diff(_b(_a),_a) = _a^2-_b(_a)+_a+1, _b(_a) *** Sublevel 2 *** Methods for first order ODEs: --- Trying classification methods --- trying a quadrature trying 1st order linear <- 1st order linear successful <- high order exact linear fully integrable successful
Maple step by step
ode=D[y[x],{x,2}]+D[y[x],x]==1+x+x^2; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-x**2 - x + Derivative(y(x), x) + Derivative(y(x), (x, 2)) - 1,0) ics = {} dsolve(ode,func=y(x),ics=ics)