Internal
problem
ID
[9164]
Book
:
Second
order
enumerated
odes
Section
:
section
2
Problem
number
:
42
Date
solved
:
Friday, April 25, 2025 at 05:58:43 PM
CAS
classification
:
[[_high_order, _linear, _nonhomogeneous]]
Time used: 0.163 (sec)
The characteristic equation is
The roots of the above equation are
Therefore the homogeneous solution is
The fundamental set of solutions for the homogeneous solution are the following
This is higher order nonhomogeneous ODE. Let the solution be
Where
Now the particular solution to the given ODE is found
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
Since
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
ode:=diff(diff(diff(diff(y(x),x),x),x),x)-diff(diff(diff(y(x),x),x),x)-3*diff(diff(y(x),x),x)+5*diff(y(x),x)-2*y(x) = x*exp(x)+3*exp(-2*x); dsolve(ode,y(x), singsol=all);
Maple trace
Methods for high order ODEs: --- Trying classification methods --- trying a quadrature trying high order exact linear fully integrable trying differential order: 4; linear nonhomogeneous with symmetry [0,1] trying high order linear exact nonhomogeneous trying differential order: 4; missing the dependent variable checking if the LODE has constant coefficients <- constant coefficients successful
Maple step by step
ode=D[y[x],{x,4}]-D[y[x],{x,3}]-3*D[y[x],{x,2}]+5*D[y[x],x]-2*y[x]==x*Exp[x]+3*Exp[-2*x]; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-x*exp(x) - 2*y(x) + 5*Derivative(y(x), x) - 3*Derivative(y(x), (x, 2)) - Derivative(y(x), (x, 3)) + Derivative(y(x), (x, 4)) - 3*exp(-2*x),0) ics = {} dsolve(ode,func=y(x),ics=ics)