Need help solving what seems like a strange integral

  • Thread starter Thread starter saybrook1
  • Start date Start date
  • Tags Tags
    Integral Strange
Click For Summary

Homework Help Overview

The discussion revolves around finding the Fourier series for the function f(x) = |x|^3, particularly on the interval from -L to L. Participants are exploring the implications of the absolute value in the context of Fourier series expansion.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the use of piecewise definitions for |x| and how this affects the integration process. There are mentions of integration by parts and the need to handle the function over different intervals.

Discussion Status

Some participants have provided guidance on how to approach the integral and suggested using the piecewise definition of |x|. There is an acknowledgment of the need to clarify the interval of integration and the implications for the Fourier series coefficients.

Contextual Notes

There is a focus on the integral from 0 to L, with some participants noting that the function can be simplified to x^3 in this range. The original poster clarifies that the problem involves the interval from -L to L, which may influence the setup of the Fourier series.

saybrook1
Messages
101
Reaction score
4

Homework Statement


I need to find the Fourier series for f(x)=|x|^3.

Homework Equations


f(x)=|x|^3
A_n=\frac{2}{L}\int_{0}^{L}|x|^3cos{\frac{n\pi x}{L}}dx
\int_{0}^{L}x|x|sin{\frac{n\pi x}{L}}dx

The Attempt at a Solution


Since it is an even function I know that it will be a cosine series and so I set out to find the A coefficient like so:
A_n=\frac{2}{L}\int_{0}^{L}|x|^3cos{\frac{n\pi x}{L}}dx

Through integration by parts I end up with a sine term that goes to zero and some coefficients out in front of an integral that looks like:
\int_{0}^{L}x|x|sin{\frac{n\pi x}{L}}dx

I would really appreciate any help with this particular integral or if someone could point me in the direction of a solution where a Fourier series is calculated for a function with an absolute value to the power>2. Thanks in advance.
 
Physics news on Phys.org
When dealing with |x| it often helps to use the piece wise expansion of it:
=x, x>0
= -x, x<0.
If you were on the interval from [-L,L] you would have 2 integrals one from [-L,0] and one from [0,L]. However, since you are only interested in the function from [0,L] then $|x|^3$= $x^3$. To solve the integral you have integration by parts like normal.
 
Did you mean \int_0^L |x|^3 cos(\frac{n\pi x)}{L}dx of \int_{L/2}^{Ll/2} |x|^3 cos(\frac{n\pi x)}{L}dx? In the first, which is what you wrote, x is always non-negative so |x|= x. For the second, do the integrals from -L/2 to 0 and from 0 to L/2 separately.
 
HallsofIvy said:
Did you mean \int_0^L |x|^3 cos(\frac{n\pi x)}{L}dx of \int_{L/2}^{Ll/2} |x|^3 cos(\frac{n\pi x)}{L}dx? In the first, which is what you wrote, x is always non-negative so |x|= x. For the second, do the integrals from -L/2 to 0 and from 0 to L/2 separately.
Yeah, that was my bad; the question wants me to find the Fourier series for f(x)=|x|^3 on -L<x<L. So I think I can choose A_{n}=\frac{2}{L}\int_{0}^{L}x^{3}cos{\frac{n\pi x}{L}}dx and then A_{0}=\frac{1}{L}\int_{0}^{L}x^{3}dx?
 
Jufro said:
When dealing with |x| it often helps to use the piece wise expansion of it:
=x, x>0
= -x, x<0.
If you were on the interval from [-L,L] you would have 2 integrals one from [-L,0] and one from [0,L]. However, since you are only interested in the function from [0,L] then $|x|^3$= $x^3$. To solve the integral you have integration by parts like normal.
Thanks for your reply. I was unclear in the question statement; It asks me to find the Fourier series for the function f(x)=|x|^3 on -L<x<L. I guess I can choose A_{n}=\frac{2}{L}\int_{0}^{L}x^{3}cos{\frac{n\pi x}{L}}dx and then A_{0}=\frac{1}{L}\int_{0}^{L}x^{3}dx?
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
4
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K