Internal
problem
ID
[7250]
Book
:
Mathematical
Methods
in
the
Physical
Sciences.
third
edition.
Mary
L.
Boas.
John
Wiley.
2006
Section
:
Chapter
8,
Ordinary
differential
equations.
Section
3.
Linear
First-Order
Equations.
page
403
Problem
number
:
11
Date
solved
:
Tuesday, September 30, 2025 at 04:26:13 PM
CAS
classification
:
[_linear]
ode:=diff(y(x),x)+cos(x)*y(x) = sin(2*x); dsolve(ode,y(x), singsol=all);
ode=D[y[x],x]+y[x]*Cos[x]==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) + Derivative(y(x), x),0) ics = {} dsolve(ode,func=y(x),ics=ics)