# Which utility function yields a constant price elasticity of demand function?

How do I know which utility function I can use to find an isoelastic demand function. And similarly, which cost function can I use to find an isoelastic supply function?Does it work through trial and error, or is there a particular method?