The formula for the “Moving Stick Problem”
Overview
blackpenredpen derives the minimum length of a horizontal stick that can turn through a right-angle hallway with widths A and B. Minimizing L(θ) = A csc θ + B sec θ gives tan θ = (A/B)^(1/3) and the limiting length L = (A^(2/3) + B^(2/3))^(3/2); the closing question asks how the problem changes if the stick can be lifted under a ceiling of height C.
Key takeaways
- For hallway widths A and B, a horizontal stick of length greater than (A^(2/3) + B^(2/3))^(3/2) cannot make the right-angle turn.
- The stick length at angle θ is the sum of two geometric contributions: A csc θ along one corridor and B sec θ along the other.
- The optimal orientation is determined by tan θ = (A/B)^(1/3), balancing the two corridor constraints.
- A cube-root right triangle converts the optimal-angle condition into the compact minimum-length formula.
- The derived formula assumes the stick remains horizontal; allowing it to lift beneath a ceiling of height C introduces a new three-dimensional constraint.
Chapters
- The hallway has perpendicular corridor widths A and B, and the stick stays horizontal while turning.
- The limiting stick touches the outer wall edges at the corner; finding the longest stick that can pass reduces to finding this minimum limiting length.
- At orientation angle θ, the stick divides into segments L1 = A csc θ and L2 = B sec θ.
- The total limiting length is L(θ) = A csc θ + B sec θ, with θ between 0 and π/2.
- Differentiating and setting the numerator equal to zero gives B sin³ θ = A cos³ θ.
- Therefore tan³ θ = A/B, so the unique critical angle satisfies tan θ = (A/B)^(1/3).
- A right triangle with opposite side A^(1/3) and adjacent side B^(1/3) gives hypotenuse √(A^(2/3) + B^(2/3)).
- Substituting the triangle ratios into A csc θ + B sec θ yields the minimum limiting length (A^(2/3) + B^(2/3))^(3/2).
- blackpenredpen ends by asking how the result changes if the stick can be lifted and a ceiling of height C restricts its motion; no solution is provided.
Transcript excerpt
0:00 So this is a continuation to my previous video on the moving stick problem. So the idea is here we have a hallway and let's say the width right here is A and this width right here is B and the question is suppose you're holding a stick. What's the longest possible stick that you can bring and you can just turn around a corner and then you go through it and we will assume that we're just holding the stick horizontally like this. We are going to lift up the stick. In fact, at the end of the video, I will ask you what if we could lift up the stick. In that case, what would answer be? Anyways, last time I mentioned that the longest possible stick, let's say look something like this. There's a nice formula for that, which is L. I'm just going to call it the best because even though we're looking for the maximum, we
0:49 are actually looking for the minimum the minimum of the length that touches the top of the wall and the left of the wall because anything that you cannot make the term okay so if I put on the best right here it's the best. I hope that's the best. Anyways, the formula is you look at a, you raise that to the 23 power and then you add b and you look at that raise that to 23 power and then you raise this to the three half power. This is just so cool. It's like the super version of the pyagorean theorem by for this kind of situation. Okay, we'll prove this but let's come up with the formula first. Last time I mentioned that it's all about turning right. So this angle right here matters. We will
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, blackpenredpen.