Unit Step Function defined $$ u(t) = \Biggl\{ \begin{array}{cc} 0 && t \lt 0 \\ 1 && t \gt 0 \end{array} $$ Laplace Transform $$ L(u(t)) = L(1) = \frac{1}{s} $$ This function can be used to represent piecewise discontinuous functions
$$ y' + 2t y = t, \;\; t \le 2 $$ $$ f = e^{\int 2 t dt} = e^{t^2}$$ $$ f y' + f 2t y = (f y)' = f t $$ $$ f y = \int e^{t^2} t dt = \frac{1}{2} e^{t^2} + c_1 $$ $$ y(t) = c_1 e^{-t^2} + \frac{1}{2} $$ $$ y(0) = c_1 + \frac{1}{2} = 2 \to c_1 = \frac{3}{2}$$ $$ y(t) = \frac{3}{2} e^{-t^2} + \frac{1}{2}, \;\; t \le 2 $$ $$ y(2) = \frac{3}{2} e^{-4} + \frac{1}{2} $$ $$ y' = t, \;\; t \ge 2 $$ $$ y(t) = \frac{t^2}{2} + c_1, \;\; t \ge 2 $$ $$ y(2) = 2 + c_1 = \frac{3}{2} e^{-4} + \frac{1}{2} \to c_1 = \frac{3}{2} e^{-4} - \frac{3}{2} $$ $$ y(t) = \frac{t^2}{2} + \frac{3}{2} e^{-4} - \frac{3}{2}, \;\; t \ge 2 $$