Internal
problem
ID
[1121]
Book
:
Elementary
differential
equations
and
boundary
value
problems,
10th
ed.,
Boyce
and
DiPrima
Section
:
Section
2.1.
Page
40
Problem
number
:
24
Date
solved
:
Tuesday, March 04, 2025 at 12:09:44 PM
CAS
classification
:
[_linear]
With initial conditions
ode:=(t+1)*y(t)+t*diff(y(t),t) = 2*t/exp(t); ic:=y(1) = a; dsolve([ode,ic],y(t), singsol=all);
ode=(1+t)*y[t]+t*D[y[t],t] == 2*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(t*Derivative(y(t), t) - 2*t*exp(-t) + (t + 1)*y(t),0) ics = {y(1): a} dsolve(ode,func=y(t),ics=ics)