Circle Packing In A Square

circleInBoxGiven a circle of radius r, and around it a box of side 2r. We want to put another circle into the gap between the circle and a corner of the box. Find a formula for the center and radius of the largest circle that can be fit into that space. This might be a little trickier than you first think.

The solution’s after the break, but don’t give up too soon! 

circleInBox3a

They key thing is to not assume the circle is centered in the “middle” of the gap.

Symmetry says the circle must be on the diagonal. The radius we seek, which I’ll call a, makes the inner circle touch both edges of the box and the big circle; clearly no circle can be bigger. The diagonal of the square is r√2, so the piece of the diagonal in the gap is g = r (√2-1).

circleInBox3b

 

Focus on the little region in the bottom left. The line from the corner to the circle has length g. The upper part of the line has length a. The lower part is the diagonal of a box with side a, so that lower part has length a√2. Thus g = a + a√2, or a = g/(1+√2).

When I first worked this out I had all sorts of triangles and things floating around. I was definitely over-thinking it! The answer is nice and easy.

Note that this is basically an Appolonian gasket, but because we’re tangent to a circle and two perpendicular lines (rather than three circles) our result is a simple special case.

1 thought on “Circle Packing In A Square

  1. richard Hawkins

    Yeah.. got the sqrt(2) thing you did, and yes, overthought it all for a while. Weeks, in fact. Equatiosn of circles and nonsense. It’s all just right triangles.

    If the master (big) circle has a radius os 1 unit, then one down in the corenr has a radius of (sqrt(2)-1)/(sqrt(2) +1), or about 0.1715..

    Now how about the next one over to the right. It’s half of the previous one, or about 0.0858. And the one after that is — I’ll bet – half again, or 0.0429.

    Suspect it hasa an application in soil physics, but nerw to me when I thought it up.

    Good to see sosmeone else this curious.

    rhh
    —————————————————————————————–
    Richard H. (Pete) Hawkins, PhD, P.E., F.ASCE, F.EWRI, Professor Emeritus
    School of Natural Resources and Environment,
    Watershed Resources and Ecohydrology
    Department of Agricultural and BioSystems Engineering
    Department of Hydrology and Water Resources
    325 BioSciences East, University of Arizona, Tucson AZ 85721
    520-623-7736 (o,f) 520-240-7382 (c) 520-743-3959 (h)
    rhawkins@ag.arizona.edu buckyhaw@gmail.com

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *