It was invented in the context of classical mechanics, but is generally useful in modern physics.