Internal
problem
ID
[1123]
Book
:
Elementary
differential
equations
and
boundary
value
problems,
10th
ed.,
Boyce
and
DiPrima
Section
:
Section
2.1.
Page
40
Problem
number
:
26
Date
solved
:
Saturday, March 29, 2025 at 10:39:50 PM
CAS
classification
:
[_linear]
With initial conditions
ode:=cos(t)*y(t)+sin(t)*diff(y(t),t) = exp(t); ic:=y(1) = a; dsolve([ode,ic],y(t), singsol=all);
ode=Cos[t]*y[t]+Sin[t]*D[y[t],t] == Exp[t]; ic=y[1]==a; DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") y = Function("y") ode = Eq(y(t)*cos(t) - exp(t) + sin(t)*Derivative(y(t), t),0) ics = {y(1): a} dsolve(ode,func=y(t),ics=ics)