Skip to content
ihateDesmos

Integral of sin 3x

Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The integral of sin 3x
∫
sin(3x)
dx =
−cos(3x)3+C

The integral of sin 3x is −cos(3x)/3 + C. The minus sign comes from the integral of sine, and dividing by 3 undoes the chain rule.

−3−2−1123−110
Open in calculator
y=sin(3x)
in blue and its integral
y=−cos(3x)3
(with C = 0) in red.

How to integrate sin 3x

Method: u-substitution.

  1. 1
    Let u = 3x, so du = 3 dx, which means dx = du/3.
  2. 2
    The integral becomes (1/3) ∫sin u du.
  3. 3
    The integral of sin u is −cos u.
  4. 4
    So the result is −(1/3) cos u + C = −cos(3x)/3 + C.
  5. 5
    Check: the derivative of −cos(3x)/3 is 3 sin(3x)/3 = sin 3x.

What it means

sin 3x has period 2π/3, so positive and negative areas cancel over each full cycle. Over one positive arch, from 0 to π/3, the area is 2/3.

The integral from 0 to π/3

Using the antiderivative: F(π/3) − F(0) = 2/3, which is about 2/3. A direct numerical integration of sin 3x gives 2/3, which agrees.

−3−2.5−2−1.5−1−0.50.511.522.53−2−1.5−1−0.50.511.52

Check by differentiating

The derivative of the answer should give back the original function. The last column measures that slope directly from the answer, and it matches.

Checking the integral
xsin 3xSlope of the answer
−2.51−0.947975−0.947975
−1.570.9999970.999997
−0.628−0.951351−0.951351
000
0.9420.310380.31038
1.88−0.599747−0.599747
2.510.9479750.947975

Common mistakes

  • Forgetting to divide by 3.
  • Dropping the minus sign.

Frequently asked questions

What is the integral of sin 3x?
The integral of sin 3x is −cos(3x)/3 + C.
What is the integral of sin 3x from 0 to π/3?
2/3, which is about 2/3.

Keep going

Integrate any function

Type your own function into the integral calculator for the steps, the answer and a graph.

Open the integral calculator