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
- Using the position formula from the Kinematic Equations:
- Where is a normalized 3D direction vector (unit length)
Components in 3D
Unit vector check
- A fourth equation can be added taking the Vector Magnitude of the Unit Vector
- 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)
- Vector operations like Euclidean Vector Multiplication and Self Vector Multiplication let us multiply and square vectors directly in the trajectory equations.
Simplify
- Simplify to
- Rearrange to standard quartic form
Quadratic Formula
- Let (y = t_c^2). Then the quartic becomes a quadratic in (y):
- Apply the Quadratic Formula:
- 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.



