Let ym be the height of the wall at which the ladder touches. Also, let the foot of the ladder be xm away from the wall.
Then, by Pythagoras theorem, we have:
x2+y2=25 [Length of the ladder =5m]
⇒y=√25−x2
Then, the rate of change of height (y) with respect to time (t) is given by,
dydt=−x√25−x2⋅dxdt
It is given that dxdt=2cm/s
∴dydt=−2x√25−x2
Now, when x=4m, we have:
dydt=−2×4√25−42=−83
Hence, the height of the ladder on the wall is decreasing at the rate of 83 cm/s.