Trigonometric Integrals Calculator

Published on: July 18, 2026
Final Answer: Free | Full Steps: Plus

This Trigonometric Integrals Calculator integrates sine, cosine, tangent and their relatives, and shows the working line by line. Each has its own standard result, and the minus signs land on the opposite functions to where they sit when differentiating. Recognising the form is most of the work. Following the same pattern every time keeps the signs from being carried over from the derivative rules.

Step-by-step method

  1. Set up the problem.
  2. Write the integration rule for that form.
  3. Move the constant multiple outside the integral.
  4. Apply the integration rule and add C.

Formula: Integral of sin(x)

The integral of sin(x) is minus cos(x).

\(\int \sin{\left(x \right)}\, dx = -\cos\left(x\right) + C\)

Formula: Integral of cos(x)

The integral of cos(x) is sin(x).

\(\int \cos{\left(x \right)}\, dx = \sin\left(x\right) + C\)

Formula: Integral of sec squared of x

The integral of sec squared of x is tan(x).

\(\int \sec^{2}{\left(x \right)}\, dx = \tan\left(x\right) + C\)

Formula: Integral of csc squared of x

The integral of csc squared of x is minus cot(x).

\(\int \csc^{2}{\left(x \right)}\, dx = -\cot\left(x\right) + C\)

Formula: Integral of sec(x)tan(x)

The integral of sec(x) times tan(x) is sec(x).

\(\int \tan{\left(x \right)} \sec{\left(x \right)}\, dx = \sec\left(x\right) + C\)

Formula: Integral of csc(x)cot(x)

The integral of csc(x) times cot(x) is minus csc(x).

\(\int \cot{\left(x \right)} \csc{\left(x \right)}\, dx = -\csc\left(x\right) + C\)

Formula: Integral of tan(x)

The integral of tan(x) is the natural log of the absolute value of sec(x).

\(\int \tan{\left(x \right)}\, dx = \ln\left|\sec\left(x\right)\right| + C\)

Formula: Integral of cot(x)

The integral of cot(x) is the natural log of the absolute value of sin(x).

\(\int \cot{\left(x \right)}\, dx = \ln\left|\sin\left(x\right)\right| + C\)

Formula: Integral of sec(x)

The integral of sec(x) is the natural log of the absolute value of sec(x) plus tan(x).

\(\int \sec{\left(x \right)}\, dx = \ln\left|\sec\left(x\right) + \tan\left(x\right)\right| + C\)

Formula: Integral of csc(x)

The integral of csc(x) is minus the natural log of the absolute value of csc(x) plus cot(x).

\(\int \csc{\left(x \right)}\, dx = -\ln\left|\csc\left(x\right) + \cot\left(x\right)\right| + C\)

Formula: Integral of sin squared of x

Writing sin squared of x as half of 1 minus cos(2x) gives x over 2 minus sin(2x) over 4.

\(\int \sin^{2}{\left(x \right)}\, dx = \frac{x}{2} - \frac{\sin\left(2x\right)}{4} + C\)

Formula: Integral of cos squared of x

Writing cos squared of x as half of 1 plus cos(2x) gives x over 2 plus sin(2x) over 4.

\(\int \cos^{2}{\left(x \right)}\, dx = \frac{x}{2} + \frac{\sin\left(2x\right)}{4} + C\)

Formula: Integral of tan squared of x

Writing tan squared of x as sec squared of x minus 1 gives tan(x) minus x.

\(\int \tan^{2}{\left(x \right)}\, dx = \tan\left(x\right) - x + C\)

Formula: Integral of cot squared of x

Writing cot squared of x as csc squared of x minus 1 gives minus cot(x) minus x.

\(\int \cot^{2}{\left(x \right)}\, dx = -\cot\left(x\right) - x + C\)

Formula: Integral of 1/(1 + x squared)

The integral of 1 over 1 plus x squared is arctan(x).

\(\int \frac{1}{x^{2} + 1}\, dx = \arctan\left(x\right) + C\)

Formula: Integral of 1/root(1 - x squared)

The integral of 1 over the square root of 1 minus x squared is arcsin(x).

\(\int \frac{1}{\sqrt{1 - x^{2}}}\, dx = \arcsin\left(x\right) + C\)

Formula: Integral of 1/(x squared + a squared)

The integral of 1 over x squared plus a squared is 1 over a times arctan of x over a.

\(\int \frac{1}{x^{2} + a^{2}}\, dx = \frac{1}{a}\arctan\left(\frac{x}{a}\right) + C\)

Formula: Pythagorean identity

Used for an odd power of sin(x) or cos(x): one factor is kept, and the even power left is rewritten as the other function, so a u-substitution finishes the integral.

\(\sin^{2}\left(x\right) + \cos^{2}\left(x\right) = 1\)

Formula: Power-reducing identities

Used when sin(x) and cos(x) only appear to even powers: each square becomes a first power of cos(2x), and the terms are then integrated one by one.

Useful Tips to Remember

The integral of \(\sin x\) is \(-\cos x + C\), and the integral of \(\cos x\) is \(\sin x + C\). The signs are the opposite way round to the derivatives, which is easy to mix up. For powers like \(\sin^2 x\), use an identity such as \(\sin^2 x = \frac{1 - \cos 2x}{2}\) before integrating. Always add \(+C\).

Required knowledge

Where Are Trigonometric Integrals Used?

Trigonometric integrals find totals for quantities that repeat in cycles, using rules like \(\int \sin x\,dx = -\cos x + C\) and identities for powers of sine and cosine. Engineers use them to find the average and effective values of alternating current, which is how mains voltage is rated. They also measure the energy in sound and light waves, the work done by rotating machines, and the area under wave-shaped curves. Fourier analysis, which breaks any signal into sine and cosine waves, is built on these integrals.

  • Finding the RMS value of alternating current and voltage
  • Measuring the energy in sound and light waves
  • Breaking signals into frequencies with Fourier analysis
  • Calculating work done in rotating machines
  • Finding areas under wave-shaped curves

Trigonometric Integrals Practice Problems

Example 1 integrates \(\sin x\), and Example 2 integrates \(\sec^2 x\). Try each one yourself, watching the sign, before checking. For two more free worked examples, check out the Trigonometric Integrals Notes.

The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.

See Example 1 Hide Example 1

Problem

\(\int \sin{\left(x \right)}\, dx\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the integration rule for that form.
  3. Move the constant multiple outside the integral.
  4. Apply the integration rule and add C.

Formula

Formula: Integral of sin(x)

The integral of sin(x) is minus cos(x).

\(\int \sin{\left(x \right)}\, dx = -\cos\left(x\right) + C\)

Step 1

Step 1 - Set up the problem.

In this problem: The trigonometric form is \(\sin{\left(x \right)}\).

\(\int \sin{\left(x \right)}\, dx\)

Step 2

Step 2 - Write the integration rule for that form.

In this problem: Each standard trigonometric form has a known antiderivative.

\(\int \sin{\left(x \right)}\, dx = -\cos\left(x\right) + C\)

Step 3

Step 3 - Apply the integration rule and add C.

In this problem: Put \(\sin{\left(x \right)}\) into the rule from Step 2.

\(F\left(x\right) = \int \sin{\left(x \right)}\, dx = -\cos\left(x\right) + C\)

Final Answer

\(\int \sin{\left(x \right)}\, dx = -\cos\left(x\right) + C\)
See Example 2 Hide Example 2

Problem

\(\int \sec^{2}{\left(x \right)}\, dx\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the integration rule for that form.
  3. Move the constant multiple outside the integral.
  4. Apply the integration rule and add C.

Formula

Formula: Integral of sec squared of x

The integral of sec squared of x is tan(x).

\(\int \sec^{2}{\left(x \right)}\, dx = \tan\left(x\right) + C\)

Step 1

Step 1 - Set up the problem.

In this problem: The trigonometric form is \(\sec^{2}{\left(x \right)}\).

\(\int \sec^{2}{\left(x \right)}\, dx\)

Step 2

Step 2 - Write the integration rule for that form.

In this problem: Each standard trigonometric form has a known antiderivative.

\(\int \sec^{2}{\left(x \right)}\, dx = \tan\left(x\right) + C\)

Step 3

Step 3 - Apply the integration rule and add C.

In this problem: Put \(\sec^{2}{\left(x \right)}\) into the rule from Step 2.

\(F\left(x\right) = \int \sec^{2}{\left(x \right)}\, dx = \tan\left(x\right) + C\)

Final Answer

\(\int \sec^{2}{\left(x \right)}\, dx = \tan\left(x\right) + C\)

Notes and Practice Mode

Example Problems

Click one to load it into the box and solve it.