The theoretical background including modeling techniques for mechanical systems is provided which allows for the computer aided generation of the symbolic equation of motion for multibody systems. It is shown how the governing equations for different types of problems in structural mechanics can be automatically derived and how to implement finite element techniques via computer algebra software. Perturbation methods as a very powerful approach for nonlinear problems are discussed in detail and are demonstrated for a number of applications.