The strength of a rectangular wooden beam is proportional to the product of the width and the cube if its depth. If the beam is to be cut from a log in the shape of a cylinder of radius 3 feet, express the strength S of the beam as a function of the width x. Also, what is the domain of S?