It is poor parallelism, but the phrase is supposed to collocate like this: for both inspiration and to illustrate your poem = to be used to inspire you or your readers and also used to illustrate your poem.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
DS I mean does "for both something" always refer to the speak and the intended audience?No, never. 'Both' here refers to (1) inspiration and (2) illustration.