← Back to learning objective

Derivative of a linear combination of sine and cosine

Let h(x)=7sin⁡(x)−3cos⁡(x)h(x) = 7\sin(x) - 3\cos(x). Find h′(x)h'(x).

Hint

Apply the constant multiple rule and difference rule separately to each term, then use ddx[sin⁡x]=cos⁡x\frac{d}{dx}[\sin x] = \cos x and ddx[cos⁡x]=−sin⁡x\frac{d}{dx}[\cos x] = -\sin x.

Step-by-step solution

Differentiate term by term using the difference rule: h′(x)=ddx[7sin⁡(x)]−ddx[3cos⁡(x)]h'(x) = \frac{d}{dx}[7\sin(x)] - \frac{d}{dx}[3\cos(x)]. By the constant multiple rule, each constant factor (7 and 3) passes through the derivative unchanged, leaving 7⋅ddx[sin⁡x]−3⋅ddx[cos⁡x]7\cdot\frac{d}{dx}[\sin x] - 3\cdot\frac{d}{dx}[\cos x].

Now substitute the known trig derivatives: ddx[sin⁡x]=cos⁡x\frac{d}{dx}[\sin x] = \cos x and ddx[cos⁡x]=−sin⁡x\frac{d}{dx}[\cos x] = -\sin x. This gives h′(x)=7cos⁡(x)−3(−sin⁡(x))=7cos⁡(x)+3sin⁡(x)h'(x) = 7\cos(x) - 3(-\sin(x)) = 7\cos(x) + 3\sin(x).

Sign change from differentiating cosine term

Hint
Step-by-step solution

The sign flipped. The original term was negative three cosine of x, and since the derivative of cosine is negative sine, the negative signs multiplied together to produce a positive result. This turned negative three cosine into positive three sine in the final derivative. This flip is a direct consequence of the negative sign in the cosine derivative rule combined with the constant multiple and difference rules.

Related problems

Practice similar Calculus problems interactively.

Start Closing the Gap