Buy Elegy!
An elegy is a sad poem, usually written to praise and express sorrow for someone who is dead. You might compose an elegy to someone you have loved and lost to the grave.
In contrast, a eulogy is a speech at a funeral.
The elements of a traditional elegy mirror three stages of loss in moving from grief to consolation: