I am trying to work out a simple 1-D lattice model of non interacting fermions. In the simple case we have the Hamiltonian, $$ H = -J \sum_{x} a_x^\dagger a_{x+1} + a^\dagger_{x+1} a_{x}. $$
This can be diagonalized using a Fourier transform and the spectrum is found to be a cosine function.But for a single fermion I would expect the spectrum to be a quadratic function. But that's alright, because the Hamiltonian says nothing about the total number of particles in the system. I would like to enforce the condition that the total number of particles is some fixed number (say $\mu$). I thought I could do it using a Lagrange multiplier resulting in the Hamiltonian, $$ H = -J \sum_{x} a_x^\dagger a_{x+1} + a^\dagger_{x+1} a_{x} + \lambda\left( \sum _ x a^\dagger_x a_x - \mu\right). $$
But I don't know how to proceed with this. Should the Lagrange multiplier be treated as a dynamical variable? Is this the correct way to solve for a fixed number of fermions on a lattice ? Or am I missing something here ?