Find the volume of the solid obtained by rotating the region of $(x-1)^2+(y-1)^2 \le1$ about the $y=\frac12$
This is the figure that you get when you try to show on the Oxy system. I'm struggling with how to use the formula of the volume in this case.
Is this right what I did? I don't know really what shape will I get $$\mathsf{V}=\pi\int_0^{1-\frac{\sqrt3}{2}}\left(1+\sqrt{1-(x-1)^2}-\frac12\right)^2-\left(1-\sqrt{1-(x-1)^2}-\frac12\right)^2dx+\pi\int_{1-\frac{\sqrt3}{2}}^{1+\frac{\sqrt3}{2}}\left(1+\sqrt{1-(x-1)^2}-\frac12\right)^2dx+\pi\int_{1-\frac{\sqrt3}{2}}^{1+\frac{\sqrt3}{2}}\left(\frac12-(1-\sqrt{1-(x-1)^2})\right)^2dx+\pi\int_{1-\frac{\sqrt3}{2}}^2\left(1+\sqrt{1-(x-1)^2}-\frac12\right)^2-\left(1-\sqrt{1-(x-1)^2}-\frac12\right)^2dx$$


Calculates the volume of the body formed by the rotation of the segment above line $y=\dfrac12.$
The segment is symmetric about the line $x=1,$ so the volume can be calculated for left part factor $2$.
The integral is splitted to the fragments $x\in\left(0,1-\frac{\sqrt3}3\right)$ and $x\in\left(1-\frac{\sqrt3}3\right).$
The volume equals to $$V=2\pi\left(\int\limits_{0}^{1-\frac{\sqrt3}2}\left(\left(1+\sqrt{1-(x-1)^2}-\frac12\right)^2-\left(1-\sqrt{1-(x-1)^2}-\frac12\right)^2\right)\,\mathrm dx + \int\limits_{1-\frac{\sqrt3}2}^1\left(1+\sqrt{1-(x-1)^2}-\frac12\right)^2\,\mathrm dx\right),$$ or $$V=2\pi\left(\int\limits_{0}^1\left(1+\sqrt{1-(x-1)^2}-\frac12\right)^2\,\mathrm dx -\int_0^{1-\frac{\sqrt3}2}\left(1-\sqrt{1-(x-1)^2}-\frac12\right)^2\,\mathrm dx \right).$$ Therefore, the inner part subtracts from the outer one.