This is your first reharmonization, shown as a before-and-after. The first four bars are a plain ii–V–I in C: Dm7, G7, Cmaj7. The next four bars play the exact same melody, but Db7 replaces the G7 — the tritone substitution, one of the most characteristic sounds in all of jazz harmony. Hearing the two versions back to back is the whole lesson.
The substitution works because G7 and Db7 share the same tritone: the notes B and F are the third and seventh of both chords, just trading roles. Since those guide tones are common to both, the harmonic function survives the swap. What changes is the bass: instead of G falling a fifth to C, the root now slides chromatically from Db down a half step into C. That smooth chromatic descent is the reason players reach for the tritone sub. Notice too that the melody never moves — it makes sense over either chord precisely because the guide tones are shared.
Play the two halves slowly and compare them deliberately. Same top line, same resolution, different bass motion underneath. Once you can hear that the Db7 does the same job as the G7 with a more elegant bass, you own the device, and you will start hearing where to drop it into other tunes.
Open this exact piece in SightPiano and practice with a metronome and notation — free, full-featured, no time limit on the beginner curriculum.