R to R/Even and odd/Direct sum/Exercise

Let be the vector space of all functions from to . Show that there exists a direct sum decomposition

where denotes the linear subspace of all even functions, and denotes the linear subspace of all odd functions.