Working on problem 2.40 from Griffiths but can't seem to understand the first boundary condition.
We are given the potential
$V(x) = \left\{\begin{matrix} \infty & x < 0\\ \frac{-32\hbar^{2}}{ma^{2}}& 0 \leq x \leq a\\ 0 &x>a \end{matrix}\right.$
And we want to find the bound states. Since our minimum potential is $\frac{-32\hbar^{2}}{ma^{2}}$ we know that our $E$ has to be between this potential value and 0.
The problem I'm having at the moment right now with the middle region and the boundary condition at $x=0$.
In region $1$ we have that $E - V(x) > 0$ so then we having the following form of the TISE.
$\frac{d^{2}\psi}{dx^{2}} = \frac{-2mE}{\hbar^{2}}\psi$
Letting $k$ = $\frac{\sqrt{2mE}}{\hbar^{2}}$
Then we have solutions of the form
$\psi(x) = Ae^{ikx}+Be^{-ikx}$
Or
$\psi(x) = Asin(kx) + Bcos(kx)$
If you apply the boundary condition then $\psi(0) = 0$
The thing that I'm confused by is the first equation seems to suggest that $A = -B$
And the second equation suggests $B$ is $0$ because
$A\sin(0) + B\cos(0) = 0$
I know from looking this up earlier that I'm supposed to get that A is nonzero while B is zero, but I'm not sure how the two different equations match up. I should be able to arrive at the same conclusion whether or not I use complex exponentials or sines and cosines right?