I'm not sure how to differentiate sin^2[3x]. Although, I think it's just d/dx( (sin[3x])(sin[3x]) ). So, just chain and product rules should do it. Is that right? EDIT: I've followed through with the above method, and I got 3*sin(6x). Is that correct?