A complex-looking simple problem

I would like to share the solution of a very simple problem. I tried solving it during an exam. It looked really complex (to me) at first but then I finally did it!

Problem: There is a square of side r. There are two circles drawn with radius equal to the side of the square. What is the probability of a particle to be found in the shaded (yellow) region?

Usually when we solve the probability problems (not that I am an expert), the formula that we use is, (number of desired items e.g. red balls) divided by (total number of items e.g. red and yellow balls). Similarly, here we can use, (area of shaded region) divided by (total area). To calculate it, we need to figure out the area of the yellow region.

It can be seen, that there are two circles here. And the area of circle is, \pi r^2, but the circle inside the square is just \frac{1}{4}^{th}, so area of first circle inside the square is, \frac{1}{4} \pi r^2. The area of square itself will be r^2. Now if we subtract the area of the circle from the square, we get the area of one purple region. r^2 - \frac{1}{4} \pi r^2 = r^2(1 - \frac{\pi}{4} ). The area of second purple region will also be the same, and hence the total area is, 2 [r^2(1 - \frac{\pi}{4})]. In the end what we need to do is, subtract this from the area of square to get the area of yellow region. Which is going to be, r^2 - 2 [r^2(1 - \frac{\pi}{4})] = -r^2 + \frac{\pi}{2}r^2.

Finally, we can get the probability of the particle to be found in the yellow region, which is, \frac{[-r^2 + \frac{\pi}{2}r^2]}{r^2} = \frac{\pi}{2} - 1.