Compute integral of discontinuous function
what is sign mean
so when is x-x^3 positive ? and when it is negative ?
when x>1 (x-x^3) is negative, if x<-1 (x-x^3) is positive? T^T im confused
when x>1 (x-x^3) is negative , correct! how x<-1 ? did u mean x<1 ? if not, when x<1, is x-x^3 positive or negative ?
say for example x=1/2 1/2 - 1/8, positive or negative ?
x<1 the func is 0 right
why ?
oh no sry, wrong haha i mean, positive?
okay idk why do we need to do that..
then yes, this is the way to solve it algebraically. x-x^3 is positive when x-x^3 > 0 x> x^3 1 >x^2 (since the limits indicate x is positive from 0 to 3, we will consider this range only) so, 1 > x so, x>1 function is positive x<1 function is negative
did you read the definition of signum function ?
its something that extracts the sign of the real number? why do u need to extract it?
sgn x =1 when x> 0 , that is when x is positive so we need the value of x when your function is positive
so sign (x-x^3) = 1 when x-x^3 > 0 that is when x>1 got this ?
^^^ x < 1 ??
0<x<1 positive 1<x<3 negative
yes, sorry for the typo sign (x-x^3) = -1 when x-x^3 < 0 that is when x>1 got this ?
ah! okay, then so nwo that weve got that x>1 func is positive, x<1 is negative, then
the other way around.
we split the integral, from 0 to 1 and 1 to 3
careful! :P
from 0 to 1, x-x^3 >0 , so sign (x-x^3) = +1
oh ya, hm ok so,\[\int\limits_{0}^{1}sign(x-x^3)dx+\int\limits_{1}^{3}sign(x-x^3)dx\]
from 1 to 3, x-x^3 <0 , so sign (x-x^3) = -1
\(\int\limits_{0}^{1}1dx+\int\limits_{1}^{3}(-1)dx\)
oh, so u gotta follow the sign rule we've come up just now..
1-2=-1?
yes
You've been my hero for a long time hartnn. Nothing seems to stump you ;)
lol, just when you said that, i was thinking, how the hell am i gonna do the 2nd one :P i have no idea about it :O
i guess splitting from 0 to 1 and 1 to 2 will work...
Isn't it just e^x evaluated from 0 to 2? Are those special symbols or something?
We just need to find when e^x is 1 and 2 first
yeah, that |_ ... _| means the floor function
oh man... darn little symbols
yes, what ranga said when is e^x = 1 when is e^x = 2 ?
hm, e^x=1 when x=0?
e^x=2 when x=ln2? haha idk
e^x = 2 when x = ln(2) e^x = 3 when x = ln(3) ....
yeah, from 0 to ln2
http://www.wolframalpha.com/input/?i=y%3D+e%5Ex+from+x%3D0+to+x%3D2 you know about floor functions ?
now that you said it... rings a bell
yup, its the awkward kind of function like staircase haha
oh my, this doesn't hit 2 until between ln7 and ln8... does that mean multiple integrals?
yes
wait wanna vomit blood.. lol!
lol
so we split the range 0 to 2 into many sub-intervals, like from 0(which is ln 1) to ln 2, then floor(e^x)= ... ? from ln 2 to ln 3 , floor(e^x) =... ? ..... from ln 7 to 2, floor (e^x) = ... ?
yeah... I like it
well "like" is subjective
haha kidding :p okay 1st one e^x=1, ln2 to ln 3 e^x=2......., 3, 4, 5, 6 ,7?
correct! just plug in values!
okay i think i got it then! thanks! :D
the 3rd one too ?
3rd one is same as the 1st one right? i mean also got the sign
yes, same 'type'
just need to find when cos x is positive and negative in the range 0 to pi and then split the intrgral...
at x=pi func is negative, at x=0 func is positive
we'll need "interval"
cos(x) is positive for 0 < x < pi/2 cos(x) is negative for pi/2 < x < pi
from 0 to which value is cos x positive ?
yes, that
so you'll split your integral from 0 to pi/2 and pi/2 to pi
i see, okay, if thats the case, \[\int\limits_{0}^{\frac{ \pi }{ 2 }}x(1)dx+\int\limits_{-\frac{ \pi }{ 2 }}^{\pi}x(-1)d\]
*dx
lower limit on second integral should be +pi/2
oh ya, omg
everything else was correct
okay great! thanks alot guys!! i appreciate! :D
thank you too for asking good questions! :)
Join our real-time social learning platform and learn together with your friends!