we are told that the local maximum occurs at (-2,1) thus:

next we are told that the value of the local maximum is 15 thus:

so A=-3.

-------------------------------------------------------------------------------------

I'm not sure what do you mean by: ex(1-cos y)