Integral of Sin x

The antiderivative of sine is negative cosine plus an arbitrary constant, used to reverse differentiation of sine in calculus and physics applications.

sinxdx=cosx+C\int \sin x\,dx = -\cos x + C

Solve a problem with Integral of Sin x

Type the problem. The solver will use Integral of Sin x where Integral of Sin x is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Integral of Sin x takes
xx
CC
Integral of Sin x
SymbolMeaning
xxThe angle variable measured in radians; if you read this in degrees instead you will get incorrect numerical answers since this formula assumes the sine function takes radian input.
CCThe constant of integration representing all possible antiderivatives; if you forget it you have only found one particular solution, not the complete family of all antiderivatives.

When to use it

Use this integral when you need to find the antiderivative of sine or when solving differential equations containing sine.

Level

Usually taught in: Calculus I

Worked examples

1. Integrate a basic sine expression with a constant coefficient

Problem

Find 3sinxdx\int 3\sin x\,dx
  1. 3sinxdx\int 3\sin x\,dx

    We need to integrate this expression with coefficient 3 in front of sine.

  2. =3sinxdx= 3\int \sin x\,dx

    Factor out the constant 3 using the constant rule for integrals.

  3. =3(cosx)+C= 3 \cdot (-\cos x) + C

    Apply the standard formula sinxdx=cosx+C\int \sin x\,dx = -\cos x + C.

  4. =3cosx+C= -3\cos x + C

    Simplify by distributing the 3.

Answer: 3cosx+C-3\cos x + C

The constant rule allows us to pull 3 outside the integral before applying the sine formula, then simplify the result.

2. Integrate a sum with negative coefficient and constant term

Problem

Evaluate (2sinx+5)dx\int (-2\sin x + 5)\,dx
  1. (2sinx+5)dx\int (-2\sin x + 5)\,dx

    We need to integrate a sum containing a negative coefficient on sine and a constant term.

  2. =(2sinx)dx+5dx= \int (-2\sin x)\,dx + \int 5\,dx

    Apply the sum rule: split this into two separate integrals.

  3. =2sinxdx+5x+C= -2\int \sin x\,dx + 5x + C

    Factor out 2-2 from the first integral; the constant 5 integrates directly to 5x5x.

  4. =2(cosx)+5x+C= -2 \cdot (-\cos x) + 5x + C

    Apply sinxdx=cosx+C\int \sin x\,dx = -\cos x + C to the first term.

  5. =2cosx+5x+C= 2\cos x + 5x + C

    Simplify: 2(cosx)=2cosx-2 \cdot (-\cos x) = 2\cos x by multiplying the negatives.

Answer: 2cosx+5x+C2\cos x + 5x + C

This problem requires careful handling of the negative sign, using the sum rule to separate terms, and recognizing that constants integrate to linear terms; all three must be done correctly for the right answer.

3. Model periodic cooling using a sine rate of change

Problem

A temperature sensor measures oscillation with rate dTdt=sint\frac{dT}{dt} = -\sin t where TT is temperature in degrees and tt is time in seconds. If the temperature is T(0)=20T(0) = 20 at t=0t = 0, find the temperature function T(t)T(t).
  1. T(t)=(sint)dtT(t) = \int (-\sin t)\,dt

    To find temperature as a function of time, integrate the given rate of change.

  2. =sintdt= -\int \sin t\,dt

    Factor out the negative sign using the constant rule.

  3. =(cost)+C= -(-\cos t) + C

    Apply the standard integral sintdt=cost+C\int \sin t\,dt = -\cos t + C.

  4. =cost+C= \cos t + C

    Simplify the double negative: (cost)=cost-(-\cos t) = \cos t.

  5. T(0)=cos(0)+CT(0) = \cos(0) + C

    Use the initial condition T(0)=20T(0) = 20 to find the constant CC.

  6. 20=1+C20 = 1 + C

    Evaluate cos(0)=1\cos(0) = 1.

  7. C=19C = 19

    Solve for CC by subtracting 1 from both sides.

  8. T(t)=cost+19T(t) = \cos t + 19

    The complete solution describes how temperature varies over time.

Answer: T(t)=cost+19T(t) = \cos t + 19

This application demonstrates how the sine integral solves differential equations modeling periodic motion; the initial condition selects which member of the antiderivative family matches the physical situation.

Common mistakes

Where Integral of Sin x usually goes wrong
Answer came out wrong
sinxdx=cosx+C\int \sin x\,dx = \cos x + C
Remember: sinxdx=cosx+C\int \sin x\,dx = -\cos x + C; the negative is essential because of how trig derivatives work.
sinxdx=cosx\int \sin x\,dx = -\cos x
Always include the constant of integration: sinxdx=cosx+C\int \sin x\,dx = -\cos x + C represents the complete family of antiderivatives.
sin(2x)dx=cos(2x)+C\int \sin(2x)\,dx = -\cos(2x) + C
Use substitution: let u=2xu = 2x so du=2dxdu = 2\,dx, giving sin(2x)dx=12sin(u)du=12cos(2x)+C\int \sin(2x)\,dx = \frac{1}{2}\int \sin(u)\,du = -\frac{1}{2}\cos(2x) + C.
The mistakeWhy it is wrongThe fix
sinxdx=cosx+C\int \sin x\,dx = \cos x + CThe derivative of cosx\cos x is sinx-\sin x (with a negative), so to reverse this you must use negative cosine, not positive cosine.Remember: sinxdx=cosx+C\int \sin x\,dx = -\cos x + C; the negative is essential because of how trig derivatives work.
sinxdx=cosx\int \sin x\,dx = -\cos xThe constant CC is required because any constant disappears during differentiation, so infinitely many antiderivatives exist differing only by a constant.Always include the constant of integration: sinxdx=cosx+C\int \sin x\,dx = -\cos x + C represents the complete family of antiderivatives.
sin(2x)dx=cos(2x)+C\int \sin(2x)\,dx = -\cos(2x) + CWhen sine has a coefficient inside like sin(2x)\sin(2x), you cannot apply this formula directly; the chain rule creates an extra factor that must be accounted for.Use substitution: let u=2xu = 2x so du=2dxdu = 2\,dx, giving sin(2x)dx=12sin(u)du=12cos(2x)+C\int \sin(2x)\,dx = \frac{1}{2}\int \sin(u)\,du = -\frac{1}{2}\cos(2x) + C.

Tips and when to use something else

  • Verify your antiderivative by differentiating: ddx(cosx+C)=sinx\frac{d}{dx}(-\cos x + C) = \sin x confirms the formula is correct.
  • When integrating expressions like 5sinx5\sin x or sinx+3\sin x + 3, use linearity to factor out constants and split sums before applying this formula.
  • If you encounter sin(kx)\sin(kx) where k1k \ne 1, you must use substitution; this formula only works directly when the argument is exactly xx.
  • For products like sinxcosx\sin x \cos x or complicated expressions, reach for integration by parts or trigonometric identities instead of this formula alone.

Frequently asked questions

Why is there a negative sign in the cosx-\cos x?
Because the derivative of cosx\cos x is sinx-\sin x (with a negative). To reverse this process and recover sinx\sin x, the antiderivative must have a negative: ddx(cosx)=sinx\frac{d}{dx}(-\cos x) = \sin x. The negative sign is not optional; it comes directly from how trig derivatives work.
Do I always have to write the +C+C for indefinite integrals?
Yes. The CC represents the entire family of antiderivatives; without it, you have found only one solution. When you compute a definite integral with limits, the constants cancel and disappear, but for indefinite integrals the CC is mandatory.
What if the sine has a different argument like sin(3x)\sin(3x) or sin(x+1)\sin(x + 1)?
This formula no longer applies directly. Use substitution: if u=3xu = 3x, then du=3dxdu = 3\,dx, so sin(3x)dx=13sin(u)du=13cos(3x)+C\int \sin(3x)\,dx = \frac{1}{3}\int \sin(u)\,du = -\frac{1}{3}\cos(3x) + C. The substitution method handles any shift or scaling inside the sine.
How is finding an integral different from taking a derivative?
Differentiation finds the rate of change of a function; integration reverses this to find the original function. They are inverse operations: if you differentiate cosx-\cos x, you get sinx\sin x, and if you integrate sinx\sin x, you get back cosx-\cos x (plus a constant). Use this integral when a problem gives you a rate involving sine and asks for the accumulated total.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18