How is the integral \frac{2}{\pi} \int_0^{\pi} x^2 \cos(nx)dx=\frac{4(-1)^n}{n^2}? I thought it

elbluffz1

elbluffz1

Answered question

2022-01-25

How is the integral 2π0πx2cos(nx)dx=4(1)nn2?
I thought it would be this :
2π0πx2cos(nx)dx=2π0πx2(1)n=2π(1)n0πx2=2π(1)n[x33]0π=2(1)n3π3
But it is actually
2π0πx2cos(nx)dx=4(1)nn2

Answer & Explanation

Georgia Ingram

Georgia Ingram

Beginner2022-01-26Added 11 answers

You cannot say that cosnx=(1)n. This is valid for x=π. A counterexample would be cosn0=1, and this doesnt
Eliza Norris

Eliza Norris

Beginner2022-01-27Added 15 answers

Hint: Two times integrating by parts we get
0πx2cos(nx)dx=π2sin(πn)n2+2ncos(πn)π2sin(πn)n3

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?