What is the harmonic minor scale?
Harmonic minor is the natural minor scale with its 7th raised. That gives minor keys a major V chord, so the music can resolve as strongly as it does in major. It also leaves a three-semitone gap between the ♭6 and 7, the sound of neoclassical metal and Middle Eastern melodies.
D harmonic minor has the notes D E F G A B♭ C♯.
D harmonic minor vs D natural minor
One note apart. Play both and listen to the 7th.
How to hear it
Play B♭, C♯, D slowly. That gap and then the half step home is harmonic minor.
Chords in D harmonic minor
These are the seven triads in D harmonic minor. A to Dm (V to i) is why the scale exists.
Questions
Why is it called harmonic minor?
Because it was built for harmony: the raised 7th gives the V chord a major 3rd.
What chords does D harmonic minor work over?
Dm and A7, especially the V7 to i cadence.
Which position should I learn first?
Start with the position that begins on the root: D at fret 10 on the low E string. Then learn the positions either side of it, and join them up one at a time.