How Should Absolute Value Be Handled in Trigonometric Integrals?

Click For Summary

Discussion Overview

The discussion revolves around the handling of absolute values in trigonometric integrals, specifically in the context of evaluating integrals involving square roots of trigonometric functions. Participants explore the implications of using absolute values when integrating and whether piecewise definitions are necessary based on the sign of the sine function.

Discussion Character

  • Technical explanation, Conceptual clarification, Debate/contested

Main Points Raised

  • One participant questions the correctness of evaluating the integral \(\int \sqrt{\sin^2 x} \, dx\) as \(-\cos x + C\) and suggests it should be treated as \(\int |\sin x| \, dx\) due to the properties of square roots.
  • Another participant agrees with the first, affirming that the use of absolute values is indeed correct and questions the validity of the initial evaluation method.
  • A later reply introduces the idea that in certain trigonometric substitutions, the absolute value can be disregarded due to restrictions on the angle, providing an example with \(\int \frac{dx}{\sqrt{1 - x^2}}\) and explaining how the substitution affects the evaluation.

Areas of Agreement / Disagreement

There is some agreement on the necessity of using absolute values in certain contexts, but the discussion also highlights differing views on when it is appropriate to disregard them based on angle restrictions. The overall discussion remains unresolved regarding the best approach to handle absolute values in all cases.

Contextual Notes

Participants note that the treatment of absolute values may depend on the specific domain of integration and the restrictions placed on the variables involved, which could lead to different evaluations in different contexts.

danago
Gold Member
Messages
1,118
Reaction score
4
Hi. For an integral like this, for example:

<br /> \int {\sqrt {1 - \cos ^2 x} dx} <br />

The most obvious way of solving would be to make use of the pythagorean identity, to get:

<br /> \int {\sqrt {\sin ^2 x} dx} <br />

Now, I've been taught to simply evaluate it like this:

<br /> \int {\sqrt {\sin ^2 x} dx} = \int {\sin xdx = - \cos x + C} <br />

I was wondering though, is that technically correct? Squaring something, then taking the square root of it is equivalent of taking the absolute value of it, so would this be more correct:

<br /> \int {\sqrt {\sin ^2 x} dx} = \int {\left| {\sin x} \right|dx} <br />

If so, would i just give two different solutions, each defined over a different domain, like a piecewise function?

<br /> \int {\left| {\sin x} \right|dx = \left\{ {\begin{array}{*{20}c}<br /> { - \cos x + C} &amp; {\sin x \ge 0} \\<br /> {\cos x + C} &amp; {\sin x &lt; 0} \\<br /> \end{array}} \right.} <br />

Is that a more correct way of doing it?
 
Physics news on Phys.org
Yes, that is absolutely correct. Who taught you to evaluate it in the other way?

By the incorrect logic, \frac{d}{dx} \cos x = -\sqrt{1-\cos^2 x}. As we know, the derivative of cos x is not always negative.
 
Alright thanks a lot for confirming that :smile:
 
danago said:
Hi. For an integral like this, for example:

<br /> \int {\sqrt {1 - \cos ^2 x} dx} <br />

The most obvious way of solving would be to make use of the pythagorean identity, to get:

<br /> \int {\sqrt {\sin ^2 x} dx} <br />

Now, I've been taught to simply evaluate it like this:

<br /> \int {\sqrt {\sin ^2 x} dx} = \int {\sin xdx = - \cos x + C} <br />

I was wondering though, is that technically correct? Squaring something, then taking the square root of it is equivalent of taking the absolute value of it, so would this be more correct:

<br /> \int {\sqrt {\sin ^2 x} dx} = \int {\left| {\sin x} \right|dx} <br />

If so, would i just give two different solutions, each defined over a different domain, like a piecewise function?

<br /> \int {\left| {\sin x} \right|dx = \left\{ {\begin{array}{*{20}c}<br /> { - \cos x + C} &amp; {\sin x \ge 0} \\<br /> {\cos x + C} &amp; {\sin x &lt; 0} \\<br /> \end{array}} \right.} <br />

Is that a more correct way of doing it?

Yes, what you do is correct. However, in some trig-sunstitution, because of the restriction we make on theta, we can automatically break the absolute value, without worrying about the sign.

Say, you are asked to evaluate:
\int \frac{dx}{\sqrt{1 - x ^ 2}}
Now, we'll make the substitution: x = sin(theta), and we restrict theta to be on the interval \left[ - \frac{\pi}{2} ; \ \frac{\pi}{2} \right], i.e, the image of the arcsine function.

So, we'll have: x = \sin \theta \Rightarrow \theta = \arcsin x
dx = cos(theta) d(theta)

The integral becomes:

\int \frac{dx}{\sqrt{1 - x ^ 2}} = \int \frac{\cos \theta d( \theta )}{\sqrt{1 - \sin ^ 2 \theta}} = \int \frac{\cos \theta d( \theta )}{\sqrt{\cos ^ 2 \theta}} = \int \frac{\cos \theta d( \theta )}{| \cos \theta |}

Since, we have restricted theta to be only on the interval [-pi/2; pi/2], i.e, on the I, and IV quadrant, so cos theta is non-negative, and we can break the absolute value like normal:

... = \int \frac{\cos \theta d( \theta )}{\cos \theta} = \int d ( \theta ) = \theta + C = \arcsin x + C.

We can also make the trig substitution: x = cos theta, but this time, we must restrict theta to be on [0; 2pi], so that it'll be more convenient for you to find x in terms of theta, and to break the absolute value.
 
Last edited:

Similar threads

  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 17 ·
Replies
17
Views
5K