ok so I'm having some problems with this problem, it is an optimization problem and the paper says this: The range R of a projectile whose muzzle velocity in meters per second is v, and whose angle of elevation in radians is theta, is given by R=(v^2*sin(2*theta))/g, where g is the acceleration due to gravity. Which angle of elevation gives the maximum range of the projectile?

if i could get some help figuring out how to do this, it would help me out a lot, thanks