Given this Maclaurin series:
$$f(x)=\sum_{n=0}^{\infty}\frac{x^{2n}}{(2n)!}$$
And the following Catenary curve, assuming that $a=1$:
$$g(x)=\frac{a(e^\frac{x}{a}+e^{-\frac{x}{a}})}{2}$$
Why does $f(x)=g(x)$ seem to hold true (at least when graphed)?
I'm looking for a purely algebraic reason here as to why these two are equal, ideally in terms that are at or around a high-school calculus level (where I'm at currently).
If I am mistaken, and these two are not equal to each other, an explanation of why that is would be great too.
Remember that $$e^x=\sum_{n=0}^{\infty}\frac{x^n}{n!}$$
Thus $$\frac{1}{2}(e^\frac{x}{a}+e^\frac{-x}{a})=\frac{1}{2}\sum_{n=0}^{\infty}\left [\left (\frac{x}{a}\right )^n\frac{1}{n!}+\left (\frac{-x}{a}\right )^n\frac{1}{n!}\right ]$$
This can be simplified to $$\frac{1}{2}\sum_{n=0}^\infty \left (\frac{1+(-1)^n}{a^n n!}\right )x^n$$
When $n$ is odd, $1+(-1)^n=0$, so we can replace $n$ by $2n$ everywhere to get $$\frac{1}{2}\sum_{n=0}^\infty \left [\frac{1+1}{a^{2n} (2n)!}x^{2n}\right ]=\sum_{n=0}^\infty\frac{x^{2n}}{a^{2n}(2n!)}$$
When $a=1$, you get the series $$\sum_{n=0}^{\infty}\frac{x^{2n}}{(2n)!}$$