In the context of an infinite potential well with boundaries at $(-a,a)$, where the potential is defined as follows:
\begin{equation} V(x) = \begin{cases} 0, & \text{if } -a \leq x \leq a \\ \infty, & \text{otherwise} \\ \end{cases} \end{equation}
Solving the Schrodinger equation, $$-\frac{\hbar^2}{2m} \frac{d^2\psi(x)}{dx^2} = E\psi(x)$$
With $k^2 = \frac{2mE}{\hbar^2}$, the general solution is deduced as: $$\psi(x) = A\sin(kx) + B\cos(kx)$$
The boundary conditions, $\psi(-a) = 0$ and $\psi(a) = 0$, lead to the simplified equations, $2A\sin(ka) = 0$ and $2B\cos(ka) = 0$
For the wave number we find that:
- for $\sin(ka) =0$ ,$k =\frac{n \pi}{a} $ for n =1,2,3,4,...
- for $\cos(ka) =0$ $k =\frac{n \pi}{2a} $ for n = 1,3,5,7,...
In most of the references which I have looked at, they try to add a factor of 1/2 in the solution for wavenumber for $\sin(ka) =0$, modifying $k$ as $$k =\frac{n \pi}{2a} \text{for} \sin(ka) =0, n =2,4,6,8...$$ As far as I know, this mathematical adaptation was to make the expression for the wavenumber consistent in both sine and cosine components. $$\psi(x) = A\sin(\frac{n \pi}{2a}x) + B\cos(\frac{n \pi}{2a}x)$$
My Question is if $sin(ka)=0$,$k=nπ/a$ can account for all the modes (n = 1,2,3,4,...),Can we write $$\psi(x) = A\sin(\frac{n \pi}{a}x)$$ as the simplified solution for the case? Wouldn`t it make the analysis easier?
Additionally, in the above mentions, boundary of an infinite potential well is at $(-a,a)$ initially, can I change the boundary to $(0,2a)$ for easier mathematical treatment?