If $f$ is a continuous even function from $[-a,a]$ to $\Bbb R$ then calculate $\int_{-a}^a \frac{f(x)}{1+e^x}dx$
The answer that is given is $\int _{-a}^af(x)dx$
My attempt
$I=\int_{-a}^a \frac{f(x)}{1+e^x}dx=-\int_{-a}^a \frac{f(x)e^x}{1+e^x}dx+\int_{-a}^a {f(x)}dx$
Now for the first integral, we can use integration by parts but the equation is getting complicated and for the second integral would be $2\int_{0}^a {f(x)}dx$ as $f$ is even. Please help...