Puzzle
6 minute read

Ponder This Challenge - May 2007 - Largest square in a cube

Ponder This Challenge:

What is the size of the largest square that will fit in the unit cube?

Update, 5/8/07: When submitting a solution please specify whether it is the side or the area of the maximum square. If you give both please be sure they are consistent. Finally as usual please only submit your original work.


We will post the names of those who submit a correct, original solution! If you don't want your name posted then please include such a statement in your submission!

We invite visitors to our website to submit an elegant solution. Send your submission to the ponder@il.ibm.com.

If you have any problems you think we might enjoy, please send them in. All replies should be sent to: ponder@il.ibm.com

Solution

  • Ponder This Solution:

    The answer is 3*sqrt(2)/4 = 1.06066+.

    Suppose the unit cube has vertices (x,y,z) where x,y,z are in {0,1}. Then an example of a maximum size embedded square has corners (0,0,.75), (1,.25,1), (1,1,.25) and (0,.75,0).

    We sketch a proof that this is largest possible embedded square. Let (r,s,t) be the center of the square. Let (r+a,s+b,t+c) and (r-a,s-b,t-c) be one pair of opposite corners of the square and let (r+x,s+y,t+z) and (r-x,s-y,t-z) be the other pair of opposite corners. Since these corners must lie within the unit cube it is easy to see that |a|,|b|,|c|,|x|,|y|,|z| <= .5 and that we may assume that r=s=t=.5. Furthermore the diagonals of a square meet at right angles so a*x+b*y+c*z=0. Also the diagonals of a square have equal length so a*a+b*b+c*c=x*x+y*y+z*z=d*d/4 (d is the length of the diagonal). We want the maximum value of d so that we can find a,b,c,x,y and z satisfying the above. If we let d=1.5 then setting (a,b,c) = (.5,.5,-.25) and (x,y,z) = (.5,-.25,.5) satisfies these constraints and produces the above example. It is easy although a bit tedious to verify that we can't do better.

    I came up with this problem and solution myself but it seems to be fairly well known as "Prince Rupert's Problem".


    If you have any problems you think we might enjoy, please send them in. All replies should be sent to: ponder@il.ibm.com

Solvers

  • V Balakrishnan (05.01.2007 @11:37:48 AM EDT)
  • Dan Dima (05.01.2007 @11:46:26 AM EDT)
  • Steve Stuve (05.01.2007 @12:15:35 PM EDT)
  • John T. Robinson (05.01.2007 @01:27:13 PM EDT)
  • Jiri Navratil (05.01.2007 @01:28:38 PM EDT)
  • Chris Shannon (05.01.2007 @01:54:54 PM EDT)
  • Nyles Heise (05.01.2007 @02:13:48 PM EDT)
  • Frank Yang (05.01.2007 @02:25:06 PM EDT)
  • David Friedman (05.01.2007 @02:55:08 PM EDT)
  • David Blackston (05.01.2007 @03:37:55 PM EDT)
  • David W. Cantrell (05.01.2007 @03:51:46 PM EDT)
  • Kalyana Chakravarthy (05.01.2007 @04:16:08 PM EDT)
  • Ken Anderson (05.01.2007 @04:18:01 PM EDT)
  • Wolf Mosle (05.01.2007 @07:21:20 PM EDT)
  • Alan Murray (05.01.2007 @11:12:23 PM EDT)
  • Joseph DeVincentis (05.01.2007 @11:38:38 PM EDT)
  • Xianchao Xie (05.01.2007 @11:46:40 PM EDT)
  • Michael Brand (05.02.2007 @12:53:19 AM EDT)
  • Dave Biggar (05.02.2007 @01:49:52 AM EDT)
  • Sanjeev Gupta (05.02.2007 @06:29:50 AM EDT)
  • Andreas Eisele (05.02.2007 @07:28:09 AM EDT)
  • Marty Galligan (05.02.2007 @09:21:47 AM EDT)
  • Mark Ritchings (05.02.2007 @09:27:11 AM EDT)
  • Abhisek Ukil (05.02.2007 @09:58:25 AM EDT)
  • Mark Perkins (05.02.2007 @02:00:08 PM EDT)
  • Eugene Vasilchenko (05.02.2007 @02:26:31 PM EDT)
  • Christian Blatter (05.02.2007 @03:01:58 PM EDT)
  • Erdinc Ozturk (05.02.2007 @03:37:30 PM EDT)
  • Ozhan Duz (05.02.2007 @04:52:06 PM EDT)
  • Joao Carrapa (05.02.2007 @05:29:31 PM EDT)
  • Ashish Srivastava (05.02.2007 @05:56:37 PM EDT)
  • John Tromp (05.02.2007 @11:23:09 PM EDT)
  • Shmuel Spiegel (05.03.2007 @01:33:52 AM EDT)
  • Tomas Schiffauer (05.03.2007 @02:25:27 AM EDT)
  • Gale Greenlee (05.03.2007 @03:14:16 PM EDT)
  • Ashwin C (05.03.2007 @03:44:41 AM EDT)
  • Vivek Nema (05.03.2007 @03:45:56 AM EDT)
  • Joaquim Neves Carrapa (05.03.2007 @04:34:09 AM EDT)
  • Sylvain Reboux (05.03.2007 @05:04:43 AM EDT)
  • Alex Proudfoot (05.03.2007 @07:15:29 AM EDT)
  • Strubi (05.03.2007 @09:11:54 AM EDT)
  • Lizhao Zhang (05.03.2007 @12:25:34 PM EDT)
  • Floyd Bullard (05.03.2007 @12:42:58 PM EDT)
  • Shankar Ram (05.03.2007 @04:13:11 PM EDT)
  • Brian Bitto (05.03.2007 @04:28:12 PM EDT)
  • Hsiu-Khuern Tang (05.03.2007 @06:03:17 PM EDT)
  • Petrica G. Mates (05.03.2007 @07:56:10 PM EDT)
  • Yuriy Kazakov (05.04.2007 @12:00:22 AM EDT)
  • Ed Sheppard (05.04.2007 @12:26:26 AM EDT)
  • Michael Marfil (05.04.2007 @12:41:13 AM EDT)
  • Vincent Vermaut (05.04.2007 @02:34:43 AM EDT)
  • K Sengupta (05.04.2007 @05:14:12 AM EDT)
  • Ashutosh Mehra (05.04.2007 @07:23:05 AM EDT)
  • Forhad Ahmed (05.04.2007 @02:12:59 PM EDT)
  • Patrick Kielisnek (05.04.2007 @04:04:49 PM EDT)
  • Paul Updike (05.04.2007 @07:23:22 PM EDT)
  • Oleg Kobchenko (05.05.2007 @04:42:19 AM EDT)
  • Gary M. Gerkin (05.05.2007 @03:49:29 PM EDT)
  • Markus Nauroth (05.05.2007 @04:46:28 PM EDT)
  • William C. Hasenplaugh (05.05.2007 @05:39:51 PM EDT)
  • Meng Lu (05.05.2007 @11:36:32 PM EDT)
  • Eric Porter (05.06.2007 @12:30:26 AM EDT)
  • Wu Hao (05.06.2007 @01:06:33 AM EDT)
  • Klaus Hoffman (05.06.2007 @08:28:17 AM EDT)
  • Clive Tong (05.06.2007 @09:49:42 AM EDT)
  • Zhou Guang (05.06.2007 @10:22:38 AM EDT)
  • Amr El-Helw (05.06.2007 @10:06:17 PM EDT)
  • Don Charnley (05.06.2007 @10:49:19 PM EDT)
  • John Fletcher (05.07.2007 @01:05:18 AM EDT)
  • Carlos J. G. Duarte (05.07.2007 @07:17:29 PM EDT)
  • Dion Harmon (05.07.2007 @09:51:53 PM EDT)
  • Rufus Smith (05.08.2007 @12:26:20 PM EDT)
  • Ji Feng (05.08.2007 @01:36:13 PM EDT)
  • Konstantin Ilyashenko (05.08.2007 @02:26:41 PM EDT)
  • Sarah J. Farrell (05.08.2007 @05:39:32 PM EDT)
  • Renato Fonesca (05.08.2007 @08:13:00 PM EDT)
  • Lucian Piros (05.09.2007 @05:51:15 AM EDT)
  • Jiri Hrdina (05.09.2007 @08:06:48 AM EDT)
  • Daniel Chong Jyh Tar (05.09.2007 @11:35:28 AM EDT)
  • Arthur Breitman (05.09.2007 @04:12:58 PM EDT)
  • Andrew Scherbakov (05.09.2007 @07:22:43 PM EDT)
  • Ashutosh Mahajan (05.09.2007 @10:12:56 PM EDT)
  • Dave Parashar (05.09.2007 @11:10:16 PM EDT)
  • Ben de Waal (05.10.2007 @12:19:52 AM EDT)
  • Siva Dirisala (05.10.2007 @01:08:11 AM EDT)
  • Ramakrishna Arni (05.10.2007 @08:49:20 AM EDT)
  • Kerry M. Soileau (05.10.2007 @01:53:34 PM EDT)
  • Mattias Widen (05.10.2007 @02:04:41 PM EDT)
  • Adriana Clerici (05.11.2007 @12:26:29 PM EDT)
  • Se Kwon Kim (05.11.2007 @08:36:17 PM EDT)
  • Luke Pebody (05.12.2007 @07:36:11 PM EDT)
  • Rajkumar Pal (05.12.2007 @08:34:40 PM EDT)
  • Erica Silva (05.13.2007 @01:03:02 AM EDT)
  • Joao Nuno Ferreira (05.13.2007 @01:49:48 PM EDT)
  • Steve Plate (05.13.2007 @02:21:08 PM EDT)
  • V. Ramakrishna (05.13.2007 @06:39:42 PM EDT)
  • Tom Gutman (05.13.2007 @07:45:48 PM EDT)
  • Omid Motahed (05.13.2007 @09:58:17 PM EDT)
  • Ameet Deshpande (05.14.2007 @02:59:41 PM EDT)
  • Alex Wagner (05.15.2007 @02:31:55 AM EDT)
  • Reejis Stephen (05.15.2007 @02:38:54 PM EDT)
  • John Ritson (05.16.2007 @01:01:41 AM EDT)
  • Alan O'Donnell (05.16.2007 @07:38:29 AM EDT)
  • Pallavi Srivastava (05.16.2007 @01:13:33 PM EDT)
  • Phil Muhm (05.16.2007 @01:28:01 PM EDT)
  • Kalyanam Karthik (05.16.2007 @05:27:43 PM EDT)
  • Paul J. Bennett (05.17.2007 @01:21:59 AM EDT)
  • Ramasamy Chandramouli (05.17.2007 @01:45:32 AM EDT)
  • Lawrence Hon (05.17.2007 @04:03:34 PM EDT)
  • Rethnakaran Pulikkoonattu (05.18.2007 @03:18:17 AM EDT)
  • Sameer Pawanekar (05.18.2007 @05:45:39 AM EDT)
  • Wolfgang Kais (05.19.2007 @05:35:23 PM EDT)
  • Mohammed Agamy (05.20.2007 @01:53:10 PM EDT)
  • Karthik Tadinada (05.21.2007 @10:46:18 AM EDT)
  • Tobias Regele (05.21.2007 @06:50:46 PM EDT)
  • Marcus Hedbring (05.22.2007 @11:04:08 AM EDT)
  • Mark Buisseret (05.22.2007 @12:18:52 PM EDT)
  • Sumanth Jagannath (05.22.2007 @09:40:07 PM EDT)
  • Jim Ardalan (05.22.2007 @10:25:32 PM EDT)
  • Biju Mohan (05.24.2007 @04:07:44 AM EDT)
  • Martin Lormes (05.24.2007 @09:20:50 AM EDT)
  • Satish Sankaraalingam (05.24.2007 @01:00:01 PM EDT)
  • Bo Yang (05.24.2007 @03:52:37 PM EDT)
  • Allen Wan (05.24.2007 @11:37:48 PM EDT)
  • Maxim G. Smith (05.25.2007 @11:29:28 AM EDT)
  • Gerard Pieris (05.26.2007 @03:15:14 PM EDT)
  • Michael Prewecki (05.27.2007 @08:48:29 AM EDT)
  • Shyam Pallapothu (05.28.2007 @04:51:50 AM EDT)
  • Jérémie Bernier (05.28.2007 @05:51:23 AM EDT)
  • Chris Hills (05.28.2007 @06:44:02 AM EDT)
  • Arunkumar Pandian (05.28.2007 @02:06:10 PM EDT)
  • David McQuillan (05.28.2007 @05:42:46 PM EDT)
  • Ye-Ming Zhao (05.29.2007 @12:45:57 AM EDT)
  • Kandaswamy Gnanamurthy (05.30.2007 @06:32:24 PM EDT)
  • Aditya Mahajan (05.30.2007 @06:42:05 PM EDT)
  • Nikhil Sahasrabudhe (05.31.2007 @02:42:36 AM EDT)
  • Vardhan (05.31.2007 @03:06:14 AM EDT)
  • Min Yang (05.31.2007 @12:32:45 PM EDT)
  • Andrea Andenna (05.31.2007 @02:08:35 PM EDT)
  • Du Yang (05.31.2007 @04:22:18 PM EDT)
  • Teodora Baeva (05.31.2007 @05:49:31 PM EDT)
  • George Savvas (05.31.2007 @09:25:28 PM EDT)
  • Celia Anteneodo (05.31.2007 @11:14:55 PM EDT)

Related posts