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.
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.
- 1Let u = sin x, so du = cos x dx.
- 2The integral becomes ∫u du = u²/2.
- 3Substitute back: sin²x/2 + C.
- 4You 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.
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.
| x | sin x cos x | Slope of the answer |
|---|---|---|
| −2.51 | 0.47653 | 0.47653 |
| −1.57 | −0.000796326 | −0.000796326 |
| −0.628 | −0.47543 | −0.47543 |
| 0 | 0 | 0 |
| 0.942 | 0.475676 | 0.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.