Patrick B. answered 03/12/20
Math and computer tutor/teacher
It is a linear equation:
dT/dt + kT = exp(bt)
The integrating factor is exp( integral(k)) = exp(kt)
Multiples everything by exp(kt)
dT/dt * exp(kt) + k*exp(kt)* T = exp(bt) * exp(kt) = exp( (b+k)t)
Notice that the left side is the derivative (by product rule) of:
d/dt ( T * exp(kt)) = exp ( (b+k)t)
integrating both sides with respect to time t....
T ( exp(kt)) = integral ( exp(b+k)t)
the right side integrates using the substitution U = (b+k)t ---> dU = (b+k) dt ---> dU/(b+k) = dt
T * exp(kt) = 1/(b+k) * exp((b+k)t) + C = 1/(b+k) * exp(bt+ kt) + C
multiplies everything by exp(-kt)
T = 1/(b+k) * [ exp(bt) + C * exp(-kt) ]