A freely-suspended magnet swinging in a horizontal plane comes to rest with its axis pointing…