A heavy crate of weight W W\,W is pulled a distance d d\,d up a ramp inclined at an angle θ \theta\,θ to the horizontal, as shown in the diagram.

What is the work done against gravity?
WdW dWd
WdcosθW d \cos\thetaWdcosθ
WdsinθW d \sin\thetaWdsinθ
WdtanθW d \tan\thetaWdtanθ