A fence 4 feet tall runs parallel to a tall building at a distance of 4 feet from the building.
What is the length of the shortest ladder that will reach from the ground over the fence to the wall of the building?
Here are some hints for finding a solution: Use the angle that the ladder makes with the ground to define the position of the ladder and draw a picture of the ladder leaning against the wall of the building and just touching the top of the fence.
If the ladder makes an angle 1.04 radians with the ground, touches the top of the fence and just reaches the wall, calculate the distance along the ladder from the ground to the top of the fence. Using these hints write a function L (x) which gives the total length of a ladder which touches the ground at an angle x , touches the top of the fence and just reaches the wall.


Hint: In the picture below, the rectangle is the building, the vertical line is the fence, $AC$ is the ladder. The $4$'s are taken from the problem description. We want to find $x$ to minimize $AC$. You can find $AB$ as a function of $d$ by the Pythagorean theorem, then find $AC$ as a function of $d$ by similar triangles. Take the derivative, set to zero... Then use an inverse trig function to find $x$.