first, the best thing is to solve it using separation of variable i.e. as an ODE as u did
u get X''(x)-CX(x)=0 and T'(t)-CT=0
i think ur missing something in the given such as u(0,t)=u(2\pi,t)
if so the solution would be X''(x)+L^2X(x)=0
X(x)=Acos(Lx)+Bsin(Lx)
with L=-n^2*(pi)^2/(2pi)^2
the...