How do you find the integral of sinπxcosπxdx?

2 Answers
Feb 7, 2015

For this integral, you should recall that sin(2x)=2sin(x)cos(x). So, if you multiply the sine and cosine function evaluated in the same point, dividing by two the relation above, you can check that
sin(2x)2=sin(x)cos(x).

In your case, instead of x you have πx, so the relations becomes
sin(πx)cos(πx)=sin(2πx)2, which is much easier to integrate. In fact,
sin(2πx)2=12sin(2πx)
let t be the new variable:
t=2πxx=t2πdx=dt2π

The integral becomes
12sin(t)dt2π, and factoring out constants again we get
14πsin(t)dt=cos(t)4π+C
Recalling the relation between t and x, the answer is finally
cos(2πx)4π+C

Mar 10, 2015

One method gives correct answer: cos(2πx)4π+C

A different method gives an answer that looks different:

sin(πx)cos(πx)dx

Since d(sin t) =cos t dt, substitution will work:

Let u=sin(πx), then du=πcos(πx)dx And cos(πx)=duπ.

Substituting yields:

1πsinudu=1πsin2u2+C

So
sin(πx)cos(πx)dx=12πsin2(πx)+C

The answer look different, but what is the difference?
Hint: subtract and simplify.

12πsin2(πx)(cos(2πx)4π)
=12πsin2(πx)+14πcos(2πx)
=12πsin2(πx)+14π[12sin2(πx)]
=14π

The difference is a constant! The two solutions have different C's.