Thank you for the opportunity to help you with your question!

at x = 0 y =1

at x =1 y =0

at x =-1 y = 0

this is characteristics of Cos function

hence the required function is y = cos (x)

Please find the solution enclosed here with .. In case of any doubt please feel free to ask… Do not forget to best my answer… If you are having some other problem please feel free to contact me for quick & quality services..