## Three Circles in a Square

Taking a break from Project Euler I have come across this problem recently

It is obvious that we can fit four circles of diameter 1 unit in a square of side 2 units without overlapping. What is the smallest square into which we can fit 3 circles of diameter 1 unit?

Looking at figure 1, we can safely assume that the first circle should have two sides of the square as tangents. We can minimise the area of the bounding square by positioning the other two circles on either side of the diagonal from the top left to the bottom right of the square. This diagonal will divide the square into two symmetrical halves.

Initially I tried this problem using co-ordinate geometry. In figure 2, set the origin to be the top-left corner of the square. The points A, B and C are the centres of the respective circles, which we shall call a, b and c. The point X is the point on the common tangents of circles b and c.

1. The line through A and X will pass through the top-left and bottom-right of the square, therefore we can establish the equation for it. This will be y = -x
2. The point A is (0.5, -0.5)
3. The line AC is 1 unit long
4. The line CX is 0.5 units
5. The angle CXA is 90 degrees
6. Using Pythagoras, we can calculate length AX
7. We know the equation of the line through A and X and the coordinates of the point A. Now from the length of AX we can calculate the coordinates of the point X
8. The line through B and X is perpendicular to the line through A and X, and we know a point on it (X). We can therefore calculate the equation for this line
9. Knowing the equation of this line and the point X on it we can calculate the coordinates of the point C because it is a known distance from X
10. Adding 0.5 to the absolute value of the y co-ordinate of C will give us the height of the square, which will give us the area

I then tried to find a solution without using co-ordinate geometry. Starting with figure 3 with the equilateral triangle of side 1 unit.

I then constructed another two right-angled triangles (ADB and ACE) with hypotenuses (hypotenusii?) of AB and AC and angle EAD = 90 degrees. From here it was plain sailing.

From figure 4:

1. Angle CAB is 60 degrees (it is an angle in an equilateral triangle)
2. Since angle CAB is 60, the sum of angle EAC and angle BAD is 30
3. Since these two angles must be equal, angle EAC is 15 degrees
4. Cos EAC = AE/AC
5. AE = Cos EAC * AC
6. AC =1 therefore AE = Cos EAC
7. EAC is 15 degrees therefore AE = Cos 15
8. The length of the line from the radius of circle A to the top of the square is 0.5
9. The length of the line from the radius of circle c to the bottom of the square is 0.5
10. The length of the square is therefore 0.5 + Cos 15 + 0.5 and the area is this expression squared

Tags:

### One Response to “Three Circles in a Square”

1. Una says:

Everything you do can become the main topic of a blog.
Grin, get creative, and have fun currently talking
about fun stuff you want. Ensure that the titles of your blog-posts are extremely catchy.

Feel free to visit my website … blogging trends – Una,