Pātuhitia tēnei: The theory and application of harmonic integrals