Root on A string
no fifthx5355x
Dm9 is the D minor 9 chord. Its notes are D, F, A, C and E. A minor seventh with a ninth. This compact grip omits the fifth.
x5355x
Numbers show frets from the low E string to the high e string; x means don't play that string.
Every D, F, A, C and E on the first 12 frets. The filled dots are the root, D. Build your own shape from any nearby group.
Other D chords
Other minor 9 chords