Multiply the birth-death master equation by and sum. Index shifts give
For the second moment, a birth changes by and a death changes it by , so
Since ,
Together these are the moment equations of a linear birth-death process.