## Simulation of Forces : Solution of the Inverse Dynamics in Classical Mechanics

### Motivation

In general, studying the equations of motion of any physical system it is necessary to solve differential equations. However, very seldomly the corresponding solutions can be found in analytical form. Thus, usually only systems which are simple enough will be analysed in a physics course at universities. Situation changed considerably, however, with the availability of computer algebra systems. Using Mathematica in many cases we can easily find either analytical or numerical solutions of the equations of motion and visualize them even in the case of an intricate physical system. The analysis of such systems therefore promotes better understanding of the underlying physical principles and may help to develop physical intuition of the students.

### The Problem of Simulation of Forces

In classical mechanics the motion of a particle is determined by Newton's second law

where the position of the particle is given in Cartesian coordinates.
Here it is not assumed that this expression is a definition of the force as it is e.g. in the case of , defining the momentum of the particle, because forces can be determined independently on the lhs of Newton's second law.

Traditionally all forces considered in classical mechanics depend on coordinates and velocity of the particle, , and henceforth are well known. If, however, the particle interacts with another body whose law of motion is given then the force may even explicitly depend on time. Thus, in the general case the force is a function of three variables : and Newton's second law combined with initial conditions completely determines the motion of the particle.

On the other hand, if the law of motion of the particle is given then the resulting force acting on the particle can be found as

and may be presented as a function of time or as a function of velocity , of coordinates or some combinations of these variables.

The very first example will demonstrate that simulation of forces which occur in the equations of motion is not a trivial problem.