Jump to content
BrainDen.com - Brain Teasers
  • 0

A plane old stuffed cube


bonanova
 Share

Question

9 answers to this question

Recommended Posts

  • 0

If no one else is going to go after this one... I can give an answer based on, well, working in the spirit of the best solution the program could find. But I can't prove that there aren't any larger squares that can fit in the unit cube.

  Reveal hidden contents

Imagine a placing the vertices of the square as shown in the picture -- points A and B are distance x from the corner on the bottom face of the cube, and points C and D are distance x from the opposite corner on the top face of the cube.

post-15489-0-20875800-1380253542_thumb.j

The length of edge AB will be

sqrt(x2+x2) = x sqrt(2)

If you were to superimpose the top face onto the bottom face (sort of squishing the cube down onto a plane) then the distance from B to C after squishing would be

(1-x) sqrt(2)

The total distance from B to C in three dimensions would also take into account that the top face and the bottom face are 1 unit apart, so the total distance would be

sqrt(12 + [(1-x) sqrt(2)]2)

We need to find the value of x for which those are equal -- meaning that edge AB is the same length as edge BC as you should have in a square. Solving...

x sqrt(2) = sqrt(12 + [(1-x) sqrt(2)]2)

2x2 = 1 + [(1-x) sqrt(2)]2

2x2 = 1 + 2(1-x)2

2x2 = 1 + 2 - 4x + 2x2

0 = 3 - 4x

x = 3/4

So the edge length for AB would be

x sqrt(2) = 3/4 sqrt(2)

Checking my math, solving for the edge length of BC would be

sqrt(1 + [(1-x) sqrt(2)]2)

when x = 3/4 which thankfully also gives 3/4 sqrt(2)

The square's area would be

[3/4 sqrt(2)]2 = 9/16 2 = 18/16 = 1.125

Link to comment
Share on other sites

  • 0

I just realized where I went wrong in my first guess... I'll have to figure a different answer:

  Reveal hidden contents

I just realized I can't use the unit edge length (a square would be the cube face) or the diagonal of the cube face (creates a rectangle with the cube edge). The correct square would be between those two lengths. Mathematically defining that length is the challenge.

Edited by Dariusray
Link to comment
Share on other sites

  • 0

  Reveal hidden contents

The square will need to stretch from one cube corner to the opposite cube corner this means that the other corners of the square rest on an edge half way up a cube.



Using Pythagoras gives use sqr(.5*.5 + 1*1) for a side of this square.

which gives us 1.25 units squared for the area

I am not sure if this is a square or a rhombus however. I suspect the latter given that the distance from cube corner to cube corner is greater than the distance between cube edge and cube edge. I'm sure however whoever reads this answer could from this enlighten us.

Link to comment
Share on other sites

  • 0
  On 9/24/2013 at 2:25 AM, Dariusray said:

I just realized where I went wrong in my first guess... I'll have to figure a different answer:

  Reveal hidden contents

I just realized I can't use the unit edge length (a square would be the cube face) or the diagonal of the cube face (creates a rectangle with the cube edge). The correct square would be between those two lengths. Mathematically defining that length is the challenge.

Since it's a unit cube, your answer simplifies (if I'm reading it correctly) to Sqrt(2) / 2 = .707.

This is smaller than a cube face. But maybe I don't interpret your answer correctly.

Link to comment
Share on other sites

  • 0
  On 9/24/2013 at 2:26 AM, phaze said:

  Reveal hidden contents

The square will need to stretch from one cube corner to the opposite cube corner this means that the other corners of the square rest on an edge half way up a cube.

Using Pythagoras gives use sqr(.5*.5 + 1*1) for a side of this square.

which gives us 1.25 units squared for the area

I am not sure if this is a square or a rhombus however. I suspect the latter given that the distance from cube corner to cube corner is greater than the distance between cube edge and cube edge. I'm sure however whoever reads this answer could from this enlighten us.

A little too large, but close. And the answer is in fact a rational number.

If it helps, there is a close relation to the question that asks whether a cube can be pushed through a square hole in a smaller cube.

Link to comment
Share on other sites

  • 0

So far the best that my horribly inefficient and possibly buggy java code came up with is an area of 1.0984. But it's still running.

I probably ought to have searched for a reasonably efficient Windows C compiler instead.

Unfortunately I don't see any easy way of modifying the code to work in 4 dimensions. Especially since it uses cross products which I don't think are defined in 4D.

Link to comment
Share on other sites

  • 0

This is what my brute force approach came up with. If you look at the coordinates of the square that it fit into the unit cube, it should become clear how to imagine that it's oriented, and allow you to come up with a more analytical approach to solving the problem. Which I'm not going to attempt myself for now.

  Reveal hidden contents
A: 0.0 0.0 0.27999999999999997
B: 0.0 0.7800000000000004 0.9800000000000005
C: 0.997834284225222 0.9940718358648026 0.7414628114649353
D: 0.997834284225222 0.21407183586480227 0.041462811464934746
Edge length AB: 1.0480458005259128
Edge length AC: 1.4821605850919133
Edge length AD: 1.0480458005259128
Edge length BC: 1.0480458005259128
Edge length BD: 1.482160585091913
Edge length CD: 1.0480458005259128
(The program also printed the length of each of the edges and diagonals, for debugging purposes.)
  Reveal hidden contents

  Reveal hidden contents
Go to oracle.com and download and install the Java Development Kit (JDK) (http://www.oracle.com/technetwork/java/javase/downloads/index.html)
Most people would probably think it's easier to install the NetBeans IDE and program through it, but not me ^_^
If you do use NetBeans, be sure to leave the package line at the top when you create a new project, and just cut/paste my code to replace everything after that line
There's a tutorial on Oracle's website about using NetBeans. The rest of this is if you want to do things the old fashioned way.
Set the path variable so it includes Java's bin directory. Exactly where things are will vary a little based on your Windows version but...
- This can usually be done from the control panel,
- go to System,
- find Advanced System Settings,
- find a button to access Environment Variables,
- edit the Path variable: keep everything that's already there but add the directory for the binary files, separated from the others by a semicolon
- the path to add should be something like C:\Program Files\Java\jdk1.7.0_40\bin
Copy and paste the code above into a text file and save it someplace like C:\Java\squareincube.java
Open a command line prompt and go to the directory where you saved the .java code.
Compile the java code to make the .class file. (Use the javac command, like "javac squareincube.java")
Run the program. (Type "java SquareInCube". Capitalization matters.)
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...