SolDec0405
Call the length of the pipe L and the angle the pipe makes with the side of the 6ft wide hall x. L touches the inside corner where the halls join so we have:
If L is too long it can't round the corner, so we actually want the shortest pipe that can touch both walls of both halls. Then, as x increases, the pipe could be lengthened and not touch so it will not bind up. So we differentiate L and set the derivative to 0 to find a critical point.
This expression for L was found by Maxima software. Polytope wrote it in a much more symmetrical way:
The messy second derivative of L is positive so we have found a minimum.