Suppose the side length $a$ of the square is 10mm. A circle is tangent to all four sides of the square. And two quarter-circles with the same radius of 10mm have centers on the opposite vertices.
It may be easier to view it in the picture on the right.
What’s the area of shaded region? Using some trigonometrical calculation, I got a complex formula
$$S=\left[\frac{1}{2}(\pi -\arccos(-\frac{\sqrt{2}}{4}))+\sqrt{2}\sin(\arccos(\frac{5\sqrt{2}}{8}))-2\arccos(\frac{5\sqrt{2}}{8})\right]a^2$$ which gives 29.276$mm^2$. The way is far from beautiful. Don’t know if there are any simpler ways to do that? Is there any principles that I am not aware of?
Thank you.


I'm quite sure your solution is incorrect. I believe the correct value of the area is given by $$2\left(\overbrace{(2r)^2}^{\text{area of square}}-\overbrace{\frac{\pi(2r)^2}{4}}^{\text{area of larger quarter circle}}-\overbrace{(r^2-\frac{\pi r^2}{4})}^{\text{area between smaller circle}\\\,\,\,\,\,\text{ and lower left corner}}-2c\right)$$ where $c$ is the area between the bottom edge of the square and where the intersection of the two circles form an 'X' shape. The value of $c$ can be calculated by the following integrals $$c=\int_r^{(3+\sqrt{7})r/4}\left(r-\sqrt{r^2-(x-r)^2}\right)\mathrm{d}x+\int_{(3+\sqrt{7})r/4}^{2r}\left(2r-\sqrt{4r^2-(x-2r)^2}\right)\mathrm{d}x$$ where the two integrands are the equations of the bottom half of each circle in question. The final value for the area highlighted in blue simplifies to $$r^2\left(\sqrt{7}+\frac{3\pi}{2}+4\arctan{\left(\frac{2+\sqrt{7}}{3}\right)}-16\arctan{\left(\frac{4+\sqrt{7}}{9}\right)}\right)$$