I've been struggling with finding Fourier series of the given function for a while now

I've calculated my coefficients using formulas :



Though my results does approximate function sufficiently enough (see the picture), I'm pretty sure that I did something wrong, as online calculators give me different values for coefficients, and the sum of some series(like (-1)^n/n^2) does not match expected values(integrals are calculated correctly). Is there something wrong with how I approach solving those integrals for coefficients or maybe there are some other pitfalls that I could have encountered? I would really appreciate it if you could help me out at least with calculating
. Thank you in advance.
Resulting Furier series

