Consider the curve C given in polar coordinates by
r=2+cosθ(0≤θ≤2π),
with the origin O as the pole and the positive x–axis as the initial line.
[(1)] Compute the area of the region enclosed by the curve C.
[(2)] At the point
(r,θ)=(24+2,4π),
find the slope of the tangent line to the curve $C$ in the $xy$–coordinate plane.
Let a be the value obtained in part (1). Express the answer from part (2) in the form
b+c,
where b and c are integers, and let those integers be the definitions of b and c. Using these values of a, b, and c, compute
πabc.
\
Ground Truth
-18
Execution Trace
Reasoning Process
[THOUGHT]
First, compute the area a = (1/2) ∫ from 0 to 2π of r² dθ, where r = 2 + cos(θ). Use sympy for exact value.
[/THOUGHT]
[PYTHON]
from sympy import *
[THOUGHT]
The area a=29π. The slope is −2+2, so b=−2, c=2. Then πabc=π29π⋅(−2)⋅2=−18.
[/THOUGHT]
−18
Explanation
The reasoning follows the problem's requirements step-by-step. First, the area a is computed using the polar area formula A=21∫02πr2dθ, where r=2+cosθ. Substituting gives r2=(2+cosθ)2=4+4cosθ+cos2θ. Integrating term-by-term: ∫02π4dθ=8π, ∫02π4cosθdθ=0, and ∫02πcos2θdθ=∫02π21+cos2θdθ=π. Thus, A=21(8π+π)=29π, matching the Python output of 4.5π.
For part (2), verify the point (r,θ)=(24+2,4π) lies on the curve: r=2+cos(π/4)=2+22=24+2, which holds. The slope dxdy in polar coordinates is dθdxdθdy, where x=rcosθ, y=rsinθ, dθdr=−sinθ.
Thus, dθdx=dθdrcosθ−rsinθ=(−sinθ)cosθ−rsinθ, and dθdy=(−sinθ)sinθ+rcosθ. At θ=π/4, sinθ=cosθ=22, so dθdr=−22.