My question is about understanding the different solutions of the potential square well.
Imagine a square well defined this way:
$$ V(x) = \begin{cases} ∞&\,{\rm if} x<0 \\ 0&\,{\rm if}\,x\in\left(0,L\right) \\ ∞&\,{\rm if} x>L. \end{cases} $$
When applying the time-independent Schrodinger Equation we get:
$$ -\frac{\hbar^2}{2m} \frac{∂^2\psi}{∂x^2} =E\psi,$$ and then:
$$ \frac{∂^2\psi}{∂x^2} =-\frac{2mE}{\hbar^2}\psi.$$
If we define $k_1^2=-\frac{2mE}{\hbar^2}$ we get the solution $$\psi_1=Ae^{k_1x}+Be^{-k_1x}.$$
But if we define $k_2^2=\frac{2mE}{\hbar^2}$ we get the solution $$\psi_2=Ae^{ik_2x}+Be^{-ik_2x}.$$
The way I see it one solution describes the wave-function using real-valued exponential functions, while the other describes it using complex-valued exponentials (or sines and cosines, using Euler's formula).
With this "mathematical difference", can anyone help me understand if there is any "physical difference" between both solutions? Do they describe different wave-functions? Is there something simple I'm missing?
PS: This question is not homework. Is about me trying to understand the solutions of the infinite potential square well.