Calculus · real student question

Evaluate the integral from theta = 0 to x of the integral from r = 0 to 1/2 of the absolute value of (r cubed sin theta cos theta + one third r squared sin theta) dr dtheta.

Question

Evaluate 0xdθ01/2r3sinθcosθ+13r2sinθdr\int_0^x d\theta\int_0^{1/2}\left|r^3\sin\theta\cos\theta+\frac13 r^2\sin\theta\right|dr for 0xπ20\le x\le \frac{\pi}{2}.

Step-by-step solution

  1. Factor the expression inside the absolute value. r3sinθcosθ+13r2sinθ=r2sinθ(rcosθ+13).r^3\sin\theta\cos\theta+\frac13r^2\sin\theta = r^2\sin\theta\left(r\cos\theta+\frac13\right). Factoring first is what lets the sign be settled without case analysis on rr.

  2. Determine the sign on the domain. r20r^2\ge0 always. For 0θxπ20\le\theta\le x\le\tfrac{\pi}{2} we have sinθ0\sin\theta\ge0 and cosθ0\cos\theta\ge0, so rcosθ+1313>0r\cos\theta+\tfrac13\ge\tfrac13>0. Every factor is nonnegative, so the absolute value can be dropped. (For x>π2x>\tfrac{\pi}{2} the bracket can go negative once rcosθ<13r\cos\theta<-\tfrac13, and the problem would split into cases.)

  3. Integrate in r, treating theta as a constant. 01/2r3dr=164,01/2r2dr=124,\int_0^{1/2}r^3\,dr = \frac{1}{64},\qquad \int_0^{1/2}r^2\,dr = \frac{1}{24}, so the inner integral is sinθcosθ64+sinθ72,\frac{\sin\theta\cos\theta}{64}+\frac{\sin\theta}{72}, using 13124=172\tfrac13\cdot\tfrac1{24} = \tfrac1{72}.

  4. Integrate the first piece in theta. With u=sinθu=\sin\theta, 0xsinθcosθdθ=sin2x2,\int_0^x\sin\theta\cos\theta\,d\theta = \frac{\sin^2x}{2}, so this piece contributes sin2x128\dfrac{\sin^2x}{128}.

  5. Integrate the second piece. 0xsinθdθ=1cosx,\int_0^x\sin\theta\,d\theta = 1-\cos x, contributing 1cosx72\dfrac{1-\cos x}{72}.

  6. Combine and check. 0x ⁣ ⁣01/2drdθ=sin2x128+1cosx72.\int_0^x\!\!\int_0^{1/2}\left|\cdots\right|dr\,d\theta = \frac{\sin^2x}{128}+\frac{1-\cos x}{72}. At x=1.1x=1.1 the closed form gives 0.01379402520.0137940252, and nested numerical quadrature of the original absolute-value integrand returns 0.01379402520.0137940252 - a match to ten decimals. At x=0x=0 both sides are 00, as they must be.

Answer

sin2x128+1cosx72(0xπ2)\frac{\sin^2 x}{128}+\frac{1-\cos x}{72} \qquad \left(0\le x\le \tfrac{\pi}{2}\right)

Need to solve a different problem like this? Open the solver →