I am having trouble with a maths problem, if anyone can at all help please try to do so:

Given f(x)=X^2+a/x

A)For what value(s) of a does this function have a local minimum at x=2?

B)Show that this function can not have a local maximum for any value of a.

I have spent a lot of time looking at youtube lectures, google, my study guide etc.

I am still unsure of the process,

any help would be really appreciated.

Thank you.