We can find the local maxima and minima of any -continous- function by first finding where the slope is 0, as at this point maxima or minima exist.
Given an arbitrary function '

' we find the point of slope 0 by taking its first derivative and equaling to 0 ('

').
Lets, first, find the local extremes of the first function:



So our first function has a maxima at '

' or at '

'.
Now we get the extremes for the second function:

![(d)/(dx) h(x)=(d)/(dx)[2cos(x)+1]=-2sin(x)=0](https://img.qammunity.org/2019/formulas/mathematics/high-school/5dpk4zvfkxyszu8m6o5wi9wf5k2heyrzai.png)

So our second function has a maxima at '

' or at '

'.
Clearly, '
', this means the second function '
' has the largest maxima -y value-.