#How to calculate a specific Integral
41 messages · Page 1 of 1 (latest)
yes exactly
then split the integral into 2 integrals (from 0 to 2 + from 2 to 4)
and from 0 to 2 will be + (module thing) while from 2 to 4 will be - (module thing)
you should do this
then you get the right xs and do the split thing
i mean look, when x is in [0; 2] the thing inside module is >=0 and when x is in [2; 4] the thing inside module is <= 0
so that's why we need to split this integral into two integrals (from 0 to 2 + from 2 to 4)
,w plot sqrt(x+2)-x between 0 and 4
all |...| does is make the stuff below x-axis above, or turns negative into positive
so when sqrt(x+2) - x is negative you multiply it by -1 to make it positive
that's all
insert the code
\int_{0}^{4}\left| \sqrt{x+2} - x\right|dx = \int_{0}^{2} \sqrt{x+2} - xdx + \int_{2}^{4} -(\sqrt{x+2} - x)dx
\[ \int_{0}^{4}\left| \sqrt{x+2} - x\right|dx = \int_{0}^{2} \sqrt{x+2} - xdx + \int_{2}^{4} -(\sqrt{x+2} - x) \: dx \]
here it is @near slate
also you can simply use \abs{}
yes
,w Integrate[Abs[Sqrt[x+2]-x],{x,0,4}]