Why in the world would you be using "(36-x)^2 + y^2 = c^2"
(Were you thinking the "shadow's length" is the straight line distance from the spotlight to the top point on the wall?)
this is simple "similar triangles". There is one triangle with base the line from the spotlight to the building (length 36 feet) , height, the shadow on the building (length y). The other triangle has base the line from the man's feet to the light (length x) and height the man himself (6 feet). The hypotenuse of both right triangles is the ray of light from the spotlight, past the tip of the man's head to the tip of the shadow. Because those are similar triangles, y/36= 6/x ("height over base of large triangle"= "height over base of small triangle"). You can differentiate that directly:
y'/36= -6/x<sup>2</sup> x' or by multiplying and using "implicit differentiation":
xy= 6*36 so x'y+ xy'= 0.
Using the first, y'/36= (-6/x<sup>2</sup>) x' with x'= -5 and x= 12,
y'= (36)(-6/144)(-5)= 7.5
Using the second, x'y+ xy'= 0 with x'= -5 and x= 12 so that y= 216/12= 18,
(-5)(18)+(12)y'= 0, y'= (5)(18)/12= 7.5.
The shadow's length is increasing by 7.5 ft/sec when the man is 12 feet from the spotlight.
Added in "Edit":
It occurs to me, after I wrote this, that the man's shadow extends from his feet to the wall and THEN up the wall so it's length, properly is
36- x (distance from the man to the wall) plus the y I had before.
That is: shadow's length L= 36-x+ 216/x
Then L'= -x'- (216/x2)x' and when x= 12 and x'= -5,
L'= 5- (216/144)(-5)= 5+ 7.5= 11.25 ft/sec.
That is, it the 7.5 ft/sec that his shadow is get higher on the wall plus the 5 ft/sec that he is moving away from the wall.
How many times do I have to edit this?
He is 12 feet away from the wall?? Okay then, my x is 36-12= 24 and y is
9. L'= (216/576)(5)= 1.875 ft/sec counting only height up the wall and
1.875+ 5= 6.875 counting changing length along the ground also.