Intro

Abstract

How to derive the ballistic trajectory for a projectile aimed at a static target, including gravity, using vector notation to find time of flight and initial direction.

Projectile position as a function of time

  • Where is a normalized 3D direction vector (unit length)

Components in 3D


Unit vector check

  • And then squaring both sides
  • Therefore

Isolate

  • Simplify using

Apply the Unit Vector Constraint to each dimension of

  • Each component of the initial direction vector can be written as:
  • Since is a unit vector:
  • Substituting the components:
  • Multiply through by to eliminate the denominator:
  • Expand the squares (slide-style quartic)

Simplify

  • Simplify to
  • Rearrange to standard quartic form

Quadratic Formula

  • Let (y = t_c^2). Then the quartic becomes a quadratic in (y):
  • Simplify the denominator:
  • Take the positive square root to find the physical solution for time of flight:
  • Usually, the smaller positive root corresponds to the direct trajectory (discard negative candidates).

Compute the initial direction vector

  • Once is known, compute directly:
  • This gives the unit vector pointing from the launch point to the target, accounting for gravity.