Evaluating the integral of absolute values

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
5 replies · 14K views
doctordiddy
Messages
53
Reaction score
0

Homework Statement



∫(0 to 3pi/2) -7|sinx|dx

Homework Equations





The Attempt at a Solution



I am not sure how to treat it as it has an absolute value

i assumed that you could remove the -7 to get

-7∫|sinx| dx

then integrate sinx into -cosx but since there is absolute value i tried to change -cosx to cosx which ended up as

-7cosx

and then doing -7cos(3pi/2)-(-7cos(0))

but this was incorrect. Can anyone give me any hints?

thanks
 
Physics news on Phys.org
doctordiddy said:

Homework Statement



∫(0 to 3pi/2) -7|sinx|dx

Homework Equations





The Attempt at a Solution



I am not sure how to treat it as it has an absolute value

i assumed that you could remove the -7 to get

-7∫|sinx| dx

then integrate sinx into -cosx but since there is absolute value i tried to change -cosx to cosx which ended up as

-7cosx

and then doing -7cos(3pi/2)-(-7cos(0))

but this was incorrect. Can anyone give me any hints?

thanks

Usually for absolute values you have to break things into cases depending on what values of x you're integrating over.

Notice that from 0 to 3π/2, x≥0? If x≥0, then |sinx| = sinx.

Consider integrating from x=-2 to x=-1, x<0. If x<0, then |sinx| = -sinx.
 
doctordiddy said:

Homework Statement



∫(0 to 3pi/2) -7|sinx|dx

Homework Equations





The Attempt at a Solution



I am not sure how to treat it as it has an absolute value

i assumed that you could remove the -7 to get

-7∫|sinx| dx

then integrate sinx into -cosx but since there is absolute value i tried to change -cosx to cosx which ended up as

-7cosx

and then doing -7cos(3pi/2)-(-7cos(0))

but this was incorrect. Can anyone give me any hints?

thanks
Sketch the graph of y = sinx from 0 to 3pi/2. From this, can you see what g = |sinx| would look like? Do you then see why integrating sinx to simply -cosx is wrong?
 
Zondrina said:
Usually for absolute values you have to break things into cases depending on what values of x you're integrating over.

Notice that from 0 to 3π/2, x≥0? If x≥0, then |sinx| = sinx.
This is NOT true. If 0 ≤ x ≤ π, then |sinx| = sinx, but for π ≤ x ≤ 2π, sin(x) ≤ 0.
Zondrina said:
Consider integrating from x=-2 to x=-1, x<0. If x<0, then |sinx| = -sinx.

This is not true, either. There are infinitely many intervals for which x < 0 but sin(x) ≥ 0.
 
It is still not right. Can you use |sinx| = sinx if sinx ≥ 0 and |sinx| = -sinx if sinx < 0? This is key to solving the problem.