A global maximum is the absolute greatest value that a function reaches on its domain. For example, the function [itex]f(x)=x^3+x^2-17 x+15[/itex] has no global maximum, but [itex]g(x)=\sin(x)[/itex] has global maxima at [itex](\frac{\pi}{2}+2\pi n,1),\,\,n\in\mathbb{Z}[/itex]. A local maximum is the greatest value that a function reaches within a subset of its domain. For example, the local maximum of [itex]f(x)[/itex] on the set [itex]\{x\colon -5<x<1\}[/itex] occurs at [itex](-\frac{1}{3}(1+2\sqrt{13}),\frac{1}{27}(560+208\sqrt{13}))[/itex], but [itex]g(x)[/itex] has no local maximum on the set [itex]\{x\colon 0\leq x<\frac{\pi}{2}\}[/itex] (it would have one at the right endpoint, but that is not included in the set).