why does the potential vary with change in coordinates even though it is a scalar?
Welcome to the PF.
Please post much more detail about your question. It makes no sense with such a brief question. Can you provide some links to equations and other informative web pages?
Separate names with a comma.