What are the rules to know when to use absolute value?

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 · 2K views
Fancypen
Messages
25
Reaction score
6
Specifically when doing integration problems. I know the indef integral of cosx/sinx+1 is ln(sinx+1) + C, but absvalue is not required here. I think it's because the sine fn must be >= 0 or it's undefined? What about in other cases, is there a general rule to know when to use absvalue?

Thanks
 
Physics news on Phys.org
Fancypen said:
Specifically when doing integration problems. I know the indef integral of cosx/sinx+1 is ln(sinx+1) + C
The integrand should be written as cosx/(sinx + 1). Without parentheses what you wrote is ##\frac{cosx}{sinx} + 1 = cotx + 1##.

Also, ##\int \frac{\cos(x) dx}{\sin(x) + 1} = \ln|\sin(x) + 1| + C##
Fancypen said:
, but absvalue is not required here.
You really should have it, unless there is information given that it's not needed.
Fancypen said:
I think it's because the sine fn must be >= 0 or it's undefined?
No, that's not true. ##-1 \le \sin(x) \le 1##. Take a look at a graph of y = sin(x).
Fancypen said:
What about in other cases, is there a general rule to know when to use absvalue?

Thanks
 
I see. So the answer SHOULD have it. We actually don't use a book, so the answers I find to the worksheet problems aren't consistent. Some use absvalue and some do not.

There definitely should be a parenthesis around the denominator there. I am aware, but neglected it!

Thanks
 
[itex]\int \frac{1}{x}dx= ln|x|+ C[/itex]. If you know that x will not be negative then you do not need the absolute values.

For example, [itex]\int_1^2 \frac{1}{x}dx= \left[ln(x)\right]_1^2= ln(2)[/itex]. Since x runs between 1 and 2, it is never negative and the absolute value is not needed.
 
Last edited by a moderator:
Fancypen said:
There definitely should be a parenthesis around the denominator there.
In fact, there should be two of them -- parentheses -- not just a single parenthesis. :oldbiggrin:
 
Last edited:
Mark44 said:
In fact, there should be two of them -- parentheses -- not just a single parenthesis. :oldbiggrin:
Yeah, one set around the the angle of sine too.
 
Last edited by a moderator: