(a) Parametrize the circle by
x=acosθ, y=asinθ, 0≤θ≤2π. Then
dx=−asinθdθ and
dy=acosθdθ so that
2π1∮Cx2+y2xdy−ydx=2π1∫02πa2cos2θ+a2sin2θa2cos2θdθ+a2sin2θdθ=2π1∫02πdθ=1
(b) The boundary of the square has four sides — one
with y=−1, one with x=1, one with y=1 and one with x=−1.

To evaluate the integrals over the four sides
- parametrize the y=−1 part by x so that
r(x)=x^−^, r′(x)=^, with x running from −1 to 1,
- parametrize the x=+1 part by y so that
r(y)=^+y^, r′(y)=^, with y running from −1 to 1,
- parametrize the y=+1 part by x so that
r(x)=x^+^, r′(x)=^, with x running from 1 to −1, and
- parametrize the x=−1 part by y so that
r(y)=−^+y^, r′(y)=^, with y running from 1 to −1,
so that the integral
2π1∮Cx2+y2xdy−ydx=2π1∫−11x2+1−(−1)dxy=−1 part+2π1∫−111+y2(1)dyx=+1 part+2π1∫1−1x2+1−(1)dxy=+1 part+2π1∫1−11+y2(−1)dyx=−1 part=42π1arctanx−11=π2[4π+4π]=1
(c)
As in part (a) with a=2, but with θ running from 0 to π,
the outer semicircle gives
2π1∫0πa2cos2θ+a2sin2θa2cos2θdθ+a2sin2θdθ=2π1∫0πdθ=21

As in part (a) with a=1, but with θ running from π to 0,
the inner semicircle
gives
2π1∫π0a2cos2θ+a2sin2θa2cos2θdθ+a2sin2θdθ=2π1∫π0dθ=−21
The two flat pieces each give zero, since
on them y=0 and dy=0. So
2π1∮Cx2+y2xdy−ydx=21+0−21+0=0
An alternate solution, that uses Green's theorem, is given in the solution to the next question.