The quantum harmonic oscillator is a fundamental piece of physics. In this paper, we present a self-contained full-fledged analytical solution to the quantum harmonic oscillator. To this end, we use an eight-step procedure that only uses standard mathematical tools available in natural science, technology, engineering and mathematics disciplines. This solution is accessible not only for physics students but also for undergraduate engineering and chemistry students. We provide interactive web-based graphs for the reader to observe the shape of the wave functions for an electron and a proton when both are subject to the same potential. Each of the eight steps in our solution procedure is treated as a separate problem in order to allow the reader to quickly consult any step without the need to review the entire article.