Internal
problem
ID
[2959]
Book
:
Differential
Equations
by
Alfred
L.
Nelson,
Karl
W.
Folley,
Max
Coral.
3rd
ed.
DC
heath.
Boston.
1964
Section
:
Exercise
10,
page
41
Problem
number
:
2
Date
solved
:
Sunday, March 30, 2025 at 01:02:05 AM
CAS
classification
:
[_linear]
ode:=diff(y(x),x)-x*y(x) = exp(1/2*x^2)*cos(x); dsolve(ode,y(x), singsol=all);
ode=D[y[x],x]-x*y[x]==Exp[x^2/2]*Cos[x]; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-x*y(x) - exp(x**2/2)*cos(x) + Derivative(y(x), x),0) ics = {} dsolve(ode,func=y(x),ics=ics)