Pergunta de entrevista da empresa Allen Control Systems

The question was essentially a derivative dot product type question