Internal
problem
ID
[10999]
Book
:
Differential
Gleichungen,
E.
Kamke,
3rd
ed.
Chelsea
Pub.
NY,
1948
Section
:
Chapter
2,
linear
second
order
Problem
number
:
1003
Date
solved
:
Wednesday, March 05, 2025 at 01:36:57 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
ode:=diff(diff(y(x),x),x)+y(x)-sin(n*x) = 0; dsolve(ode,y(x), singsol=all);
ode=-Sin[n*x] + y[x] + D[y[x],{x,2}] == 0; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") n = symbols("n") y = Function("y") ode = Eq(y(x) - sin(n*x) + Derivative(y(x), (x, 2)),0) ics = {} dsolve(ode,func=y(x),ics=ics)