The following question is from my single variable calculus textbook, chapter on optimization. I don't know how to get started. I know angle theta must be found. I also know that trigonometry is involved here.

The range R of a projectile fired with an initial velocity V at an angle theta with a horizontal is R = [(V)^2 * sin2(theta)]/g.

Find the angle theta such that the range is a maximum.