How is the Hamiltonian & Lagrangian non-relativistic & relativistic respectively? I have read from the textbook of Matthew Schwartz on page 49 of the PDF viewer (or page 30 of the textbook) where he says:

I am interested in the last sentence of this paragraph where he says that Hamiltonians are used for non-relativistic systems while the Lagrangian is used for relativistic systems. I included the other text for context.

What I am trying to understand here is: What aspects (physical or mathematical) make the Hamiltonian good for describing non-relativistic systems and the Lagrangian good for describing relativistic systems?
 A: First of all I stress that the Hamiltonian formulation is not even Galileo covariant in classical mechanics. Also in classical mechanics the energy depends on the reference frame! From this perspective there is no good reason to prefer the Hamiltonian formulation also in classical physics.
Yet, the raised issue does not concern the principle of invariance of the form of the physical laws. Indeed,   the Hamiltonian formulation has the same form in every Minkowskian reference frame in spite of being based on a mathematical object which is not an invariant under the Poincaré group. The relativity principle is in fact  more general than the (Poincaré) covariance of physical laws, which is only a very effective language to state and handle it.
I think the preference of the Lagrangian formulation in relativistic theory relies on the fact that Minkowskian tensors have a relatively simple algebra and the use of a scalar (the Lagrangian) as the fundamental notion turns out to be  more  easy at the end of the day than exploiting the component of a tensor (the Hamiltonian).
Vice versa, in classical physics, the Lagrangian is not a Galileian scalar: it is a scalar under the internal transformations of an inertial  reference frame  but not under the classical boost. So that to prefer the Hamiltonian or the Lagrangian are choices more or less equivalent in classical physics. If one adopts from scratch the Hamiltonian formulation he/she can profitably take advantage, for instance, of the canonical formalism which is of great help in studying the problem of motion. Furthermore the formulation of the Noether theorem is physically more easy in Hamiltonian formulation: the generators of the simmetries are the conserved quantities themselves, differently than in Lagrangian formulation. These facts are also true in relativistic physics, but their statements are a bit awkward, since they use a fixed time formalism which is more natural in classical physics.
A: *

*The Lagrangian and Hamiltonian formulations are formally equivalent descriptions, and work for many relativistic and non-relativistic models, cf. e.g. this Phys.SE post. So one formulation is Lorentz covariant iff the other is, as they describe the same physical system.


*For relativistic theories, the Lagrangian description is often manifestly Lorentz covariant, while the equivalent Hamiltonian description typically breaks manifest Lorentz covariant by choosing a preferred time-coordinate. (However, there exists a couple of methods that upsets this conventional thinking, see e.g. my Phys.SE answer here. Conversely, manifest Lorentz covariance is sometimes sacrificed in order to obtain a simpler model with fewer variables.)


*In the operator formulation of quantum theories, the Hamiltonian formulation is usually preferred e.g. because it facilitates the formulation of CCRs.
