If we solve the time independent Schrödinger equation for a particle in a box of length $L$, we get:
$$\psi_n\left(x\right)=A\sin\left(\frac{\pi n}{L}x\right)$$ I then see that we normalize $A$ such that: $$A=\sqrt{\frac{2}{L}}$$ so that the sum of the probabilities is $1$. My question is, why is the amplitude the same for each eigenvector? Why can't it be dependent upon $n$?
The general solution should be (please correct me if I'm mistaken):
$$\psi\left(x,t\right)=\sum_{n=0}^{\infty}C_{n}\sqrt{\frac{2}{L}}\sin\left(\frac{\pi n}{L}x\right)e^{-i\frac{E_{n}}{\hbar}t}$$
So if I have the following initial condition: $$\psi\left(x,0\right)=P_0\sin\left(\frac{3\pi x}{L}\right)\cos\left(\frac{\pi x}{L}\right)$$
I get:
$$\psi\left(x,t\right)=\sqrt{\frac{2}{L}}\sin\left(2\frac{\pi}{L}x\right)e^{-i\frac{E_{2}}{\hbar}t}+\sqrt{\frac{2}{L}}\sin\left(3\frac{\pi}{L}x\right)e^{-i\frac{E_{3}}{\hbar}t}$$
But the sum of probabilities doesn't come out right: $$\int_{0}^{L}|\psi\left(x\right)|^{2}dx=2L\neq1$$
TL:DR; I think I have a misunderstanding concerning the normalization when working with continuous functions, I will be happy to hear what I'm doing wrong