Skip to content
ihateDesmos

Integral of sin x cos x

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

The integral of sin x cos x is sin²x/2 + C. Since cos x is the derivative of sin x, the substitution u = sin x makes it immediate.

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

How to integrate sin x cos x

Method: u-substitution.

  1. 1
    Let u = sin x, so du = cos x dx.
  2. 2
    The integral becomes ∫u du = u²/2.
  3. 3
    Substitute back: sin²x/2 + C.
  4. 4
    You can also write it as −cos²x/2 + C, or −cos(2x)/4 + C. All are correct, differing only by a constant.

What it means

sin x cos x equals (1/2) sin 2x, a small, fast sine wave. Its integral is a wave that stays between 0 and 1/2.

The integral from 0 to π/2

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

−3−2.5−2−1.5−1−0.50.511.522.53−1−0.8−0.6−0.4−0.20.20.40.60.81

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 x cos xSlope of the answer
−2.510.476530.47653
−1.57−0.000796326−0.000796326
−0.628−0.47543−0.47543
000
0.9420.4756760.475676
1.88−0.289869−0.289869
2.51−0.47653−0.47653

Common mistakes

  • Worrying that another answer, such as −cos²x/2, is wrong. Different forms can differ by a constant and still both be right.

Frequently asked questions

What is the integral of sin x cos x?
The integral of sin x cos x is sin²x/2 + C.
What is the integral of sin x cos x from 0 to π/2?
1/2, which is about 1/2.
Why are there several correct answers?
sin²x/2, −cos²x/2 and −cos(2x)/4 all have the same derivative, because they differ only by a constant. The + C absorbs that difference.

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