A direct computation of a certain family of integrals