The derivative of cos²(x) is −2 sin(x) cos(x). This simplifies to −sin(2x). You can use the double-angle identity for sine. You can also prove this result using the chain rule on (cos x)². Alternatively, apply the power-reduction identity. Rewrite cos²(x) as ½(1 + cos 2x) before differentiating.
How do you differentiate cos²(x) using the chain rule?
To differentiate cos²(x) using the chain rule, write the expression as (cos x)². This represents a composite function. It has an outer squaring function. Also, it has an inner cosine function.

The chain rule states that d/dx [f(g(x))] = f'(g(x)) · g'(x). Here, the outer function is u². Its derivative is 2u. Also, the inner function is u = cos x. Its derivative is −sin x.
- Identify the outer and inner functions: Outer is u² where u = cos x.
- Differentiate the outer layer: First, bring down the exponent. You will get 2(cos x)¹.
- Multiply by the inner derivative: Multiply by the derivative of cos x, which is −sin x.
- Combine the factors: 2 cos x · (−sin x) = −2 sin x cos x.
- Simplify with identities: Substitute sin(2x) = 2 sin x cos x. As a result, you get −sin(2x).
The negative sign comes directly from differentiating cosine. For a broader review of composite function rules, also see the guide on the chain rule.
How do you differentiate cos²(x) using the power-reduction identity?
This method converts the squared trigonometric function. It becomes a single power term. Then you take the derivative. This bypasses composite exponent rules entirely.
The power-reduction identity states that cos²(x) = ½(1 + cos 2x). Substituting this into the derivative operator gives:
d/dx [cos²(x)] = d/dx [½ + ½ cos(2x)]
Differentiate each term independently:
- The derivative of the constant term ½ is 0.
- Because of this, the derivative of ½ cos(2x) requires differentiating cos(2x). This is -2 sin(2x).
- Multiply by the constant coefficient ½: ½ · (−2 sin 2x) = −sin(2x).
Both methods yield the same result, −sin(2x).
Alternative method: How does the product rule apply to cos²(x)?
First, express cos²(x) as the product cos(x) · cos(x). Then, apply the product rule directly. This shows you exactly where the coefficient 2 comes from.

The product rule states that d/dx [u · v] = u’v + uv’. So, you set u = cos x and v = cos x. This gives:
d/dx [cos x · cos x] = (−sin x)(cos x) + (cos x)(−sin x)
You combine the two identical terms. This yields −2 sin x cos x. It simplifies to −sin(2x). The factor of 2 occurs because differentiation generates two identical terms.
why is the derivative of cos^2x equivalent to −sin(2x)?
Both forms represent the exact same mathematical curve because of the sine double-angle identity sin(2x) = 2 sin x cos x.

The unsimplified form −2 sin(x) cos(x) is the direct result. It applies the power rule and chain rule. This preserves individual derivative components.
The simplified form −sin(2x) is preferred in answer keys for three key practical reasons:
- It reduces evaluation steps when finding slope values at specific angles.
- Next, it simplifies identifying critical points, periods, and amplitude on graphs.
- It makes higher-order differentiation significantly easier by avoiding multi-term product rules.
How does the graph of cos²(x) explain its derivative?
Analyzing the graph of y = cos²(x) provides visual proof of why its derivative curve is −sin(2x).
Because cos²(x) = ½(1 + cos 2x), the derivative of cos²x graph is a cosine wave horizontally compressed to a period of π and shifted vertically so that it sits entirely between y = 0 and y = 1.
The slope of the curve matches the values of −sin(2x) across key intervals:
- At peaks (x = 0, π, 2π): cos²(x) reaches its maximum value of 1. Also, the tangent line is flat. This matches −sin(2 · 0) = 0.
- At troughs (x = π/2, 3π/2): cos²(x) reaches its minimum value of 0. The tangent line is flat. Also, this matches −sin(2 · π/2) = 0.
- On decreasing intervals \(0 \to π/2\): The graph falls from 1 to 0. Also, over this range, 2x goes from 0 to π. This makes sin(2x) positive. Therefore, the derivative −sin(2x) is negative.
- At maximum steepness (x = π/4): Halfway between the peak and trough, cos²(π/4) = 0.5. Here the slope reaches its steepest descent of −sin(π/2) = −1.
- On increasing intervals \(π/2 \to π\): The graph climbs from 0 back to 1. In this range, 2x goes from π to 2π. As a result, sin(2x) becomes negative. This makes the derivative positive.
Comparing cos²(x) with sin²(x) and cos(x²)
Brackets and exponent placements completely alter trigonometric derivatives. For example, the table below compares cos²(x) with two commonly confused functions.
| Function | Mathematical Meaning | Derivative | Primary Rule Used |
|---|---|---|---|
| cos²(x) | (cos x)² — cosine evaluated, then squared | −sin(2x) or −2 sin x cos x | Chain rule (outer u²) |
| sin²(x) | (sin x)² — sine evaluated, then squared | sin(2x) or 2 sin x cos x | Chain rule (outer u²) |
| cos(x²) | cos(x²) — x squared, then cosine evaluated | −2x sin(x²) | Chain rule (outer cos u) |
Notice the inverse relationship between sin²(x) and cos²(x). Because sin²(x) + cos²(x) = 1 (a constant), differentiating both sides shows that d/dx [sin²(x)] + d/dx [cos²(x)] = 0. Therefore, d/dx [sin²(x)] must equal −d/dx [cos²(x)].
Worked examples involving cos²(x)
Below are step-by-step solutions for common calculus exam problems involving squared cosine derivatives.

Example 1: Derivative of cos²(3x)
This expression contains three layers: an outer square, a middle cosine, and an inner 3x.
- Differentiate the outer square: 2 cos(3x).
- Multiply by the derivative of cosine: −sin(3x).
- Multiply by the derivative of 3x: 3.
- Combine terms: 2 cos(3x) · (−sin 3x) · 3 = −6 sin(3x) cos(3x).
- Simplify using double-angle identity: −3 sin(6x).
Example 2: Derivative of cos³(x)
For higher powers, apply the power rule to the outer power of 3:
- Differentiate the outer cube: 3 cos²(x).
- Multiply by the derivative of cos(x): −sin(x).
- Result: −3 cos²(x) sin(x).
Example 3: Slope of the curve at x = π/6
To evaluate the numerical slope of y = cos²(x) at x = π/6:
- Substitute x = π/6 into −sin(2x).
- Compute −sin(2 · π/6) = −sin(π/3).
- Exact answer: −√3 / 2 ≈ −0.866.
Example 4: Tangent line at x = π/4
To find the equation of tangent line at x = π/4:
- Find the y-coordinate: cos²(π/4) = (√2 / 2)² = 1/2. Point: (π/4, 1/2).
- Calculate slope m: −sin(2 · π/4) = −sin(π/2) = −1.
- Apply the point-slope formula: y − y₁ = m(x − x₁).
So, y − 1/2 = −1(x − π/4).
As a result, y = −x + π/4 + 1/2.
Example 5: Derivative of e^(cos² x)
This combines exponential and trigonometric chain rules:
- The derivative of e^u is e^u · u’.
- Here, u = cos²(x), so u’ = −sin(2x).
- Result: −sin(2x) e^(cos² x).
Example 6: Derivative of 1 / cos²(x)
Rewrite 1 / cos²(x) as (cos x)⁻²:
- Apply the power rule: −2(cos x)⁻³.
- Multiply by inner derivative −sin x: 2 sin x / cos³(x).
- Simplify in secant/tangent form: 2 sec²(x) tan(x).
Example 7: Derivative of cos²(x) − sin²(x)
Recognize that cos²(x) − sin²(x) = cos(2x):
- Differentiate directly: d/dx [cos(2x)] = −2 sin(2x).
- Alternatively, differentiate terms separately: −sin(2x) − sin(2x) = −2 sin(2x).
Higher-order derivatives of cos²(x)
Because the first derivative simplifies to −sin(2x), taking higher derivatives requires repeated application of the chain rule. Each step multiplies by 2 and rotates through trigonometric functions:
- First derivative: f'(x) = −sin(2x)
- Second derivative: f”(x) = −2 cos(2x)
- Third derivative: f”'(x) = 4 sin(2x)
- Fourth derivative: f^(4)(x) = 8 cos(2x)
- Fifth derivative: f^(5)(x) = −16 sin(2x)
For the nth derivative, the coefficient magnitude is 2^(n−1), and the trigonometric function cycles every four differentiations. You can verify complex expressions using a second derivative calculator.
How to check your derivative numerically with a calculator
You can verify any derivative by estimating the slope using a symmetric difference quotient on a calculator:
f'(x) ≈ [f(x + h) − f(x − h)] / (2h)
Testing at x = π/4 with a step size of h = 0.001:
- f(π/4 + 0.001) = cos²(π/4 + 0.001) ≈ 0.499000
- f(π/4 − 0.001) = cos²(π/4 − 0.001) ≈ 0.501000
- Slope: (0.499000 − 0.501000) / 0.002 = −0.9999993
The numerical output −0.9999993 closely matches the exact derivative value −sin(2 · π/4) = −1.
Finding antiderivatives: Why cos²(x) leads to multiple integral forms
Integrating sin(2x) dx illustrates a classic calculus topic. Depending on whether you use u-substitution or trigonometric substitution, you can arrive at three different antiderivatives:

- sin²(x) + C
- −cos²(x) + C
- −½ cos(2x) + C
All three forms are completely correct because differentiating any of them returns sin(2x). They differ only by constant values absorbed by + C:
- sin²(x) − (−cos²(x)) = sin²(x) + cos²(x) = 1
- sin²(x) − (−½ cos 2x) = sin²(x) + ½(1 − 2 sin² x) = ½
Real-world applications of squared cosines
Squared cosine functions describe physical phenomena. For example, intensity or energy depends on angular alignment.

- Malus’s Law in Optics: Transmitted light intensity through a polarizing filter is I = I₀ cos²(θ). Here, θ is the angle between polarization axes. As a result, the rate of change dI/dθ = −I₀ sin(2θ). This measures alignment sensitivity. It reaches peak sensitivity at 45°.
- AC Electrical Power: Instantaneous power in an AC resistor varies with cos²(ωt). As a result, the rate of power change depends on the derivative −ω sin(2ωt).
- Quantum Mechanics: Particle probability density in quantum state calculations involves squared wavefunctions |Ψ|², requiring squared trigonometric derivatives for transition rates.
Common mistakes when differentiating cos²(x)
- Dropping the inner derivative: Writing 2 cos(x) forgets to multiply by d/dx [cos x] = −sin x.
- Squaring the inner derivative: Writing (−sin x)² = sin² x is incorrect; the chain rule requires multiplication.
- Losing the negative sign: Forgetting that d/dx [cos x] = −sin x leads to an incorrect positive sign +sin(2x).
- Confusing notation: Treating cos²(x) as cos(x²) applies the outer power rule to the wrong layer.
- Misinterpreting double angles: Treating −sin(2x) as −2 sin(x) is an algebraic error; the multiplier lives inside the angle argument.
Practice problems with full solutions
- Find d/dx [sin²(4x)].
- Also, find d/dx [cos²(x²)].
- Find d/dx [x cos²(x)].
- Then, find d/dx [cos²(5x)].
- Find the second derivative of sin²(x).
- Similarly, find d/dx [ln(cos² x)].
Solutions:
- 2 sin(4x) · cos(4x) · 4 = 8 sin(4x) cos(4x) = 4 sin(8x).
- 2 cos(x²) · (−sin(x²)) · 2x = −4x sin(x²) cos(x²) = −2x sin(2x²).
- Product rule: (1)(cos² x) + x(−sin 2x) = cos² x − x sin(2x).
- 2 cos(5x) · (−sin 5x) · 5 = −10 sin(5x) cos(5x) = −5 sin(10x).
- First derivative of sin² x is sin(2x). Second derivative is d/dx [sin 2x] = 2 cos(2x).
- Log property gives 2 ln|cos x|. So, the derivative is 2(−sin x / cos x) = −2 tan(x).
Interactive derivative calculation
Step-by-step solver·Exact symbolic engine
Interactive Calculus Problem Solver
Derivatives, antiderivatives, definite and improper integrals, and limits. Every answer comes with the rules used, and antiderivatives are verified by differentiating them back.
Input syntax
- Powers
x^2, rootssqrt(x),cbrt(x), absolute value|x| - Implicit multiplication works:
3x sin(2x) sin cos tan sec csc cot,asin acos atan,sinh cosh tanhe^xorexp(x);ln(x)is the natural log. In this solverlog(x)also means the natural log (the usual calculus convention); typelog10(x)for base 10- Constants
piande; bounds acceptinfand-inf
Explore other trigonometric functions and step-by-step solutions with the interactive derivative calculator.
Frequently asked questions
What is the integral of cos²x?
The integral of cos²(x) is x/2 + ¼ sin(2x) + C. You compute it using the power-reduction identity for the derivative of cos²x. This identity is cos²(x) = ½(1 + cos 2x). For comparison, see the guide on integral of sin²x.
What is the second derivative of cos²x?
The second derivative of cos²(x) is −2 cos(2x). You calculate it by taking the derivative of the first derivative −sin(2x). You use the chain rule for this calculation.
Is the answer −2 sin x cos x or −sin 2x?
Both answers are mathematically identical and correct. The identity sin(2x) = 2 sin x cos x links both forms, though −sin 2x is preferred because it is fully simplified.
What is the derivative of cos²(2x)?
The derivative of cos²(2x) is −2 sin(4x). As a result, applying the multi-layer chain rule gives 2 cos(2x) · (−sin 2x) · 2 = −4 sin(2x) cos(2x) = −2 sin(4x).
How is this related to the derivative of tan x?
The derivative of tan(x) is sec²(x) = 1 / cos²(x). As a result, differentiating tangent yields reciprocal squared cosine expressions, as detailed in derivative of tan x.
Further reading
- Derivatives of Trig Functions (Paul’s Online Math Notes) — derivations for standard trigonometric function rules.
- Chain Rule (Paul’s Online Math Notes) — step-by-step examples applying composite rules to trigonometric terms.
- Integrals Involving Trig Functions (Paul’s Online Math Notes) — integration strategies for powers of sine and cosine.
Calculators for this topic
Keep learning
Inverse Trig Functions: Arcsin, Arccos and Arctan
Arcsin, arccos and arctan explained: domains and ranges, how to evaluate them, graphs, derivatives, and the integrals that give inverse trig answers.
Derivative Rules: Every Differentiation Formula, Explained
All the derivative rules in one place: definition, power, product (uv), quotient and chain rules, plus trig, exponential, log and inverse trig derivatives.

