A smooth circular cylinder of radiusbis fixed parallel to a smooth vertical wall with its axis horizontal at distancecfrom the wall. A smooth uniform heavy rod of length 2arests on the cylinder with one end on the wall in a vertical plane perpendicular to the wall. Show that its inclinationθto the horizontal is given by

acos3θ+bsin3θ=c

Please help