Calculus · real student question

Find the indefinite integral of cos(2x) with respect to x.

Question

Find

cos2xdx\int\cos 2x\,dx

Step-by-step solution

  1. Guess the shape, then fix the constant. The antiderivative of cos\cos is sin\sin, so the answer must look like Asin2xA\sin2x. Differentiating that guess: ddx(Asin2x)=2Acos2x\dfrac{d}{dx}\left(A\sin2x\right)=2A\cos2x. To match cos2x\cos2x we need 2A=12A=1, so A=12A=\tfrac12. The 12\tfrac12 is not decoration — it undoes the 22 the chain rule would introduce.

  2. Do it properly with substitution. Let u=2xu=2x, so du=2dxdu=2\,dx and dx=12dudx=\tfrac12\,du:

    cos2xdx=cosu12du=12cosudu=12sinu+C\int\cos2x\,dx=\int\cos u\cdot\frac12\,du=\frac12\int\cos u\,du=\frac12\sin u+C

  3. Substitute back.

    cos2xdx=12sin2x+C\int\cos2x\,dx=\frac12\sin2x+C

  4. State the general rule. For any nonzero constant aa,

    cosaxdx=1asinax+C\int\cos ax\,dx=\frac{1}{a}\sin ax+C

    The factor out front is always the reciprocal of the inner coefficient. The same pattern gives sinaxdx=1acosax+C\int\sin ax\,dx=-\tfrac1a\cos ax+C.

  5. Note the most common error. Writing sin2x+C\sin2x+C (no 12\tfrac12) or 2sin2x+C2\sin2x+C (reciprocal inverted) are the two usual mistakes. Differentiating the answer is a five-second check that catches both.

  6. Verify by differentiating. ddx(12sin2x)=122cos2x=cos2x\dfrac{d}{dx}\left(\tfrac12\sin2x\right)=\tfrac12\cdot2\cos2x=\cos2x ✓. Numerically, symmetric difference quotients of 12sin2x\tfrac12\sin2x at x=0.3, 1.4, 0.9x=0.3,\ 1.4,\ -0.9 match cos2x\cos2x to five decimals ✓.

Answer

cos2xdx=12sin2x+C\int\cos 2x\,dx=\frac{1}{2}\sin 2x+C

Need to solve a different problem like this? Open the solver →