http://disciplinas.ist.utl.pt/qgeral/mecanica/mec_resol.htm