AI Math Tutor

Blog · Derivatives

Derivative of -sin x and the Other Trig Derivatives

If you have ever differentiated cos⁡x\cos x and landed on −sin⁡x-\sin x, you already know the derivative of -sin x by heart, even if the phrase looks unusual written out in words. That single result, that the derivative of cosine is negative sine, is one of six trig derivatives worth knowing cold, and it is the one that trips up the most students because of the sign. This guide lays out all six derivatives in one table, explains exactly where that minus sign comes from, and works through two full examples, including one that needs the chain rule.

Key takeaways

Why the derivative of cos x is -sin x

On the unit circle, cos⁡x\cos x is decreasing over the interval (0,π)(0, \pi), where sin⁡x\sin x is positive. A decreasing function has a negative slope, so the derivative of cos⁡x\cos x over that interval has to be negative wherever sin⁡x\sin x is positive, which is exactly what −sin⁡x-\sin x gives you. Over (π,2π)(\pi, 2\pi), cos⁡x\cos x is increasing while sin⁡x\sin x is negative, and −sin⁡x-\sin x flips positive there too, matching the increasing slope.

The two functions move in step, with a sign flip built in, and that sign flip is what the minus sign in the derivative is really recording. For a version of this same result built directly from the limit rather than from the graph, see Using the Definition of the Derivative: Limit Method.

The six trig derivatives

Every trig function has a derivative that pairs with one of the other five. Once these are memorized, most trig differentiation is just applying the chain rule or the product rule on top of this table.

Function Derivative
sin⁡x\sin x cos⁡x\cos x
cos⁡x\cos x −sin⁡x-\sin x
tan⁡x\tan x sec⁡2x\sec^2 x
cot⁡x\cot x −csc⁡2x-\csc^2 x
sec⁡x\sec x sec⁡xtan⁡x\sec x \tan x
csc⁡x\csc x −csc⁡xcot⁡x-\csc x \cot x

Notice the pattern: sine and cosine trade places, tangent and cotangent trade places with a sign flip, and secant and cosecant trade places with a sign flip. Every "co" function, cosine, cotangent, cosecant, contributes a negative sign to its own derivative.

Differentiating -sin x itself with the constant multiple rule

There is a second question hiding inside this topic: what if −sin⁡x-\sin x is not a derivative you landed on, but the function you are asked to differentiate directly? Treat the negative sign the same way you would treat any constant multiplier. Since −sin⁡x=−1⋅sin⁡x-\sin x = -1 \cdot \sin x, the constant multiple rule says you differentiate sin⁡x\sin x and carry the −1-1 straight through.

ddx(−sin⁡x)=−1⋅ddx(sin⁡x)=−1⋅cos⁡x=−cos⁡x\frac{d}{dx}(-\sin x) = -1 \cdot \frac{d}{dx}(\sin x) = -1 \cdot \cos x = -\cos x

So the derivative of the function −sin⁡x-\sin x is −cos⁡x-\cos x, a different result from the derivative of cos⁡x\cos x being −sin⁡x-\sin x. Keeping those two straight, which function you started with and which one you ended on, is the single most common point of confusion on this topic.

Worked examples

Example 1: derivative of y=3sin⁡x+2cos⁡xy = 3\sin x + 2\cos x

  1. Differentiate each term separately, using the sum rule.
    y′=ddx(3sin⁡x)+ddx(2cos⁡x)y' = \frac{d}{dx}(3\sin x) + \frac{d}{dx}(2\cos x)
  2. Apply the constant multiple rule to the sine term: the derivative of sin⁡x\sin x is cos⁡x\cos x, and the 3 carries through unchanged.
    ddx(3sin⁡x)=3cos⁡x\frac{d}{dx}(3\sin x) = 3\cos x
  3. Apply the constant multiple rule to the cosine term: the derivative of cos⁡x\cos x is −sin⁡x-\sin x, and the 2 carries through.
    ddx(2cos⁡x)=2(−sin⁡x)=−2sin⁡x\frac{d}{dx}(2\cos x) = 2(-\sin x) = -2\sin x
  4. Combine both pieces into one derivative.
    y′=3cos⁡x−2sin⁡xy' = 3\cos x - 2\sin x

So y′=3cos⁡x−2sin⁡xy' = 3\cos x - 2\sin x. Check it by matching each piece against the trig derivative table: the sine term kept its function and picked up no new sign, and the cosine term picked up the negative sign the table predicts.

Example 2: derivative of y=cos⁡(3x)y = \cos(3x)

  1. Recognize that this needs the chain rule, since the angle is 3x3x, not plain xx. Let the outside function be cosine and the inside function be u=3xu = 3x.
    y=cos⁡(u),u=3xy = \cos(u), \quad u = 3x
  2. Differentiate the outside function first, using ddxcos⁡(u)=−sin⁡(u)\frac{d}{dx}\cos(u) = -\sin(u), then multiply by the derivative of the inside function.
    y′=−sin⁡(u)⋅dudxy' = -\sin(u) \cdot \frac{du}{dx}
  3. Find dudx\frac{du}{dx} and substitute u=3xu = 3x back in.
    dudx=3⇒y′=−3sin⁡(3x)\frac{du}{dx} = 3 \quad \Rightarrow \quad y' = -3\sin(3x)

So y′=−3sin⁡(3x)y' = -3\sin(3x). Check it at x=0x = 0: cos⁡(3x)\cos(3x) is an even function, so its graph is symmetric about the y-axis, and a smooth curve that is symmetric like that must have a horizontal tangent at x=0x = 0. The formula gives y′(0)=−3sin⁡(0)=0y'(0) = -3\sin(0) = 0, which matches.

Common mistakes

These six derivatives are a small piece of the full rule set covered in How to Do Derivatives: Rules, Examples and Checks. For a variable that shows up in its own exponent, see Derivative of x to the x: Logarithmic Differentiation, and for a clean reciprocal case, see Derivative of 1/t and Other Reciprocals, Step by Step. If you would rather see one of these derivatives built from scratch, Using the Definition of the Derivative: Limit Method works through the limit directly. When you want to check a trig derivative of your own, scan the problem and read every step in AI Math Tutor.

AI Math Tutor is a study aid, not a substitute for a teacher, and it can make mistakes: check every step, not just the answer.

Questions

Why is the derivative of cos x negative sine and not positive sine?

Cosine is decreasing wherever sine is positive, and increasing wherever sine is negative, so its slope always has the opposite sign of sine at that point. Multiplying sine by negative one is exactly what flips the sign to match, which is why ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin x.

Is the derivative of -sin x the same thing as the derivative of cos x?

No. The derivative of cos x is -sin x, but the derivative of the function -sin x itself is -cos x. Both statements use sine and cosine, but in opposite roles: one is a derivative you land on, the other is a derivative you start from.

Do all six trig derivatives need the chain rule?

Only when the angle inside the trig function is something other than plain x, such as 3x or x squared. If the angle is just x, you can read the derivative straight from the table with no chain rule needed.

How can I check a trig derivative without redoing the whole problem?

Pick a value of x where you already know the original function's behavior, such as a peak, a horizontal tangent, or a zero, and confirm your derivative gives a slope that matches. An even function like cos(3x) must have a derivative of zero at x = 0, for example.

Read next