im stuck on a question!

a family of functions is given by:

r(x)=1/a+(x-b)^2

a) for what vales of a and b does the graph of r have a verticle asymptote? where are the verticle asymptotes in this case?

b) find values of a and b so that the function r has a local maximum at the point (3,5)

any help would be greatly appreciated

thanks