Finding the Optimal Launch Angle

April 12, 2026

Problem

At what angle should you throw a ball at 15 m/s to achieve maximum distance?

Explanation

This is the classic optimization problem of intro physics: at what angle does a projectile go furthest? The answer is famous — but the derivation using calculus is gorgeous and the visualization makes the why obvious.

The Physics

From a level surface back to the same level, the range as a function of launch angle is:

R(θ)=v02sin(2θ)gR(\theta) = \dfrac{v_0^{2}\,\sin(2\theta)}{g}

For a fixed v0v_0 and gg, the only thing that matters is sin(2θ)\sin(2\theta), which oscillates between 0 and 1. To find the maximum, we use calculus: set dRdθ=0\dfrac{dR}{d\theta} = 0 and solve.

Step-by-Step Solution

Given:

  • Launch speed: v0=15  m/sv_0 = 15\;\text{m/s}
  • Gravity: g=9.81  m/s2g = 9.81\;\text{m/s}^{2}

Find: The launch angle θopt\theta_{\text{opt}} that maximizes the range RR, and the value of RR at that angle.


Step 1 — Write down the range function.

R(θ)=v02sin(2θ)g=(15)29.81sin(2θ)=2259.81sin(2θ)22.94sin(2θ)R(\theta) = \dfrac{v_0^{2}\,\sin(2\theta)}{g} = \dfrac{(15)^{2}}{9.81}\,\sin(2\theta) = \dfrac{225}{9.81}\,\sin(2\theta) \approx 22.94\,\sin(2\theta)

Step 2 — Differentiate with respect to θ\theta.

Apply the chain rule to sin(2θ)\sin(2\theta):

dRdθ=v02gddθ[sin(2θ)]=v02g2cos(2θ)=2v02cos(2θ)g\dfrac{dR}{d\theta} = \dfrac{v_0^{2}}{g} \cdot \dfrac{d}{d\theta}[\sin(2\theta)] = \dfrac{v_0^{2}}{g} \cdot 2\cos(2\theta) = \dfrac{2 v_0^{2}\cos(2\theta)}{g}

Step 3 — Set the derivative to zero and solve.

2v02cos(2θ)g=0\dfrac{2 v_0^{2}\cos(2\theta)}{g} = 0

The constants v0v_0 and gg aren't zero, so we need:

cos(2θ)=0\cos(2\theta) = 0

2θ=90°(taking the smallest positive solution)2\theta = 90° \quad\text{(taking the smallest positive solution)}

θopt=45°\boxed{\theta_{\text{opt}} = 45°}

Step 4 — Confirm it's a maximum (second-derivative test).

d2Rdθ2=4v02sin(2θ)g\dfrac{d^{2}R}{d\theta^{2}} = -\dfrac{4 v_0^{2}\sin(2\theta)}{g}

At θ=45°\theta = 45°, sin(2θ)=sin90°=1>0\sin(2\theta) = \sin 90° = 1 > 0, so the second derivative is negative — confirming a maximum.

Step 5 — Plug θ=45°\theta = 45° into the range equation.

Rmax=v02sin(90°)g=v02g=2259.8122.94  mR_{\max} = \dfrac{v_0^{2}\sin(90°)}{g} = \dfrac{v_0^{2}}{g} = \dfrac{225}{9.81} \approx 22.94\;\text{m}

We can also compute the corresponding peak height and flight time:

H=v02sin2(45°)2g=225×0.519.625.74  mH = \dfrac{v_0^{2}\sin^{2}(45°)}{2g} = \dfrac{225 \times 0.5}{19.62} \approx 5.74\;\text{m}

T=2v0sin(45°)g=2×15×0.70719.812.162  sT = \dfrac{2 v_0\sin(45°)}{g} = \dfrac{2 \times 15 \times 0.7071}{9.81} \approx 2.162\;\text{s}


Answer: The optimal launch angle is θopt=45°\theta_{\text{opt}} = 45°, which produces the maximum horizontal range of Rmax22.94  mR_{\max} \approx 22.94\;\text{m}. At this optimum, the ball reaches a peak height of about 5.74 m and flies for about 2.16 seconds.

Why 45°? An Intuition

You can think of it as a trade-off. Low angles give a lot of horizontal velocity but very little flight time. High angles give long flight times but tiny horizontal velocity. 45° is the perfect compromise — and the math agrees.

Note the symmetry: R(θ)=R(90°θ)R(\theta) = R(90° - \theta). So 30° and 60° give the same range, and so do 20° and 70°. The range curve R(θ)R(\theta) is symmetric about θ=45°\theta = 45°.

Try It

  • Sweep the angle slider — the range plot on the right shows RR vs θ\theta live, with a yellow marker on the current angle.
  • The peak of the curve is dead-center at 45°, marked by the green dashed line.
  • Increase velocity — the entire curve scales up (since Rv02R \propto v_0^{2}) but the peak stays at 45°.

Interactive Visualization

Parameters

45.00
15.00
9.81
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
Finding the Optimal Launch Angle | MathSpin