I am trying to analyze in general simple one dimensional QM problems. To be more specific let's consider this kind of Hamiltonian: $$H=\frac{\hat{p}^2}{2m}+V(\hat{x})$$ From this one we can derive the following: $$\frac{\partial^2\psi(x)}{\partial x^2}=\frac{2m}{\hbar ^2}(V(x)-E)\psi(x) \ \ \ \ \ \ (1)$$ Where of course $\psi(x):\mathbb{R}\to\mathbb{C}$ is the wave function.
Now for example let's consider the case of a symmetric potential well, and also let's consider the case in which $V(x)>E$. In this case my lecture notes state that we can see from (1) that $\psi ''$ has the same sign as $\psi$. Now here I have a problem: this statement would of course be true for a real value function $\psi(x):\mathbb{R}\to \mathbb{R}$, but the wave function assumes complex values, why are we authorized to treat the wave function as a real value function?
This is not the only example of this way of handling the wave function, often in my lecture notes the wave function is depicted in a $2D$ graph as if it was a real value function and not a complex one. Why can we do this? If we want to talk about real functions in this context shouldn't we consider the probability density $|\psi(x)|^2$ instead of the probability amplitude $\psi(x)$?