Internal
problem
ID
[1112]
Book
:
Elementary
differential
equations
and
boundary
value
problems,
10th
ed.,
Boyce
and
DiPrima
Section
:
Section
2.1.
Page
40
Problem
number
:
15
Date
solved
:
Tuesday, September 30, 2025 at 04:22:08 AM
CAS
classification
:
[_linear]
With initial conditions
ode:=2*y(t)+t*diff(y(t),t) = t^2-t+1; ic:=[y(1) = 1/2]; dsolve([ode,op(ic)],y(t), singsol=all);
ode=2*y[t]+t*D[y[t],t] == t^2-t+1; ic=y[1]==1/2; DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") y = Function("y") ode = Eq(-t**2 + t*Derivative(y(t), t) + t + 2*y(t) - 1,0) ics = {y(1): 1/2} dsolve(ode,func=y(t),ics=ics)