How would I solve this equation?

Suppose I have the equation “q[p] + q’[p] + 8 == 0”, where “q’[p]” is the partial derivative of “q[p]” with respect to “p”. How would I go about using Mathematica to determine what “q[p]” is?

Hi,

try:

DSolve[q[p] + q'[p] + 8 == 0, q[p], p]

The solution is:

{{q[p] -> -8 + E^-p C[1]}}

Cheers,

M.

Bless You, Laddie!