The entire question reads:
Consider the mass spring system subject to an external force $f(t)$:
$$\ddot{x}+\dot{x}+x=f(t)$$
Assume $x(0) = 0$ and $\dot{x}(0) = 0$. Assume also that $f(t)$ is the force describing the striking effect on the mass of the mass spring system in a short time period $0<T<\frac{1}{2}$, given as $f(t) = \frac{\pi}{4T}\sin{\frac{\pi t}{2T}}$ when $0 \leq t<2T$ and $f(t) = 0$ when $t \geq 2T$.
(a) Solve the given IVP first for all $t \geq 0$. (b) Compute the limits $\lim_{t \to \infty} x(t)$ and $\lim_{t \to \infty} \dot{x}(t)$. (c) Compute the limits $\lim_{T \to 0}x(T)$ and $\lim_{T \to 0} \dot{x}(T)$, and discuss their physical meanings.
I've been running into trouble on part (a). If I understand correctly, the solution for when $f(t) = 0$ is just simply $x(t) = 0$, but I haven't been able to come up with a solution for when $f(t) = f(t) = \frac{\pi}{4T}\sin{\frac{\pi t}{2T}}$. If someone could walk me through the process of finding these solutions, I know I could do parts (b) and (c). Thanks!

Hint: Make an Ansatz that a particular solution $x_p$ to your differential equation takes the form $$x_p(t)=A\,\cos\left(\frac{\pi t}{2T}\right)+B\,\sin\left(\frac{\pi t}{2T}\right)\text{ for }t\in\left[0,2T\right]\,.$$ You should be able to get $A$ and $B$ by setting $\ddot{x}_p(t)+\dot{x}_p(t)+x(t)=f(t)$. Be warned that $x_p$ may not satisfy $x_p(0)=\dot{x}_p(0)=0$. If that happens, do you know how to fix this (hint again: solve the homogeneous equation $\ddot{x}+\dot{x}+x=0$)?
For $t>2T$, the solution should be a homogeneous solution. From the work above, you get $x(t)$ for $t\in[0,2T]$. Therefore, you will know the value $x(2T)$ and $\dot{x}(2T)$. Which homogeneous solution satisfies these new boundary conditions?
Parts (b) and (c) can be answered without solving Part (a) completely. We expect an exponential decay of order $\exp\left(-\frac{t}{2}\right)$ for large $t$, so the limits in Part (b) must be $0$. For Part (c), as other users mentioned, $f(t)\to \delta(t)$ as $T\to0^+$, where $\delta$ is the Dirac delta distribution. We see that $x$ is still continuous, so $\lim\limits_{T\to0^+}\,x(T)=x(0)=0$. On the other hand, $\lim\limits_{T\to0^+}\,\dot{x}(T)=\frac{1}{2}\,\left(\dot{x}(0)+\lim\limits_{T\to0^+}\,\dot{x}(2T)\right)=\frac{1}{2}(0+1)=\frac{1}{2}$.