- #1

- 20

- 0

## Homework Statement

Compute the Fourier cosine series for given function:

f(x)=sinx 0<x<pi

## Homework Equations

for cosine series of f(x) on [0,T]... use this general equation:

http://mathworld.wolfram.com/FourierCosineSeries.html

## The Attempt at a Solution

so I get:

a

_{0}= (2/pi) * integral(sinxdx) with bounds 0 to pi = 4/pi

but then.. when I try to compute a

_{n}

I get

a

_{n}=(2/pi) * integral(sinx*cosnx*dx) with bounds 0 to pi

How do I integrate sinxcosnx?

Last edited: