I'm solving this equation using Laplace transform
$$ Y''(t) + (t+1)Y'(t) + tY(t) = 0 $$
and I know that $Y(0)=1$ and $Y`(0)=-1$, so I start solving it taking Laplace transform
$$ \mathcal{L}\{Y''(t)\} + \mathcal{L}\{tY'(t)\} + \mathcal{L}\{Y'(t)\} + \mathcal{L}\{tY(t)\} $$
calculating the transforms,
$$ \mathcal{L}\{Y(t)\} = f(s) $$ $$ \mathcal{L}\{Y'(t)\} = sf(s)-1 $$ $$ \mathcal{L}\{Y''(t)\} = s^2f(s)-s+1 $$ $$ \mathcal{L}\{tY(t)\} = -f'(s) $$ $$ \mathcal{L}\{tY'(t)\} = -f(s)-sf'(s)$$
I get
$$ s^2f(s) + sf(s) - f(s) -s -sf'(s) - f'(s) = 0 $$
what I have to do now?
Try solving the ODE! We have
$\frac{s^2+s-1}{s+1}f(s) - f'(s) = \frac{s}{s+1}$
Now you can apply the standard method: factorize the LHS into $(-g(s)f(s))'/g(s)$ where $g(s) = \exp(-\int \frac{s^2+s+1}{s+1})$ and then integrate up and solve. From experience it looks like the solution should be something like
$f(s) = \frac{A}{s+1}$
Plugging this in gives $A=1$ so this is indeed the correct solution
Now just invert this to find $Y(t) = \exp(-t)$