This university problem is causing me problems, I have already proven the vector field is conservative but I can't get its corresponding scalar field. The problem is, a is a vector field where a = rf(r) where r is the position vector and f(r) is an arbitrary function of r = |r|. Find the scalar potential.
I have made an attempt and got an answer, but know its wrong. Any help is appreciated.