Before I touch an integral, let me describe the object. r equals one plus cosine theta is never negative, because cosine is at least minus one, and it vanishes only at theta equals pi. It has period two pi, and since cosine is even, the upper half from zero to pi is mirrored below the polar axis by the run from pi to two pi.
The landmarks are worth reading off at sight: two out front, three halves at sixty degrees, one at the quarter turn, a half at a third of a turn, and zero at the pole. This is the cardioid, the heart-shaped curve the question expects me to recognise on sight.
The question asks how I would set up the area integral, so my plan is three moves: sketch it honestly, set up the sector integral, and then refuse to trust my own number until it has been checked by a route that does not use the formula.
In Cartesian coordinates the area element is a rectangle, height times width. Around the pole the honest object is a circular sector: a slice between two rays meeting at angle delta theta, out at radius r, has area one half r squared delta theta, because the whole disc is pi r squared, which is exactly one half r squared times two pi.
So I cut the region by rays at equally spaced angles. On each piece, r is continuous, so the slice is trapped between the sector drawn at the minimum of r on that piece and the sector drawn at the maximum; as delta theta shrinks the two close together, and the sum of sectors becomes one half the integral of r squared d theta.
For this curve, over the full trace from zero to two pi, the setup is: A equals one half times the integral of one plus cosine theta, all squared. That is the answer to the literal question, but I will evaluate it, because the evaluation is where the mistakes are, and because I am not going to believe one halved integral on the first pass.
Let me draw it from the landmarks: start out front at radius two when theta is zero, swing up and back through three halves at sixty degrees, cross the vertical axis at radius one, narrow through a half at a third of a turn, and pinch into the pole at pi, where the curve arrives at the origin with the polar axis as its tangent, a cusp rather than a smooth turn.
Then theta runs on from pi to two pi and simply mirrors the whole trip below the axis, back out to two. Height check from the numbers I computed: the topmost point sits at about one and three tenths, so the shape is fatter than tall.
The picture matters for more than presentation. It shows me the curve does not cross itself, it is traced exactly once over the interval, and every ray from the pole cuts the region in one clean interval from zero out to r of theta. Those three facts are exactly what licenses the sector formula, and if the sketch had instead shown a second loop, the very same integral would have been quietly counting that loop twice.
Expand the square: one plus two cosine theta plus cosine squared theta. The half-angle identity turns cosine squared into one half plus one half cosine two theta, so the integrand is the constant three halves, plus two cosine theta, plus one half cosine two theta.
Over the full range from zero to two pi both cosine terms integrate to exactly zero, since one completes a period and the other completes two. Only the constant survives: A equals one half times three halves times two pi, which is three pi over two, approximately four point seven one two four.
Now the part I do not trust: two whole terms vanished by symmetry, and the answer came from the constant alone. That is either genuinely true arithmetic or a tidy mistake; averaging mistakes love symmetry. So next I check the number against quadrature at nodes that know nothing about the symmetry, then justify the formula itself, then get the same area by a route that never writes one half r squared.
I ran the integral of one half times the square of one plus cosine theta on Gauss-Legendre nodes, which deliberately avoid the equally spaced lattice. Four nodes give four point five two one six, eight nodes give four point seven one two three eight, and by sixteen and thirty-two nodes the estimate sits on four point seven one two three eight nine with errors of order ten to the minus fifteen, which is machine precision.
Three pi over two is four point seven one two three eight eight nine eight to the digits shown, so the quadrature lands exactly on it, and equivalently the mean value of one half r squared over the period comes out at zero point seven five to the eighth decimal, precisely the constant three quarters my expansion produced.
So the algebra of the expansion is confirmed. Notice what this check does and does not do: it re-tests my arithmetic against the same formula. It cannot test the formula. That needs a route that does not contain the words polar coordinates, and one justification of the hypotheses first.
Here is when the setup I wrote is honest. The radius function must be non-negative, the region must be star-shaped with respect to the pole, that is, on each ray the interior is the whole interval from zero out to r of theta, and the curve must be traced exactly once. On the upper half the radius runs down from two to zero, on the lower half it climbs back, and the sketch shows no self-crossing, so all three hold.
With those in hand the proof is a pinching argument: freeze r at its minimum on each angular piece and draw the sectors, then at its maximum; the true region contains the first family and sits inside the second. Since r squared is continuous, the two sector sums differ by at most the oscillation of r squared times two pi over two, which vanishes. That is a polar cousin of upper and lower Darboux sums, and exactly the same machinery as a Riemann-sum proof.
The only delicate point is the cusp at theta equals pi, where the radius is zero. But that is a single parameter value: on an angular window of width delta around pi, the radius never exceeds the maximum of r there, and that maximum tends to zero, so the window's contribution tends to zero. A cusp of zero angular width holds no area and breaks nothing.
And one internal consistency check: by symmetry I can integrate just the upper half and double. The antiderivative three halves theta plus two sine theta plus a quarter sine two theta, taken from zero to pi, leaves only the constant term, three pi over two again. Same formula, different interval; reassuring, but still not independent.
A genuinely independent route: throw the polar machinery away. On the ray through a Cartesian point, r is the square root of x squared plus y squared and cosine theta is x over that, so the condition for being inside the curve becomes x squared plus y squared less than or equal to the square root of x squared plus y squared, plus x. That is a test you can run on a pixel without ever integrating.
So I counted. On square grids of side one-fiftieth, one-hundredth, one two-hundredth and one four-hundredth, the cell count times h squared gave four point seven zero seven two, four point seven one one six, four point seven one two seven, four point seven one two five, boxing in four point seven one two three eight nine, wobbling at the boundary-cell level as the theory of pixel counting says it must.
For good measure, a fixed-seed Monte Carlo with a million throws gave four point seven one two eight. Three methods now agree: the sector integral, the pixel count, and the darts. The pixel count in particular checked the setup, not just the arithmetic, because it never used the formula.
So the enclosed area is three pi over two, and the setup the question asked for is one half the integral of one plus cosine theta, squared, from zero to two pi.
The cardioid is one member of the limacon family r equals a plus b cosine theta. As long as a is at least b, the same computation goes through word for word: the cross term integrates to zero over a period, and the area is pi a squared plus half pi b squared. Setting b to zero recovers the disc of radius a, pi a squared, which is the sanity check that the family formula is right.
The interesting part is where it fails, and the cardioid is sitting exactly on the fault line. Take a below b, say one plus two cosine theta: r goes negative for a while, the curve grows an inner loop that folds back inside the main region, and the single integral over zero to two pi sweeps that loop a second time. I worked it out: the integral gives three pi, about nine point four two, but the loop alone is pi minus three root three over two, about zero point five four, so the true enclosed area is three pi minus one loop, about eight point eight eight. At a equals b the loop has shrunk to the cusp at the pole, measure zero, which is precisely why our answer needed no correction. The cusp is not a curiosity of this curve; it is the phase boundary of the whole family.
If you want to know why I used Gauss nodes instead of a friendly equally spaced rule: the integrand is a trigonometric polynomial of degree two, three quarters plus cosine theta plus a quarter cosine two theta, and the discrete sum of cosine k theta over n equally spaced nodes vanishes exactly whenever n is greater than k. My trapezoid check would have returned three pi over two to machine precision with just three points, and it would have tested my arithmetic and silently blessed the model.
The cusp deserves one more sentence: writing phi for theta minus pi, the radius behaves like phi squared over two, and near the pole the curve is x about minus phi squared over two, y about minus phi cubed over two, a semi-cubical parabola. Curvature blows up there, arc length is still finite, and area does not care at all.
The question asked for a sketch and a setup. All of this is seasoning, so I would only put it on the board if invited.
The two curves meet where one plus cosine theta equals one, that is cosine theta equals zero, theta equals plus and minus pi over two. Between those rays the cardioid is the outer boundary; outside them the circle is, but over those angles the region I want is empty, so I integrate the difference of sectors on the crossing interval only.
Inside a ray the region between two polar curves is an annular sector, so the r squared values subtract before integrating: one half the integral, from minus pi over two to pi over two, of the square of one plus cosine theta, minus one. The expanded integrand is two cosine theta plus cosine squared theta, whose integrals over that range are four and pi over two.
So the answer is one half of four plus pi over two: two plus pi over four, approximately two point seven eight five four, and I checked that number by direct quadrature.
Pi to three pi is fine: cosine has period two pi, so that is the same single tracing, just started at a different point on the curve, and the integral still gives three pi over two.
Zero to four pi is not: the curve is swept twice and the sector integral dutifully counts the region twice, giving three pi. The endpoints of the interval are a convention; the number of tracings is not. That is exactly the discipline the inner-loop limacon punishes you for forgetting.
Because r squared hides which piece of the plane each slice sweeps. A negative r plots on the opposite ray, so the sector sum counts a region that sits at angle theta plus pi, not theta, and you can only turn the sum into the area of a named set when you know what each slice actually covered and how many times.
Where r stays non-negative and the region is star-shaped, every slice covers fresh territory exactly once and the integral is the area, no bookkeeping needed. Where r dips negative, the a below b limacons, the same integral over-counts: for one plus two cosine theta it returned three pi while the actual enclosed area was three pi minus the loop, because the loop territory was swept by both the positive and the negative branches.
Same curve, different integrand: length is the integral of the square root of r squared plus r prime squared, and r prime is minus sine theta, so the radicand is two plus two cosine theta, which is four cosine squared of theta over two by the same half-angle identity.
The square root is two times the absolute value of cosine theta over two. The absolute value matters, because cosine of theta over two changes sign at theta equals pi. Drop it and you get zero; that is the classical blunder on this exact integral.
Integrating piecewise gives eight, and in the family r equals a times one plus cosine theta the length is eight a. I verified the eight numerically by quadrature before quoting it.