At the end of this video, 3b1b gives an exercise asking the viewer to show how the notion of a complex Fourier series presented in the video is equivalent to this alternative real-valued formulation: 
So what he showed in the video was that the Fourier series of a function (with real domain $[0,1]$) could be computed as: $$f(t)=c_{0}+\sum_{n=1}^{\infty}(c_{n}e^{n2\pi{i}t}+c_{-n}e^{-n2\pi{i}t})$$ where the $n$th coefficient $c_{n}$ is given by: $$c_{n}=\int_{0}^{1}f(t)e^{-n2\pi{i}t}dt$$ Using the hints he gives, here is what I did: $$f(t)=\frac{a_{0}}{2}+\frac{b_{0}}{2}i+\sum_{n=1}^{\infty}\biggr((\frac{a_{n}}{2}+\frac{b_{n}}{2}i)(\cos(n2\pi{t})+i\sin(n2\pi{t}))+(\frac{a_{-n}}{2}+\frac{b_{-n}}{2}i)(\cos(-n2\pi{t})+i\sin(-n2\pi{t}))\biggr)$$ We may observe that $b_{0}=0$, $a_{n}=a_{-n}$, and $-b_{n}=b_{-n}$, so the equation can be simplified to: $$f(t)=\frac{a_{0}}{2}+\sum_{n=1}^{\infty}(a_{n}\cos(n2\pi{t})-b_{n}\sin(n2\pi{t}))$$ which is almost what the video shows, except for that minus sign where there should be a plus sign...where did I go wrong?