The particle in the box poses special properties which will be useful in determining the wave solutions.
A. Both $\psi(x)$ and $\psi(-x)$ are solutions of the Schrodinger Equation for potentials in which $V(x) = V(-x)$.
For a particle of mass $m$ with a total energy $E$ and subject to a potential $V(x)$, the Time-Independent Schrodinger equation in one dimension is as follows:
\[ -\frac{\hbar^2}{2m}\frac{d^2 \psi(x)}{d x^2}+V(x)\psi(x)=E\psi(x) \tag{1}\label{Eq:SchrodingerA1} \]
If the potential $V(x)$ is an even function of $x:V(-x)=V(x)$, then replacing $x$ by $-x$ in Eq.\eqref{Eq:SchrodingerA1} gives
\[ -\frac{\hbar^2}{2m}\frac{d^2 \psi(-x)}{d x^2}+V(x)\psi(-x)=E\psi(-x) \tag{2} \label{Eq:SchrodingerA2} \]
Defining
\[ \phi(x) \equiv \psi(-x) \tag{3} \label{Eq:phipsi} \]
gives the following relationships
\[ \frac{d}{dx} \phi(x) = (-1) \cdot \frac{d}{dx} \psi(-x) \notag \label{Eq:phi1psi1} \]
\[ \frac{d^{2}}{dx^{2}} \phi(x) = \frac{d^{2}}{dx^{2}} \psi(-x) \tag{4}\label{Eq:phi2psi2} \]
Substituting Eq.\eqref{Eq:phipsi} and Eq.\eqref{Eq:phi2psi2} into Eq.\eqref{Eq:SchrodingerA2} gives
\[ -\frac{\hbar^2}{2m}\frac{d^2 \phi(x)}{d x^2}+V(x)\phi(x)=E\phi(x) \label{Eq:SchrodingerA3} \]
thereby showing that $\phi(x) = \psi(-x)$ is a solution as well.
B. Properties of the linear coefficients $A$ and $B$ for potentials in which $V(x) = V(-x)$.
For a potential that is an even function of position $x$, for example when $V(-x) = V(x)$, if $\psi_{1}=\psi(x)$ is a solution of Eq.\eqref{Eq:SchrodingerA1}, $\psi_{2} =\psi(-x)$ is a solution as well (see above).
The probability $P(a,b)$ of finding a particle in interval $[a,b]$ given by $\int_{a}^{b} \psi^{*}\psi dx$. Since both $\psi(x)$ and $\psi(-x)$ are valid solutions, then the same value for $P(a,b)$ must be obtained for either $\psi_{1}$ and $\psi_{2}$. Therefore, for an infinitesimal region $dx$,
\[ \psi^{*}(x)\psi(x) dx = \psi^{*}(-x)\psi(-x)dx \tag{5} \label{Eq:Psi(x)=Psi(-x)} \]
Since Eq.\eqref{Eq:SchrodingerA1} is a second order differential equation with a characteristic equation resulting in complex roots, two solutions result and are given by
\[ f(x) = Ae^{\imath kx} \textrm{ and } g(x) = Be^{-\imath kx} \label{Eq:f-and-g} \]
The general solution is given by a linear combination of $f(x)$ and $g(x)$. Therefore,
\[ \psi_{1} \equiv \psi(x) = Ae^{\imath kx} + Be^{-\imath kx} \tag{6} \label{Eq:Psi(x)} \]
and
\[ \psi_{2} \equiv \psi(-x) = Ae^{-\imath kx} + Be^{\imath kx} \tag{7}\label{Eq:Psi(-x)} \]
Substituting Eq.\eqref{Eq:Psi(x)} and Eq.\eqref{Eq:Psi(-x)} into Eq.\eqref{Eq:Psi(x)=Psi(-x)} gives
\[ A^{*}A + A^{*}Be^{-\imath 2kx} + AB^{*}e^{\imath 2kx} + B^{*}B = A^{*}A + A^{*}Be^{\imath 2 kx} + AB^{*}e^{-\imath 2 kx} + B^{*}B \notag \]
Cancelling like terms and rearranging gives
\[ \imath 2(A^{*}B – AB^{*})(\cos 2kx) = 0 \]
This relationship must hold true for all $x$, and therefore
\[ A^{*}B = AB^{*} \tag{8} \label{Eq:A*B=AB*} \]
It should be noted that Eq.\eqref{Eq:A*B=AB*} holds true regardless of the position of the well.
C. Symmetry of the probability about the midline of the well.
Once again, the well is placed with its left-hand edge at the $x_{L}=-L/2$ (See Figure 1.). The probability of finding the particle in interval $[-L/2, 0]$ is given by $P(-L/2,0)= \int_{-L/2}^{0} \psi^{*}(x)\psi(x)dx$. Using Eq.\eqref{Eq:Psi(x)}, the relationship in Eq.\eqref{Eq:A*B=AB*} (i.e., $A^{*}B = AB^{*}$) and noting that $k=n \pi/L$ (see Quantization of Energy) results in the following
\[ P(-L/2,0) = \int_{-L/2}^{0} (A^{*}A + A^{*}Be^{-\imath 2kx} + AB^{*}e^{\imath 2kx} + B^{*}B)dx \notag \]
\[ \qquad = \int_{-L/2}^{0} \Big [ A^{*}A + B^{*}B + 2A^{*}B \cos (kx) \Big ] dx \notag \]
\[ \qquad = \Big [ ( A^{*}A + B^{*}B ) x + \frac{1}{k} A^{*}B \sin (kx) \Big ] \Big |_{-L/2}^{0} \notag \]
\[ = ( A^{*}A + B^{*}B ) \frac{L}{2} + \frac {1}{k} A^{*}B \sin \Big ( \frac{L}{2} \Big) \tag{9} \label{Eq:FirstHalf} \]
The probability of finding the particle in interval $[0, L/2]$ is given by $P(0, L/2)= \int_{0}^{L/2} \psi^{*}(x)\psi(x)dx$ which yields
\[ P(0, L/2) = \int_{0}^{L/2} (A^{*}A + A^{*}Be^{-\imath 2kx} + AB^{*}e^{\imath 2kx} + B^{*}B)dx \notag \]
\[ \quad = \int_{0}^{L/2} \Big [ A^{*}A + B^{*}B + 2A^{*}B \cos (kx) \Big ] dx \notag \]
\[ \quad = \Big [ ( A^{*}A + B^{*}B ) x + \frac{1}{k} A^{*}B \sin (kx) \Big ] \Big |_{0}^{L/2} \]
\[ = ( A^{*}A + B^{*}B ) \frac{L}{2} + \frac {1}{k} A^{*}B \sin \Big ( \frac{L}{2} \Big) \tag{10} \label{Eq:SecondHalf} \]
Note that Eq.\eqref{Eq:FirstHalf} is equal to Eq.\eqref{Eq:SecondHalf}. As to be expected due to the symmetry of the well, the probability of finding the particle in the left half of the well is equal to finding it in the right half of the well. Consequently, since the probability of the particle being found in the well as equal to unity, then $P(-L/2,0)= P(0, L/2) = 1/2$.
More importantly, it needs to be recognized that the symmetry between either half of the box is maintained regardless of the position of the box. In other words, an observer’s frame of reference does not change the probability of finding the particle in either half of the box. Viewed in a different fashion, the position of the box doesn’t alter the probability either. In order to maintain a logical consistency, all observer’s must agree on the same probability throughout a given interval regardless of whether the well is found in the symmetric position, asymmetric position or generic position.