Consider the initial value problem $\varepsilon x'' + x' + tx = 0$ where $x(0) = 0$ and $x'(0) = 1$. I'm solving this problem using a matched asymptotic expansion. First, I let $$x(t, \varepsilon) = \varepsilon x_1(t) + \varepsilon^2 x_2(t) + o(\varepsilon^2),$$ and solve at corresponding orders of $\varepsilon$ and leave the coefficients undetermined. Then I define $T = t/\varepsilon$ and let $X(\varepsilon, T) = x(\varepsilon, t)$ and write the re-scaled equation $$X'' + X' + \varepsilon TX = 0.$$
Then solve this at the corresponding orders of $\varepsilon$ for the expansion $$X(\varepsilon, T) = \varepsilon X_1(T) + \varepsilon^2 X_2(T) + o(\varepsilon^3).$$ Assuming $X$ is my solution 'inside' the boundary layer, I let $X$ satisfy the initial conditions $X(0) = 0, X'(0) = \varepsilon$. Then $X_1(0) = 0, X_1'(0) = 1$ and $X_n(0) = 0, X_n'(0) = 0$ where $n>1$. However, when I solve for the solutions 'inside' the boundary layer I get imaginary error functions. I believe this will cause me problems later in the matching.
I believe I have solved this problem without the $t$ term and I am building up to a more complicated function. I am familiar with boundary laters in the context of space, but cannot find much on these 'initial layer' problems.
I know I have not provided my solutions here, but I want to know if my method is sensible or if someone knows a better method of solving this (equations of this type). I appreciate your response.


WKB approximation
Look for basis solutions of the form $x(t)=\exp(S(t)/ε)$. Then $εx'(t)=S'(t)\exp(S(t)/ε)$ and $ε^2x''(t)=[εS''(t)+S'(t)^2]\exp(S(t)/ε)$. Inserting and canceling the exponential gives $$ 0=e^{-S/ε}(ε^2x''+εx'+εtx)=εS''(t)+S'(t)^2+S'(t)+εt \\~~\\ \iff S'(t)^2+S'(t)=-ε(S''(t)+t). $$ For simplicity name $s(t)=S'(t)$ and compute the terms of the perturbation series $s(t)=s_0(t)+εs_1(t)+...$ \begin{array}{rlrl|rl} s_0^2+s_0&=0 &\implies s_0&=0 &\text{ or }~~ s_0&=-1\\ 2s_0s_1+s_1&=-t &\implies s_1&=-t & s_1&=t \\ s_1^2+2s_0s_2+s_2&=-s_1' &\implies s_2&=1-t^2 & s_2&=1+t^2\\ \end{array}
The approximation so far is $$ x(t)=A\exp(-\tfrac12t^2+ε(t-\tfrac13t^3))+B\exp(-ε^{-1}t+\tfrac12t^2+ε(t+\tfrac13t^3)) $$ with $0=x(0)=A+B$ and $1=x'(0)=-ε^{-1}B$, so that $A=ε$, $B=-ε$.
The plot of these two approximations against the numerical solution gives a good fit even for largish values of $ε$.