Hello! High school student in Calculus here. I need help solving the problem attached in the image. I'd like help FINDING THE SLOPE at point (pi/2, 0) according to the function:g(x) = cot x. I would greatly appreciate it, thank you! :)))

Given the function:
[tex]g(x)=\cot x[/tex]we know that the derivative of g(x) is:
[tex]g^{\prime}(x)=-\csc ^2x[/tex]then, the slope at point (pi/2,0) is:
[tex]\begin{gathered} g^{\prime}(\frac{\pi}{2})=-\csc ^2(\frac{\pi}{2})=-\frac{1}{\cos ^2(\pi)}=-\frac{1}{(-1)^2}=-\frac{1}{1}=-1 \\ \Rightarrow g^{\prime}(\frac{\pi}{2})=-1 \end{gathered}[/tex]therefore, the slope is g'(pi/2) = -1