The math behind the perfect free throw

From a mathematical viewpoint, basketball is a game of trajectories.