Results 1 to 4 of 4

Math Help - expand f(x) using a sine or cosine series

  1. #1
    Member
    Joined
    Sep 2010
    Posts
    149
    Thanks
    3

    expand f(x) using a sine or cosine series

    f(x)= x|x| , -1<x<1

    i did a sine series because function is odd over given interval.
    p=1

    so, bn= 2 x^2 sin(npix) dx , from 0 to 1not sure how to do this integral, any help would be appreciated.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Super Member
    Joined
    Mar 2010
    Posts
    715
    Thanks
    2
    For bn, do you want the exact value, or its series representation?
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Member
    Joined
    Sep 2010
    Posts
    149
    Thanks
    3
    series representation i think. the question says "expand the given function in an appropriate sine or cosine series"
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Super Member
    Joined
    Mar 2010
    Posts
    715
    Thanks
    2
    Quote Originally Posted by linalg123 View Post
    series representation i think. the question says "expand the given function in an appropriate sine or cosine series"
    Okay, using the Maclaurin series for the sine function, we have:

    \begin{aligned} b_n & = 2\int_{0}^{1}x^2\sin{n\pi x}\;{dx} = 2\int_{0}^{1}x^2\bigg(\sum_{k\ge0}\frac{(-1)^kn^{2k+1}\pi^{2k+1}x^{2k+1}}{(2k+1)!}\bigg)\;{d  x} \\& = 2\int_{0}^{1}\sum_{k\ge0}\frac{(-1)^kn^{2k+1}\pi^{2k+1}x^{2k+3}}{(2k+1)!}\;{dx} = 2\sum_{k\ge0}\int_{0}^{1}\frac{(-1)^kn^{2k+1}\pi^{2k+1}x^{2k+3}}{(2k+1)!}\;{dx} \\& = 2\sum_{k\ge0}\bigg[\frac{(-1)^kn^{2k+1}\pi^{2k+1}x^{2k+4}}{(2k+1)!(2k+4)} \bigg]_{0}^{1} = 2\sum_{k\ge0}\frac{(-1)^kn^{2k+1}\pi^{2k+1}}{(2k+1)!(2k+4)}.\end{aligne  d}

    The exact value can be calculated too:

    \begin{aligned} b_{n} & = 2\int_0^1 x^2\sin\left(n\pi x\right)\;{dx} = -\frac{2}{n\pi}\int_0^1 x^2(\cos{n\pi x})'\;{dx} \\& = -\frac{2}{n\pi}x^2\cos{n\pi x}\bigg|_{0}^{1}+\frac{2}{n\pi}\int_0^1 (x^2)'\cos{n\pi x}\;{dx} \\& = \frac{2(-1)^{n+1}}{n\pi}+\frac{4}{n\pi}\int_0^1 x\cos{n\pi x}\;{dx} \\& = \frac{2(-1)^{n+1}}{n\pi}+\frac{4}{n^2\pi^2}\int_0^1 x(\sin{n\pi x})'\;{dx}  \\& = \frac{2(-1)^{n+1}}{n\pi}+\frac{4}{n^2\pi^2} x\sin{n\pi x}\;{dx}\bigg|_{0}^{1} \\& -\frac{4}{n^2\pi^2}\int_0^1 (x)'\sin{n\pi x}\;{dx} \\& = \frac{2(-1)^{n+1}}{n\pi} -\frac{4}{n^2\pi^2}\int_0^1 \sin{n\pi x}\;{dx} \\& = \frac{2(-1)^{n+1}}{n\pi}+\frac{4}{n^3\pi^3}\cos{n\pi x}\bigg|_{0}^{1} \\& = \boxed{\frac{2(-1)^{n+1}}{n\pi}+\frac{4}{n^3\pi^3}(-1)^n-\frac{4}{n^3\pi^3}}.\end{aligned}
    Last edited by TheCoffeeMachine; May 18th 2011 at 12:42 AM.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 7
    Last Post: May 27th 2011, 09:37 AM
  2. Replies: 0
    Last Post: October 30th 2010, 07:47 PM
  3. [SOLVED] Sine and Cosine Fourier series
    Posted in the Calculus Forum
    Replies: 3
    Last Post: June 26th 2010, 07:48 AM
  4. Fourier sine and cosine series of x(Pi-x)
    Posted in the Advanced Applied Math Forum
    Replies: 3
    Last Post: January 2nd 2010, 12:42 PM
  5. is this a sine or cosine fourier series...
    Posted in the Advanced Math Topics Forum
    Replies: 1
    Last Post: February 14th 2009, 04:04 PM

Search Tags


/mathhelpforum @mathhelpforum