Having the [tex]\frac{d}{dz}[/tex] out by itself can sometimes make things confusing. Try expanding out the parentheses so the [tex]\psi[/tex] can stick onto the derivative. Also, for a moment, let's ignore the fact that it's a second derivative, and pretend it's only a first derivative. So we now have
[tex]\frac{d\psi}{dz}[/tex]
We're assuming this matches up to the original problem, so this term must turn into some kind of d/dx. That term just has constants on it, so the translation between one and the other must just be a simple coefficient. So if we call that A, then we have
[tex]\frac{d\psi}{dz}=A\frac{d\psi}{dx}[/tex]
You should now be able to find a calculus rule that tells you how to calculate A.