The figure shows the side view of a door to a storage compartment. As the 40 -kg uniform door is opened, the light rod slides through the collar at $C$ and compresses the spring of stiffness $k .$ With the door closed $(\theta=0),$ a constant force $P=225 \mathrm{N}$ is applied to the end of the door via a cable. If the door has a clockwise angular velocity of 1 rad/s as the position $\theta=60^{\circ}$ is passed, determine $(a)$ the stiffness of the spring and ( $b$ ) the angular velocity of the door as it passes the position $\theta=45^{\circ} .$ Neglect all friction and the mass of the pulleys at $C$ and $D .$ The spring is uncompressed when the door is vertical, and $b=1.25 \mathrm{m}$