I've been trying to solve the telegraph equation by the method of separation of variables. The equation is given by: \begin{align*} u_{tt}+au_t+bu&=c^2u_{xx}, \quad 0<x<l, \quad t>0\\ u(x,0) &= f(x), \quad u_t(x,0) = 0\\ u(0,t)=u(l,t)&=0 \end{align*}
I suppose that $u(x,t)=X(x)T(t)$, and found the next equations \begin{align*} X^{''}-\lambda X &= 0\\ T^{''}+aT^{'}+(b-\lambda c^2)T&=0 \end{align*}
Also, I found that the non-trivial solution for $X$ is when $\lambda <0$. Consequently, $X_n(x)=Asin\left(\frac{n\pi x}{l}\right)$, with $\lambda = -\left(\frac{n\pi}{l}\right)^2$, and $A$ constant. Nevertheless, I'm stuck with the solution for $T$, I know that the roots of the characteristic polynomial are given by: \begin{align*} r_i=\frac{-a\pm\sqrt{a^2-4(b-\lambda c^2)}}{2} \end{align*}
But I don't know how to treat with that. Thanks :)