Let me say first that I know this probably sounds like a weird question

If I want to find the absolute Max or Min of a function on the interval -infinity to infinity, is there a generic process I could use that applies to all equations (possibly using calculus) or is it special to each type of function?