AbstractWe solve the problem of finding a simultaneous matrix normal form for an element of the Lie algebra o(p, q) and the underlying indefinite inner product. The results are used to determine several classes of classical Hamiltonian dynamical systems which possess a first integral linear in the momentum variables.