$f(x)$ is a continuous function in $(-\pi, \pi)$, periodic with $2\pi$ period. The derivative, $f'(x)$, is continuous in $[-\pi, \pi]$, except maybe for a finite number of points. $f(x)\sim \frac{1}{2}a_0 + \sum_{n=1}^{\infty}a_n\cos{nx}+b_n\sin{nx}$ is the function Fourier series. I need to prove that $\sum_{n=1}^{\infty}a_n\cos{nx}$ converges uniformly in $\mathbb{R}$ and find its value at each point $x\in\mathbb{R}$
I honestly have no idea how to approach this. I know that if $f$ is continuous then the Fourier series converges uniformly and therefore $\sum_{n=1}^{\infty}a_n\cos{nx}$ also converges uniformly but here $f$ isn't necessarily continuous
EDIT:
I might have found a way prove uniform convergence of $\sum_{n=1}^{\infty}a_n\cos{nx}$
If $\beta_n=\frac{1}{\pi}\int_{-\pi}^{\pi}{f'(x)\sin{nx}\,dx}$ is the Fourier coefficient for $f'(x)$ also \begin{multline} \beta_n = \frac{1}{\pi}\int_{-\pi}^{\pi}{f'(x)\sin{nx}\,dx} = \frac{1}{\pi}\left(f(x)\sin{nx}\bigg|^{\pi}_{-\pi} - \int_{-\pi}^{\pi}{f(x)n\cos{nx}\,dx}\right)\\=-\frac{n}{\pi}\int_{-\pi}^{\pi}{f(x)n\cos{nx}\,dx}=-na_n \end{multline} therefore $$ \sum_{n=1}^{m}{|a_n|} \le \sum_{n=1}^{m}{\frac{1}{n^2}\beta_n^2} \le \sum_{n=1}^{m}{\frac{1}{n^2}\sqrt{\alpha_n^2+\beta_n^2}}\le\sqrt{\sum_{n=1}^{m}{\frac{1}{n^2}}\sum_{n=1}^m{\sqrt{\alpha_n^2+\beta_n^2}}} $$ $\sum_{n=1}^{\infty}{\frac{1}{n^2}}$ converges and $\sum_{n=1}^\infty{\sqrt{\alpha_n^2+\beta_n^2}}$ also converges according to Bessel's inequality for $f'(x)$ hence $\sum_{n=1}^{\infty}{|a_n|}$ converge and from Weierstrass M-test I get that $\sum_{n=1}^{\infty}a_n\cos{nx}$ converge uniformly
EDIT 2:
I found a way to calculate the needed sum:
For $-\pi < x_0 < \pi$ because $f$ is continuous in $x_0$ and the derivative from both sides exists and is finite I get that $f(x_0)=\frac{1}{2}a_0 + \sum_{n=1}^{\infty}a_n\cos{nx_0}+b_n\sin{nx_0}$ hence $$ \frac{f(x_0)+f(-x_0)}{2} = \frac{\frac{1}{2}a_0 + \sum_{n=1}^{\infty}a_n\cos{nx_0}+b_n\sin{nx_0} + \frac{1}{2}a_0 + \sum_{n=1}^{\infty}a_n\cos{(-nx_0)}+b_n\sin{(-nx_0)}}{2}=\frac{a_0+2\sum_{n=1}^{\infty}a_n\cos{nx_0}}{2}\Longrightarrow \sum_{n=1}^{\infty}a_n\cos{nx_0} = \frac{f(x_0)+f(-x_0)}{2}-\frac{1}{2}a_0 = \frac{1}{2}\left(f(x_0)+f(-x_0)-\frac{1}{\pi}\int_{-\pi}^{\pi}{f(x)dx}\right) $$
For $x_1=(2n-1)\pi,\space n\in\mathbb{Z}$ due to the existence of the derivative from both sides I get $$ \frac{1}{2}a_0 + \sum_{n=1}^{\infty}a_n\cos{nx}+b_n\sin{nx} = \frac{f(x_1+0)+f(x_1-0)}{2}\Longrightarrow\frac{1}{2}a_0+\sum_{n=1}^{\infty}a_n\cos{nx_1}=\frac{f(-\pi+0)+f(\pi-0)}{2}\Longrightarrow \sum_{n=1}^{\infty}a_n\cos{nx_1} = \frac{1}{2}\left(f(-\pi+0)+f(\pi-0)-\frac{1}{\pi}\int_{-\pi}^{\pi}{f(x)dx}\right) $$ But I'm still unsure about the uniform convergence of the series $\sum_{n=1}^{\infty}a_n\cos{nx}$, if the sum indeed converge uniformly then it converges to a continuous function, and the result I got seems to imply just that.
The way a used in the previous edit seems to apply only when $f$ is continuous but here it might not be.
To adress what is the value of the series, note that since $g(x) = a_0/2 + \sum a_n \cos (nx)$ converges so does $h(x) = \sum b_n \sin (nx)$ and so $f(x) = g(x) + h(x)$ with $g$ even and $h$ odd. Whenever such a decomposition is written, $g$ is the even part of $f$ and $h$ is the odd part of $f$, and can be recovered from $f$ using that $$f(x) + f(-x) = 2g(x)$$ $$f(x)-f(-x) = 2h(x)$$