In this YouTube video about the particle in a box problem:
He determines that $\psi(x)=A\sin(kx)+B\cos(kx)$ is the solution to the time-independent Schrödinger equation, which is: $$\frac{\partial^2\psi}{\partial x^2}+k^2\psi=0$$ but he decides to not explain how this solution was determined. I was hoping somebody would be able to help me understand how to come up with that equation on my own. I know this is probably very simple, but I’m trying to learn quantum mechanics while not being very knowledgeable in math.