Maxima Function
poisdiff (a, b)
Differentiates a with respect to b. b must occur only in the trig arguments or only in the coefficients.