I have this equation :
$$\frac{d\alpha}{dz} = - \frac{dr}{dz} * \frac{\tan(\alpha)}r $$
I searched for some similar examples but non of these equations was like this one. I'm confused about this one. As far as I know, I used RK4 for equations like this : $$y'(t) = F(t,y(t))$$
Thank you for helping me !
Here's the context for the equation.

I just deleted the lambda part to make the equation easier. But I still don't figure out how to solve it!
One has step by step : $$ \begin{array}{rcl} \displaystyle\frac{\mathrm{d}\alpha}{\mathrm{d}z} = -\frac{\tan\alpha}{r}\frac{\mathrm{d}r}{\mathrm{d}z} &\Leftrightarrow& \displaystyle \frac{\mathrm{d}\alpha}{\mathrm{d}z} = -\tan\alpha\,\frac{\mathrm{d}}{\mathrm{d}z}\ln r \\ &\Leftrightarrow& \displaystyle \frac{\mathrm{d}\alpha}{\tan\alpha} = -\mathrm{d}(\ln r) \\ &\Leftrightarrow& \displaystyle \int_{\alpha_0}^\alpha\frac{\cos\alpha}{\sin\alpha}\mathrm{d}\alpha = -\int_{r_0}^r\mathrm{d}(\ln r) \\ &\Leftrightarrow& \displaystyle \frac{\mathrm{d}\alpha}{\tan\alpha} = -\mathrm{d}(\ln r) \\ &\Leftrightarrow& \displaystyle \ln\left(\frac{\sin\alpha}{\sin\alpha_0}\right) = -\ln\left(\frac{r}{r_0}\right) \\ &\Leftrightarrow& \displaystyle \sin\alpha = \frac{r_0}{r}\sin\alpha_0 \\ &\Leftrightarrow& \displaystyle \alpha = \arcsin\left(\frac{r_0}{r}\sin\alpha_0\right) \end{array} $$ with $r_0 = r(z_0)$ and $\alpha_0 = \alpha(z_0)$.