Hello! I am trying to expand the function as Fourier series on the interval

Since the function is even we can write

but here my problem starts. I try to solve this integral as indefinite integral first but I am going in circles....

Could someone show me how to compute this integral?