I am trying to integrate:
$$\int x \sqrt{-x^2+6x-8} \ dx $$
After a substitution $x-3=\cos \ \theta$, I got that the integral written above is equal to:
$$\int (\cos \ \theta +3)\sqrt{\sin^2 \ \theta}(-\sin \ \theta \ d\theta)$$
I see often in problem solutions on the internet, that you write $\sin \ \theta$ instead of the square root above. After that step, integration is something I know how to do.
My question is stated in the question topic. Why can we say that the square root is equivalent to $\sin$? Can't the $\sin$ be negative?
Could you provide me with an explanation? Cheers.