The purpose of this thesis is the extension to be relativistic case of a method that has proved useful for the solution of various potential problems in non relativistic situation. This method, the method of dynamical symmetries, is based on the Baker-Campbell-Hausdorf formulae and developed first for the particular example of the relativistic Coulomb problem. Here we generalize the method for a Hamiltonian that can be written as a linear combination of generators of the SO(2,1) group. As illustrative examples, we solve the problem of a charged particle in a constant magnetic field and the exponential magnetic field. (author). 21 refs.