Logarithms and online integrators

  • Thread starter RedX
  • Start date
  • Tags
    Logarithms
There is no reason to use imaginary numbers here at all. In summary, the integral of ln(1-x) is -(1-x)ln(1-x)-x, when 0<=x<=1. However, online integrators may give a different answer due to the ambiguity of the argument of the logarithm. It is important to keep in mind the absolute value when dealing with logarithms to avoid confusion and incorrect results.
  • #1
RedX
970
3
The integral of ln(1-x) is -(1-x)ln(1-x)-x, when 0<=x<=1.

So for example:

[tex]\int_{0}^{1} ln (1-x)dx= (-(1-x)ln(1-x)+x)_{0}^{1}=-1 [/tex]

However, going to an online integrating site:

http://integrals.wolfram.com/index.jsp?expr=Log[1-x]&random=false

they give the integral of ln(1-x) as x*(-1 + ln[1 - x]) - ln[-1 + x].

So according to them:

[tex]\int_{0}^{1} ln (1-x)dx=(x*(-1 + ln[1 - x]) - ln[-1 + x])_{0}^{1} =
1(-1+ln(0))-ln(0)-0+ln(-1)=-1+ln(-1) [/tex]

For ln(-1), aren't you supposed to take the value [tex]i\pi[/tex]?

So do online integrators arbitrarily change signs of the argument in ln(), and give you an answer, with the understanding that it's only correct up to an imaginary part that's the result of assigning a sign to the argument of the ln()? Are they careful when you multiply ln()s, like ln(x)*ln(1-x), where multiplying two imaginary numbers gives a real number, so you can't tell if a term is due to assigning the argument of a logarithm a certain sign?
 
Physics news on Phys.org
  • #2
Then integral of ln(x) is NOT "ln(x)". It is ln(|x|). Since x is between 0 and 1, x- 1 is negative so |x-1|= 1- x and that integral, from the website, should be x(ln(1- x)- 1)- ln(1- x)= x ln(1-x)- ln(1-x)- x= (x- 1)ln(1-x)- x.

The sign was not "arbitrarily changed". The online integrator did not know whether you mean x to be larger than or less than 1 and so could not know whether 1- x would be positive or negative. Certainly, the online integrator should have said "ln(|1- x|).

And, since the absolute value is a positive real number, no there are no imaginary numbers involved.
 

Related to Logarithms and online integrators

1. What is a logarithm?

A logarithm is a mathematical function that helps us solve exponential equations. It tells us what power we need to raise a certain number (called the base) to in order to get a given value. For example, the logarithm base 2 of 8 is 3, because 2 to the power of 3 equals 8.

2. What is the purpose of using logarithms?

Logarithms have several practical applications, such as measuring the intensity of earthquakes or the loudness of sound. They are also used in financial calculations, data analysis, and computer science. In general, logarithms help us simplify and solve complex mathematical problems.

3. How do you use an online integrator?

An online integrator is a tool that helps you evaluate integrals (a type of mathematical function that represents the area under a curve). To use an online integrator, you typically input the function you want to integrate, specify the limits of the integration, and then click a button to get the result. Some integrators may also offer advanced settings or options for more complex integrals.

4. Are there any limitations to using online integrators?

Online integrators can be helpful for quickly solving simple integrals or checking your work, but they may not be as accurate as using other methods, such as hand calculations or computer software. Additionally, some online integrators may have limited capabilities or may not be able to handle certain types of integrals.

5. How can I improve my understanding of logarithms and integrals?

If you want to improve your understanding of logarithms and integrals, it's important to practice solving problems and using different methods. You can also consult textbooks, online resources, or seek help from a tutor or teacher. It's also helpful to understand the underlying concepts and applications of logarithms and integrals, rather than just memorizing formulas or procedures.

Similar threads

Replies
14
Views
899
Replies
14
Views
1K
Replies
3
Views
495
Replies
1
Views
213
Replies
8
Views
382
  • Calculus
Replies
4
Views
2K
Replies
4
Views
3K
Replies
6
Views
903
Replies
1
Views
1K
Back
Top