Results 1 to 9 of 9

Math Help - Integral of Abs Value Trigonometric function

  1. #1
    Newbie
    Joined
    Sep 2010
    Posts
    22

    Integral of Abs Value Trigonometric function

    So I have to integrate this function... looked simple enough at first but soon I found it was not so. I've found the answer using wolframalpha and solutions etc. but don't understand completely how to get there



    I first tried integrating sin(abs(x)) just to -cos(abs(x)) and got 0+1/sqrt(2), obviously wrong. Then I tried to break it up - integral of sinx=-cosx for the positive value and integral of sin(-x)=cosx for the negative value, but this just gave me -1/sqrt(2)...

    How exactly do I have to break this up to get it to work?

    Thank you for any advice!
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Super Member Random Variable's Avatar
    Joined
    May 2009
    Posts
    959
    Thanks
    3
    EDIT: No, that's wrong. Hold on a sec.

     \displaystyle = \int^{\pi /4}_{0} \sin x \ dx + \int^{\pi /2}_{0} \sin x \ dx
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Sep 2010
    Posts
    22

    Reply

    Quote Originally Posted by Random Variable View Post
    EDIT: No, that's wrong. Hold on a sec.
    Alright, thank you!
    Follow Math Help Forum on Facebook and Google+

  4. #4
    MHF Contributor
    Joined
    Mar 2010
    From
    Florida
    Posts
    3,093
    Thanks
    5
    Quote Originally Posted by metaname90 View Post
    Alright, thank you!
    You need to break the original integral into two integrals 1 from -pi/4 to 0 and 0 to pi/2 since abs value is  -x, \ x<0 and x, \ x>0
    Follow Math Help Forum on Facebook and Google+

  5. #5
    Newbie
    Joined
    Sep 2010
    Posts
    22

    reply

    Quote Originally Posted by dwsmith View Post
    You need to break into two integrals 1 from -pi/4 to 0 and 0 to pi/2
    That's what Random Variable said before saying that was incorrect... he had:

    - \int^{0}_{-\pi/4} \sin x \ dx + \int^{\pi/2}_{0} \sin x \ dx

    But I was about to ask some more questions about exactly how that applies to other cases and not just this case... was it that \int^{0}_{-\pi/4} \sin (-x) \ dx = \int^{0}_{-\pi/4} -\sin x \ dx = - \int^{0}_{-\pi/4} \sin x \ dx or what...
    Follow Math Help Forum on Facebook and Google+

  6. #6
    Newbie
    Joined
    Sep 2010
    Posts
    22
    Quote Originally Posted by Random Variable View Post
    EDIT: No, that's wrong. Hold on a sec.

     \displaystyle = \int^{\pi /4}_{0} \sin x \ dx + \int^{\pi /2}_{0} \sin x \ dx
    Okay thank you, I see where you got that function but I'm still trying to understand this exactly... for the second integral everything is just normal because x > 0, and for the first one since x < 0 we need the integral of sin(-x) which equals -sin(x) then we can take - integral of sinx but when we flip the integral that becomes positive... so how does -pi/4 go to pi/4?

    Thanks!
    Follow Math Help Forum on Facebook and Google+

  7. #7
    MHF Contributor
    Joined
    Mar 2010
    From
    Florida
    Posts
    3,093
    Thanks
    5
    Quote Originally Posted by metaname90 View Post
    That's what Random Variable said before saying that was incorrect... he had:

    - \int^{0}_{-\pi/4} \sin x \ dx + \int^{\pi/2}_{0} \sin x \ dx

    But I was about to ask some more questions about exactly how that applies to other cases and not just this case... was it that \int^{0}_{-\pi/4} \sin (-x) \ dx = \int^{0}_{-\pi/4} -\sin x \ dx = - \int^{0}_{-\pi/4} \sin x \ dx or what...
    You can do -Pi/4 to 0 too.
    Follow Math Help Forum on Facebook and Google+

  8. #8
    MHF Contributor
    Joined
    Mar 2010
    From
    Florida
    Posts
    3,093
    Thanks
    5
    Quote Originally Posted by metaname90 View Post
    Okay thank you, I see where you got that function but I'm still trying to understand this exactly... for the second integral everything is just normal because x > 0, and for the first one since x < 0 we need the integral of sin(-x) which equals -sin(x) then we can take - integral of sinx but when we flip the integral that becomes positive... so how does -pi/4 go to pi/4?

    Thanks!
    \displaystyle \int^{\pi /4}_{0} \sin x \ dx + \int^{\pi /2}_{0} \sin x \ dx \equiv -\int^{0}_{-\pi/4} \sin x \ dx + \int^{\pi /2}_{0} \sin x \ dx
    Follow Math Help Forum on Facebook and Google+

  9. #9
    Senior Member
    Joined
    Nov 2010
    From
    Clarksville, ARk
    Posts
    398
    Quote Originally Posted by metaname90 View Post
    So I have to integrate this function... looked simple enough at first but soon I found it was not so. I've found the answer using wolframalpha and solutions etc. but don't understand completely how to get there



    I first tried integrating sin(abs(x)) just to -cos(abs(x)) and got 0+1/sqrt(2), obviously wrong. Then I tried to break it up - integral of sinx=-cosx for the positive value and integral of sin(-x)=cosx for the negative value, but this just gave me -1/sqrt(2)...

    How exactly do I have to break this up to get it to work?

    Thank you for any advice!
    Definition of |x|:

    |x|=\left\{\begin{array}{cc}\ x,&\mbox{ if }<br />
x>0\\ \ 0, &\mbox{ if }<br />
x=0\\ \ -x, & \mbox{ if } x<0\end{array}\right.

    sin(x) is an odd function, therefore:

    \sin\left(|x|\right)=\left\{\begin{array}{cc}\ \sin(x),&\mbox{ if }<br />
x>0\\ \ \sin(0), &\mbox{ if }<br />
x=0\\ \ -\sin(x), & \mbox{ if } x<0\end{array}\right.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. trigonometric integral
    Posted in the Calculus Forum
    Replies: 5
    Last Post: April 15th 2011, 02:01 AM
  2. trigonometric integral
    Posted in the Calculus Forum
    Replies: 3
    Last Post: February 11th 2011, 11:10 AM
  3. Inverse Trigonometric Function Integral?
    Posted in the Calculus Forum
    Replies: 5
    Last Post: March 4th 2010, 05:00 PM
  4. Trigonometric integral
    Posted in the Calculus Forum
    Replies: 3
    Last Post: November 29th 2008, 05:46 AM
  5. Trigonometric Integral
    Posted in the Calculus Forum
    Replies: 3
    Last Post: June 23rd 2008, 06:36 PM

Search Tags


/mathhelpforum @mathhelpforum