Internal
problem
ID
[16687]
Book
:
A
book
of
problems
in
ordinary
differential
equations.
M.L.
KRASNOV,
A.L.
KISELYOV,
G.I.
MARKARENKO.
MIR,
MOSCOW.
1983
Section
:
Section
6.
Linear
equations
of
the
first
order.
The
Bernoulli
equation.
Exercises
page
54
Problem
number
:
134
Date
solved
:
Thursday, March 13, 2025 at 08:31:44 AM
CAS
classification
:
[_separable]
With initial conditions
ode:=diff(y(x),x)+y(x)*cos(x) = cos(x); ic:=y(0) = 1; dsolve([ode,ic],y(x), singsol=all);
ode=D[y[x],x]+y[x]*Cos[x]==Cos[x]; ic={y[0]==1}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(y(x)*cos(x) - cos(x) + Derivative(y(x), x),0) ics = {y(0): 1} dsolve(ode,func=y(x),ics=ics)