Multivariable calculus
Double Integral of sin^2 x cos^2 y Over a Square
The double integral of sin(x) squared times cos(y) squared over the square with x and y each from 0 to pi equals pi squared over 4, about 2.4674. The integrand separates, and each single integral of a squared trig function over 0 to pi equals pi/2.
Numerically 2.467401, confirmed by quadrature on every build.
Separate, then kill each square with a half-angle identity
The integrand is a product of a function of alone and a function of alone, and the region is a rectangle, so the double integral splits into two independent single integrals.
Neither square has an obvious antiderivative, so lower the power with the half-angle identities and .
The cosine version works the same way and also gives , since vanishes at both ends. Multiplying gives .
The mistake: applying the power rule to sin^2 x
The most common wrong answer here comes from treating as if it were with , giving an antiderivative of .
The stray is the chain-rule factor that is missing from the integrand. Worse, that fake antiderivative evaluates to at both and , so it reports the whole integral as rather than .
A zero answer should have set off alarms on its own: is non-negative and not identically zero, so its integral over an interval of positive length must be strictly positive.
Why both squares average to one half
There is a faster route worth knowing. On both and have average value : they add to at every point, and each is the other shifted by , which changes nothing across a full period of length . Equal averages summing to must each be .
So the double integral is times the base area , which is . The averaging argument does need the right interval. Since , the average is exactly only when . Every interval of length qualifies, and so does , but over the leftover pulls the average down to .
Frequently asked questions
Does the answer change if the integrand is cos^2 x sin^2 y instead?
No. Each factor still integrates to over , so the product is again . The symmetry comes from integrating over a full half period in both variables.
Can I use sin^2 + cos^2 = 1 to simplify this integrand?
Not here. That identity applies to for the same angle. In the angles differ and the terms are multiplied, so the identity does not touch it.