I am trying to evaluate the integral, that comes from a physics problem, where i need to calculate the probability of hitting a crocodile 100 meters away from the launching point and the crocodile is 7 meters long. The initial velocity is 50ms^2. I used this integral to evaluate that but I am having a hard time with the calculus. $$ f(x)=\int_0^{\pi/2}d\theta\tfrac{2}{\pi}\delta\mathopen{}\left(x-\tfrac{v_i^2\sin(2\theta)}{g}\right)\mathclose{}. $$ This represents the probability of a projectile hitting a certain target 100 meters away with a given initial speed $v_i$.
I have to perform a change of variable to apply one of the properties of the delta function, but the problem is the sine function. I know I have to separate into intervals from 0 to pi/4 and pi/4 to pi/2, so I can perform a substitution and use the proprities of delta, but the density comes from a uniform distribution which in this case is 2/pi. So how do I evaluate what is inside the delta function? I dont know how to interpret.