Why does integral of 1/x have absolute value?

Click For Summary

Discussion Overview

The discussion revolves around the integral of the function $$\frac{1}{x}$$ and the necessity of including the absolute value in the result, specifically $$\ln|x|$$ instead of just $$\ln(x)$$. Participants explore the implications of this integral in terms of its definition, the behavior of the logarithmic function, and the application of the chain rule in differentiation.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant notes losing a mark for integrating $$\frac{1}{x}$$ to $$\ln(x)$$ instead of $$\ln|x|$$, questioning the reasoning behind this requirement.
  • Another participant explains that the derivative of $$\ln(kx)$$ is $$\frac{1}{x}$$ regardless of the value of $$k$$, and emphasizes that using absolute values accounts for both positive and negative values of $$x$$.
  • A different viewpoint discusses the nature of indefinite integrals, suggesting that they represent area under the curve without defined bounds, leading to the necessity of piecewise definitions for the integral of $$\frac{1}{x}$$.
  • This participant argues that the integral can be expressed as $$\log|x| + C$$ to unify the piecewise results for positive and negative $$x$$.
  • Another participant reiterates the derivative of $$\ln(kx)$$, expressing confusion about the application of the chain rule and its implications for the integral.
  • A subsequent reply challenges the correctness of the chain rule application in the context of the derivative of $$\ln(kx)$$, attempting to clarify the differentiation process.

Areas of Agreement / Disagreement

Participants express differing views on the application of the chain rule and the necessity of absolute values in the integral of $$\frac{1}{x}$$. No consensus is reached regarding the interpretation of the integral or the correctness of the differentiation methods discussed.

Contextual Notes

There are unresolved aspects regarding the assumptions made about the domains of the logarithmic function and the implications of piecewise definitions in integration. The discussion reflects varying levels of understanding of calculus concepts among participants.

find_the_fun
Messages
147
Reaction score
0
I lost a mark for integrating $$\frac{1}{x} $$to $$ln(x)$$ instead of $$ln\left| x \right|$$. Since the derivative of $$ln(x)$$ is [math]\frac{1}{x}[/math] not [math]\frac{1}{\left| x \right|}[/math] why is this the case?
 
Physics news on Phys.org
The derivative of ln(kx) is 1/x, no matter what the value of k.

Notice that if k > 0, then ln(kx) is only defined when x > 0, while if k < 0 then ln(kx) is only defined for x < 0.

The easy way to take into account what happens with positive and negative values of x is to use an absolute value.
 
The problem is all about what an indefinite integral is. It represents area under the curve drawn by graphing the integrand alright, but you just don't know the "bounds" of your domain, in other words, which part of the area you are actually going to choose.

For example, you can pick $\displaystyle \int \frac{\mathrm{d}x}{x}$ to be the area under $y = 1/x$ for $x < 0$. In that case, you'll get $\log(-x)$ as the result of integration. So $\displaystyle \int \frac{\mathrm{d}x}{x}$ is really defined piecewise as $\log(x)$ if $x > 0$ and $\log(-x)$ if $x < 0$. At $x = 0$, the integrand $y(x) = 1/x$ blows up, so it's none of our concern.

Note that $|x|$ always "positifies" any real number, i.e., for $x > 0$, $|x| = x$ but if $x < 0$, $|x|$ multiplies by a minus sign to make the number positive, i.e., $|x| = -x$. But this is exactly what is happening to the argument of $\log$!

So the best way to make the piecewise function work up in a single equivalence is to say

$$\int \frac{\mathrm{d}x}{x} = \log|x| + C$$

EDIT To make this more convincing, consider $(\log|x|)'$. This is NOT $1/|x|$. Note that $y = |x|$ is also a function, and $\log|x|$ is thus a composition of two functions. To differentiate this, you need to apply the chain rule, which gives $(\log|x|)' = (\log|x|)'_{|x|} \cdot (|x|)'_x$. It is clear that $(\log|x|)'_{|x|} = 1/|x|$, so we just need to work out the other part. $y(x) = |x|$ is everywhere differentiable except $x = 0$, but there $\log(x)$ blow up, so we don't need to care about it. By definition, $(|x|)'$ is $1$ if $x > 0$ and $-1$ if $x < 0$, i.e., this acts like a "sign" of the real number $x$. Let's call it $\text{sgn}(x)$.

Hence we have $(\log|x|)' = \text{sgn}(x)/|x|$. But then we are multiplying the absolute value of the real number $x$ by it's sign, which gives us back the original real number $x$. Hence,

$$(\log|x|)' = \frac1{x}$$

And by definition of antiderivatives, the equality above is verified.
 
Last edited:
Prove It said:
The derivative of ln(kx) is 1/x, no matter what the value of k.

Notice that if k > 0, then ln(kx) is only defined when x > 0, while if k < 0 then ln(kx) is only defined for x < 0.

The easy way to take into account what happens with positive and negative values of x is to use an absolute value.

I'm not very good at math.

Prove It said:
The derivative of ln(kx) is 1/x, no matter what the value of k.

By the chain rule isn't the derivative of ln(kx) with respect to x, [math](kx)' \cdot \frac{1}{x}=\frac{k}{x}[/math].

I used an online calculator and it did ln(kx)=ln(k)+ln(x) and ln(k) goes to zero. But this doesn't disprove what I did with the chain rule :confused:
 
You're not applying the chain rule correctly.

$$\frac{d \log(kx)}{dx}= \frac{d \log(kx)}{d(kx)} \cdot \frac{d(kx)}{dx} = \frac1{\cancel{k}x} \cdot \cancel{k} = \frac1{x}$$
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 15 ·
Replies
15
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 4 ·
Replies
4
Views
6K
  • · Replies 14 ·
Replies
14
Views
3K