Internal
problem
ID
[10246]
Book
:
Own
collection
of
miscellaneous
problems
Section
:
section
5.0
Problem
number
:
11
Date
solved
:
Monday, March 09, 2026 at 03:25:14 AM
CAS
classification
:
[[_2nd_order, _quadrature]]
Series expansion around \(x=0\).
Series expansion around \(x=0\).
Entering second order ode series solverThe type of the expansion point is first determined. This is done on the homogeneous part of the ODE.
The following is summary of singularities for the above ode. Writing the ode as
Where
Combining everything together gives the following summary of singularities for the ode as
Regular singular points : \([\infty ]\)
Irregular singular points : \([]\)
Since \(x = 0\) is regular singular point, then Frobenius power series is used. Entering second order ode series frobenius solverSince this is an inhomogeneous, then let the solution be
Where \(y_h\) is the solution to the homogeneous ode \(y^{\prime \prime } = 0\), and \(y_p\) is a particular solution to the inhomogeneous ode.which is found using the balance equation generated from indicial equation
First, we solve for \(y_h\) Let the solution be represented as Frobenius power series of the form
Then
Substituting the above back into the ode gives
Which simplifies to
The next step is to make all powers of \(x\) be \(n +r -2\) in each summation term. Going over each summation term above with power of \(x\) in it which is not already \(x^{n +r -2}\) and adjusting the power and the corresponding index gives Substituting all the above in Eq (2A) gives the following equation where now all powers of \(x\) are the same and equal to \(n +r -2\).
The indicial equation is obtained from \(n = 0\). From Eq (2B) this gives
When \(n = 0\) the above becomes
Or
Since \(a_{0}\neq 0\) then the above simplifies to
Since the above is true for all \(x\) then the indicial equation becomes
Solving for \(r\) gives the roots of the indicial equation as
The corresponding balance equation is found by replacing \(r\) by \(m\) and \(a\) by \(c\) to avoid confusing terms between particular solution and the homogeneous solution. Hence the balance equation is
This equation will used later to find the particular solution.
Since \(a_{0}\neq 0\) then the indicial equation becomes
Solving for \(r\) gives the roots of the indicial equation as \([1, 0]\).
Since \(r_1 - r_2 = 1\) is an integer, then we can construct two linearly independent solutions
Or
Or
Where \(C\) above can be zero. We start by finding \(y_{1}\). Eq (2B) derived above is now used to find all \(a_{n}\) coefficients. The case \(n = 0\) is skipped since it was used to find the roots of the indicial equation. \(a_{0}\) is arbitrary and taken as \(a_{0} = 1\). For \(0\le n\) the recursive equation is
Solving for \(a_{n}\) from recursive equation (4) gives
Which for the root \(r = 1\) becomes
At this point, it is a good idea to keep track of \(a_{n}\) in a table both before substituting \(r = 1\) and after as more terms are found using the above recursive equation.
| \(n\) | \(a_{n ,r}\) | \(a_{n}\) |
| \(a_{0}\) | \(1\) | \(1\) |
For \(n = 1\), using the above recursive equation gives
And the table now becomes
| \(n\) | \(a_{n ,r}\) | \(a_{n}\) |
| \(a_{0}\) | \(1\) | \(1\) |
| \(a_{1}\) | \(0\) | \(0\) |
For \(n = 2\), using the above recursive equation gives
And the table now becomes
| \(n\) | \(a_{n ,r}\) | \(a_{n}\) |
| \(a_{0}\) | \(1\) | \(1\) |
| \(a_{1}\) | \(0\) | \(0\) |
| \(a_{2}\) | \(0\) | \(0\) |
For \(n = 3\), using the above recursive equation gives
And the table now becomes
| \(n\) | \(a_{n ,r}\) | \(a_{n}\) |
| \(a_{0}\) | \(1\) | \(1\) |
| \(a_{1}\) | \(0\) | \(0\) |
| \(a_{2}\) | \(0\) | \(0\) |
| \(a_{3}\) | \(0\) | \(0\) |
For \(n = 4\), using the above recursive equation gives
And the table now becomes
| \(n\) | \(a_{n ,r}\) | \(a_{n}\) |
| \(a_{0}\) | \(1\) | \(1\) |
| \(a_{1}\) | \(0\) | \(0\) |
| \(a_{2}\) | \(0\) | \(0\) |
| \(a_{3}\) | \(0\) | \(0\) |
| \(a_{4}\) | \(0\) | \(0\) |
For \(n = 5\), using the above recursive equation gives
And the table now becomes
| \(n\) | \(a_{n ,r}\) | \(a_{n}\) |
| \(a_{0}\) | \(1\) | \(1\) |
| \(a_{1}\) | \(0\) | \(0\) |
| \(a_{2}\) | \(0\) | \(0\) |
| \(a_{3}\) | \(0\) | \(0\) |
| \(a_{4}\) | \(0\) | \(0\) |
| \(a_{5}\) | \(0\) | \(0\) |
Using the above table, then the solution \(y_{1}\left (x \right )\) is
Now the second solution \(y_{2}\left (x \right )\) is found. Let
Where \(N\) is positive integer which is the difference between the two roots. \(r_{1}\) is taken as the larger root. Hence for this problem we have \(N=1\). Now we need to determine if \(C\) is zero or not. This is done by finding \(\lim _{r\rightarrow r_{2}}a_{1}\left (r \right )\). If this limit exists, then \(C = 0\), else we need to keep the log term and \(C \neq 0\). The above table shows that
Therefore
The limit is \(0\). Since the limit exists then the log term is not needed and we can set \(C = 0\). Therefore the second solution has the form
Eq (3) derived above is used to find all \(b_{n}\) coefficients. The case \(n = 0\) is skipped since it was used to find the roots of the indicial equation. \(b_{0}\) is arbitrary and taken as \(b_{0} = 1\). For \(0\le n\) the recursive equation is
Which for for the root \(r = 0\) becomes
Solving for \(b_{n}\) from the recursive equation (4) gives
Which for the root \(r = 0\) becomes
At this point, it is a good idea to keep track of \(b_{n}\) in a table both before substituting \(r = 0\) and after as more terms are found using the above recursive equation.
| \(n\) | \(b_{n ,r}\) | \(b_{n}\) |
| \(b_{0}\) | \(1\) | \(1\) |
For \(n = 1\), using the above recursive equation gives
And the table now becomes
| \(n\) | \(b_{n ,r}\) | \(b_{n}\) |
| \(b_{0}\) | \(1\) | \(1\) |
| \(b_{1}\) | \(0\) | \(0\) |
For \(n = 2\), using the above recursive equation gives
And the table now becomes
| \(n\) | \(b_{n ,r}\) | \(b_{n}\) |
| \(b_{0}\) | \(1\) | \(1\) |
| \(b_{1}\) | \(0\) | \(0\) |
| \(b_{2}\) | \(0\) | \(0\) |
For \(n = 3\), using the above recursive equation gives
And the table now becomes
| \(n\) | \(b_{n ,r}\) | \(b_{n}\) |
| \(b_{0}\) | \(1\) | \(1\) |
| \(b_{1}\) | \(0\) | \(0\) |
| \(b_{2}\) | \(0\) | \(0\) |
| \(b_{3}\) | \(0\) | \(0\) |
For \(n = 4\), using the above recursive equation gives
And the table now becomes
| \(n\) | \(b_{n ,r}\) | \(b_{n}\) |
| \(b_{0}\) | \(1\) | \(1\) |
| \(b_{1}\) | \(0\) | \(0\) |
| \(b_{2}\) | \(0\) | \(0\) |
| \(b_{3}\) | \(0\) | \(0\) |
| \(b_{4}\) | \(0\) | \(0\) |
For \(n = 5\), using the above recursive equation gives
And the table now becomes
| \(n\) | \(b_{n ,r}\) | \(b_{n}\) |
| \(b_{0}\) | \(1\) | \(1\) |
| \(b_{1}\) | \(0\) | \(0\) |
| \(b_{2}\) | \(0\) | \(0\) |
| \(b_{3}\) | \(0\) | \(0\) |
| \(b_{4}\) | \(0\) | \(0\) |
| \(b_{5}\) | \(0\) | \(0\) |
Using the above table, then the solution \(y_{2}\left (x \right )\) is
Therefore the homogeneous solution is
The particular solution is found by solving for \(c,m\) the balance equation
Where \(F(x)\) is the RHS of the ode. If \(F(x)\) has more than one term, then this is done for each term one at a time and then all the particular solutions are added. The function \(F(x)\) will be converted to series if needed. in order to solve for \(c_n,m\) for each term, the same recursive relation used to find \(y_h(x)\) is used to find \(c_n,m\) which is used to find the particular solution \(\sum _{n=0} c_n x^{n+m}\) by replacing \(a_n\) by \(c_n\) and \(r\) by \(m\).
The following are the values of \(a_n\) found in terms of the indicial root \(r\).
| \(a_{1} = 0\) |
| \(a_{2} = 0\) |
| \(a_{3} = 0\) |
| \(a_{4} = 0\) |
| \(a_{5} = 0\) |
Unable to solve the balance equation \(m \left (-1+m \right ) c_{0} x^{-2+m}\) for \(c_{0}\) and \(x\). No particular solution exists.
Failed to convert RHS \(\frac {1}{x}\) to series in order to find particular solution. Unable to solve. Terminating Unable to find the particular solution or no solution exists.
Order:=6; ode:=diff(diff(y(x),x),x) = 1/x; dsolve(ode,y(x),type='series',x=0);
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/x; ic={}; AsymptoticDSolveValue[{ode,ic},y[x],{x,0,5}]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(Derivative(y(x), (x, 2)) - 1/x,0) ics = {} dsolve(ode,func=y(x),ics=ics,hint="2nd_power_series_regular",x0=0,n=6)
ValueError : ODE Derivative(y(x), (x, 2)) - 1/x does not match hint 2nd_power_series_regular
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_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')