Heather P. answered 05/29/19
Certified Math Tutor, 20+ Years' Experience: Grade 7 thru Adult
While this might not be a complete answer, hopefully it will be enough to get you going in the right direction...
Because the directrix of this right cylinder (as stated by the words "with generators perpendicular to [the xy] plane"), first consider the general equation for a circle: (x-h)2+(y-h)2=r2, (h,k)=center & r=radius. In this case, the circle is in the xz plane, not xy, so simply replace the y with z in the equation. Then if you draw a sketch of said circle (tangent to x-axis @ x=3 & z-axis @ z=3), you see that the center of the circle lies at (3,0,3), with radius=3. So the equation of the circle alone is (x-3)2+(z-3)2=9, or, f(x,z)=(x-3)2+(z-3)2-9.
The formula, or equation for the associated cylinder - which is created by layering one circle directly on top of another - can then be found by finding the integral from one y-value to the next, as the cylinder rises parallel to the y-axis.
I hope this helps!