Internal
problem
ID
[14617]
Book
:
Differential
Equations
by
Shepley
L.
Ross.
Third
edition.
John
Willey.
New
Delhi.
2004.
Section
:
Chapter
2,
section
2.3
(Linear
equations).
Exercises
page
56
Problem
number
:
23
Date
solved
:
Thursday, October 02, 2025 at 09:44:27 AM
CAS
classification
:
[_linear]
With initial conditions
ode:=diff(r(t),t)+r(t)*tan(t) = cos(t)^2; ic:=[r(1/4*Pi) = 1]; dsolve([ode,op(ic)],r(t), singsol=all);
ode=D[r[t],t]+r[t]*Tan[t]==Cos[t]^2; ic={r[Pi/4]==1}; DSolve[{ode,ic},r[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") r = Function("r") ode = Eq(r(t)*tan(t) - cos(t)**2 + Derivative(r(t), t),0) ics = {r(pi/4): 1} dsolve(ode,func=r(t),ics=ics)