Internal
problem
ID
[6850]
Book
:
Differential
Equations,
By
George
Boole
F.R.S.
1865
Section
:
Chapter
2
Problem
number
:
6.4
Date
solved
:
Tuesday, September 30, 2025 at 03:55:46 PM
CAS
classification
:
[_linear]
ode:=diff(y(x),x)+cos(x)*y(x) = 1/2*sin(2*x); dsolve(ode,y(x), singsol=all);
ode=D[y[x],x]+y[x]*Cos[x]==1/2*Sin[2*x]; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(y(x)*cos(x) - sin(2*x)/2 + Derivative(y(x), x),0) ics = {} dsolve(ode,func=y(x),ics=ics)