The wax expands due to ambient (even uniform) temperature. It's a linear actuator, so warm -> expanded and cool -> retracted.
I think by thermal gradient they mean a change in temperature over time, not space.
I think by thermal gradient they mean a change in temperature over time, not space.