Internal
problem
ID
[10350]
Book
:
First
order
enumerated
odes
Section
:
section
4.
First
order
odes
solved
using
series
method
Problem
number
:
5
Date
solved
:
Monday, March 09, 2026 at 03:35:09 AM
CAS
classification
:
[_separable]
Series expansion around \(x=0\).
Entering first order ode series solverEntering first order ode series solver frobenius solverSince this is an inhomogeneous, then let the solution be
Where \(y_h\) is the solution to the homogeneous ode \(y^{\prime } x +y = 0\),and \(y_p\) is a particular solution to the inhomogeneous ode. First, we solve for \(y_h\) Let the homogeneous 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\) in each summation term. Going over each summation term above with power of \(x\) in it which is not already \(x^{n +r}\) 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\).
The indicial equation is obtained from \(n=0\). From Eq (2) this gives
When \(n=0\) the above becomes
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
Since the above is true for all \(x\) then the indicial equation simplifies to
Solving for \(r\) gives the root of the indicial equation as
From the above we see that there is no recurrence relation since there is only one summation term. Therefore all \(a_{n}\) terms are zero except for \(a_{0}\). Hence
Now the particular solution is found Solving the balance equation \(\left (x^{m} m +x^{m}\right ) c_{0} = 1\) for \([c_{0}, m]\) gives
Hence the particular solution is
The solution is
| | |
| Direction field \(y^{\prime } x +y = 1\) | Isoclines for \(y^{\prime } x +y = 1\) |
Order:=6; ode:=x*diff(y(x),x)+y(x) = 1; dsolve(ode,y(x),type='series',x=0);
Maple trace
Methods for first order ODEs: --- Trying classification methods --- trying a quadrature trying 1st order linear <- 1st order linear successful
Maple step by step
ode=x*D[y[x],x]+y[x]==1; AsymptoticDSolveValue[ode,y[x],{x,0,5}]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(x*Derivative(y(x), x) + y(x) - 1,0) ics = {} dsolve(ode,func=y(x),ics=ics,hint="1st_power_series",x0=0,n=6)
ValueError : ODE x*Derivative(y(x), x) + y(x) - 1 does not match hint 1st_power_series
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)) ('factorable', 'separable', '1st_exact', '1st_linear', 'Bernoulli', 'almost_linear', 'linear_coefficients', 'separable_reduced', 'lie_group', 'nth_linear_euler_eq_nonhomogeneous_undetermined_coefficients', 'nth_linear_euler_eq_nonhomogeneous_variation_of_parameters', 'separable_Integral', '1st_exact_Integral', '1st_linear_Integral', 'Bernoulli_Integral', 'almost_linear_Integral', 'linear_coefficients_Integral', 'separable_reduced_Integral', 'nth_linear_euler_eq_nonhomogeneous_variation_of_parameters_Integral')