# Fourier series of $\cos^4(x)$

Expand $$\cos^4(x)$$ into a Fourier series.

we already know that we need to find $$\int_{-\pi}^\pi f(x)dx$$ which will = $$\frac{3\pi}{4}$$.

now we need to find $$a_n = \int_{-\pi}^\pi \cos^4(x) \cos(nx) dx$$ and $$b_n = \int_{-\pi}^\pi cos^4(x) \sin(nx) dx$$.

and we already know $$\cos^4$$ is an even function so $$b_n = 0$$. So how to find $$a_n$$.

Thanks.

$$\cos^2(x)=\frac{1+\cos(2x)}{2}.$$
{"ft_lang_label":"__label__en","ft_lang_prob":0.81533587,"math_prob":1.00001,"size":343,"snap":"2020-10-2020-16","text_gpt3_token_len":132,"char_repetition_ratio":0.13569322,"word_repetition_ratio":0.0,"special_character_ratio":0.41982508,"punctuation_ratio":0.07594936,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":1.00001,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-02-29T14:31:58Z\",\"WARC-Record-ID\":\"<urn:uuid:ea70204a-eeb6-4c84-963a-517167de0048>\",\"Content-Length\":\"138435\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:b9d69dba-62a3-406d-8f06-9d5ebd0b5c09>\",\"WARC-Concurrent-To\":\"<urn:uuid:275a6165-95f8-4198-8c15-2e78ee29c301>\",\"WARC-IP-Address\":\"151.101.1.69\",\"WARC-Target-URI\":\"https://math.stackexchange.com/questions/3176161/fourier-series-of-cos4x/3176165\",\"WARC-Payload-Digest\":\"sha1:G22AESXO67MIKNVJP4DCB43RPQW2ITYF\",\"WARC-Block-Digest\":\"sha1:PCPCZ5FG2ZWSZO7SDN5UE4YMEH6PFPY3\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-10/CC-MAIN-2020-10_segments_1581875149238.97_warc_CC-MAIN-20200229114448-20200229144448-00505.warc.gz\"}"}