Integrating Over Absolute Values

Calculus Level 2

f ( x ) = { 1 x , x 1 x 1 , x > 1 f(x) = \begin{cases}{1-|x|}, && {|x|\>\le\>1} \\ {|x|-1,} && {|x|>1}\end{cases}

g ( x ) = f ( x 1 ) + f ( x + 1 ) g(x) = f(x-1)+f(x+1) .

Given the two functions above, what is the value of 3 5 g ( x ) d x \displaystyle \int _{ -3 }^{ 5 }{ g(x) \mathrm{d}x } ?


The answer is 24.00.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

5 solutions

I don't think calculating f(x+1) and f(x-1) individually is necessary. Wouldn't have been faster to just change the limits of the integral ?

Rohit Shah - 6 years, 3 months ago

Log in to reply

and how to do that?? substitution?? please elaborate if it is going to be FASTER

thnkx

manish bhargao - 6 years, 3 months ago

Log in to reply

Yes substitution. But just drawing the graph of function and finding out individual areas is easy and fast.

Rohit Shah - 6 years, 3 months ago

true, changing limits was hella quick

Ruchir Singh - 2 months, 2 weeks ago

nice and clear solution !!

manish bhargao - 6 years, 3 months ago
Caleb Townsend
Mar 6, 2015

f ( x ) f(x) actually has a more compact form: f ( x ) = x 1 f(x) = ||x|-1| g ( x ) = x 1 1 + x + 1 1 g(x) = ||x-1|-1| + ||x+1|-1| This makes the integral easier conceptually. You can graph g ( x ) g(x) and find the area of the region under it simply by dividing it into triangles and rectangles.

There is also a closed form for the indefinite integral, but as usual with absolute value functions, it is not compact at all and makes heavy use of the sgn \text{sgn} function.

Nick Lee
Mar 8, 2015

3 5 g ( x ) d x = 3 5 { f ( x 1 ) + f ( x + 1 ) } d x = 3 5 f ( x 1 ) d x + 3 5 f ( x + 1 ) d x = 4 4 f ( x ) d x + 2 6 f ( x ) d x = 14 + 10 = 24 \int _{ -3 }^{ 5 }{ g(x) } dx=\int _{ -3 }^{ 5 }{ \{ f(x-1)+f(x+1)\} } dx=\int _{ -3 }^{ 5 }{ f(x-1) } dx+\int _{ -3 }^{ 5 }{ f(x+1) } dx\\ =\int _{ -4 }^{ 4 }{ f(x) } dx+\int _{ -2 }^{ 6 }{ f(x) } dx=14+10=24

Sundar R
Jul 7, 2017

The figures are not drawn to scale.

Sundar R - 3 years, 11 months ago
Peter Macgregor
Mar 8, 2015

I approached this in a shamelessly numerical way.

x f ( x ) g ( x ) 4 3 3 2 4 2 1 2 1 0 2 0 1 0 1 0 2 2 1 2 3 2 4 4 3 6 5 4 8 6 5 \begin{array}{ccc} x&f(x)&g(x)\\ -4 & 3 & {}\\ -3 & 2 & 4 \\ -2 & 1 & 2\\-1&0&2\\0&1&0\\1&0&2\\2&1&2\\3&2&4\\4&3&6\\5&4&8\\6&5&{} \end{array}

(Use the definition to work out the f(x) column first and then the g(x) values are found easily by adding the previous and the following values of f(x))

Between any two integers g(x) is a linear function, and it can be integrated e x a c t l y exactly by the trapezium rule to find the area

1 2 ( 4 + 2 ( 2 + 2 + 0 + 2 + 2 + 4 + 6 ) + 8 ) = 24 \dfrac{1}{2}(4+2(2+2+0+2+2+4+6)+8)=\boxed{24}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...