Integration result varying in mathematica 5.2

In summary, the indefinite integral of Log[x] is -x + x Log[x], but the general solution should be x ln(x)+C. This discrepancy can occur when using the DSolve command to solve differential equations. In some cases, constants may be omitted, resulting in a simplified but incomplete solution.
  • #1
superkan619
41
0
indefinite integral of Log[x] comes out to be
-x + x Log[x]

but, the general solution should be
x ln(x)+C

Such things also occur when using DSolve command to solve differential equations.
Please help!
 
Physics news on Phys.org
  • #2
superkan619 said:
indefinite integral of Log[x] comes out to be
-x + x Log[x]

but, the general solution should be
x ln(x)+C

Such things also occur when using DSolve command to solve differential equations.
Please help!

Why is that the general solution? It's derivative is ln(x)+1, not ln(x).
 
  • #3
Thank you algebrat. I did some copy/paste job from y answers, but its incorrect...

The problem I actually had is this:
My book says Integrate[xˆ2 Log[x],x] will output -(x3/9)+((x3/3)Log(x))

but I am getting x2 (-x + x Log[x])
Where have the constants gone?
 

FAQ: Integration result varying in mathematica 5.2

Why is the integration result in Mathematica 5.2 different from other versions?

Integration is a complex mathematical process that involves various algorithms and techniques. Each version of Mathematica may have different default settings and methods for integration, which can lead to varying results. It is also possible that there have been improvements or changes made to the integration algorithms in newer versions of Mathematica.

How can I ensure consistent integration results across different versions of Mathematica?

You can specify the integration method or algorithm to be used in Mathematica by using the "Method" option. This can help to ensure consistent results across different versions. Additionally, you can also check for any updates or changes to the integration algorithms in newer versions and adjust your code accordingly.

Are there any known bugs or issues with integration in Mathematica 5.2?

There may be some known bugs or issues with integration in Mathematica 5.2, as with any software. However, it is important to note that Wolfram regularly updates and improves their software, so any issues may have been addressed in newer versions. It is recommended to check for any updates or patches for Mathematica 5.2 to ensure optimal performance.

Can user-defined functions or variables affect integration results in Mathematica 5.2?

Yes, user-defined functions or variables can affect integration results in Mathematica 5.2. The integration process relies on the input functions and variables, so any changes or errors in these can lead to different results. It is important to double-check the input and, if necessary, use the "Clear" function to remove any previously defined variables or functions.

Is there a way to verify the accuracy of the integration results in Mathematica 5.2?

Yes, Mathematica has built-in functions for verifying the accuracy of integration results. For example, you can use the "NIntegrate" function, which uses numerical methods to approximate the integral and allows you to specify the desired level of precision. You can also use the "Integrate" function with the "Assumptions" option to check if the result matches your expected solution.

Back
Top