I want to make the substition $u = \cos^2\left(\dfrac{\pi t}{2}\right)$
Now I understand that $du = -\pi \sin\left(\dfrac{\pi t}{2}\right)\cos\left(\dfrac{\pi t}{2}\right)dt$
But then my professor wrote $\cos\left(\dfrac{\pi t}{2}\right)~dt = -\dfrac{1}{\pi}du \sin\left(\dfrac{\pi t}{2}\right)$ Which I dont understand.
Shouldn't it be $\cos\left(\dfrac{\pi t}{2}\right)~dt = -\dfrac{1}{\pi}~du \dfrac{1}{\sin\left(\dfrac{\pi t}{2}\right)}$?