Are Both Answers Correct for Trigonometric Substitution Integral?

Click For Summary

Discussion Overview

The discussion revolves around the evaluation of the integral $$\int{\frac{1}{\sqrt{x^2+4}}}dx$$ using trigonometric substitution and the comparison of two different expressions for the integral's result. Participants explore the implications of having two seemingly different answers and the conditions under which they can be considered equivalent.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • One participant presents their solution as $$\ln({\frac{\sqrt{x^2+4}}{2}+\frac{x}{2}})+C$$ and notes that the answer sheet provides $$\ln({\sqrt{x^2+4}+x})+C$$, expressing confusion over the apparent correctness of both answers.
  • Another participant argues that both expressions are equivalent, differing only by a constant factor, and provides a mathematical justification for this equivalence.
  • One participant questions whether the simpler form, which does not include the factor of two, is preferred, suggesting that it is a matter of taste.
  • A later reply emphasizes that the choice of expression does not affect the integral's evaluation and that constants can be absorbed into the constant of integration.
  • Another participant mentions a general principle regarding the differentiation of logarithmic expressions involving constants.
  • One participant expresses satisfaction with their understanding of the topic after the explanations provided.

Areas of Agreement / Disagreement

Participants generally agree that both expressions for the integral are correct and equivalent, differing only by a constant. However, there is no consensus on which form is preferred, as this is viewed as a matter of personal taste.

Contextual Notes

The discussion highlights the nuances of integrating functions and the role of constants in indefinite integrals, as well as the implications of expressing integrals in different forms.

Rhapsody83
Messages
10
Reaction score
6
Last night I tried to calculate from an automatically generated Wolfram Alpha problem set:
$$\int{\frac{1}{\sqrt{x^2+4}}}dx$$
I answered $$\ln({\frac{\sqrt{x^2+4}}{2}+\frac{x}{2}})+C$$
The answer sheet gave:
$$\ln({\sqrt{x^2+4}+x})+C$$
I couldn't see where I had gone wrong, so I tried differentiating my answer in Wolfram Alpha and the answer sheet one as well and both gave
$$\frac{1}{\sqrt{x^2+4}}$$
I'm confused as this suggests that both are correct answers to the question. Can somebody please tell me what is going on as I thought every function had a unique integral? Are both or only one of the answers correct?

PS There should be absolute value brackets around my integral answers but I'm not sure how to do them in LaTeX.
 
  • Like
Likes   Reactions: PeroK
Physics news on Phys.org
You didn't make a mistake. The two expressions are the same with only different constants.
$$
\log\left(\dfrac{\sqrt{x^2+4}}{2}+\dfrac{x}{2}\right)+C=\log\left(\dfrac{1}{2}\cdot\left(\sqrt{x^2+4}+x\right)\right)+C=\log\left(\sqrt{x^2+4}+x\right)+\underbrace{\log\left(\dfrac{1}{2}\right)+C}_{=:C'}
$$
 
  • Like
  • Informative
Likes   Reactions: vanhees71, jedishrfu, PeroK and 1 other person
Thanks for this, I was very confused, but it makes sense now. Am I right in thinking that one that is not divided by two is the preferred one as it is a little simpler?
 
Rhapsody83 said:
Thanks for this, I was very confused, but it makes sense now. Am I right in thinking that one that is not divided by two is the preferred one as it is a little simpler?
It is finally a matter of taste. I would prefer the version without an additional factor that is swallowed by the constant anyway. I mean, you could even write ##\log\left(\dfrac{\sqrt{x^2+4}}{\pi}+ \dfrac{x}{\pi}\right),## which, of course, doesn't make much sense. So, yes, put all unnecessary factors in the logarithm (summands outside the logarithm) into ##C.##

This question doesn't come up if you consider definite integrals.
 
  • Like
  • Informative
Likes   Reactions: vanhees71 and Rhapsody83
... more generally:
$$\frac d {dx}\bigg ( \ln (\frac{f(x)}{k}) \bigg ) = \frac d {dx}\bigg ( \ln (f(x)) - \ln k \bigg ) = \frac d {dx}\bigg ( \ln (f(x))\bigg )$$Where ##k## is a constant.
 
  • Like
  • Informative
Likes   Reactions: vanhees71 and Rhapsody83
I think I fully understand what is going on now and PeroK's formula, which is obvious when you see it, makes it even clearer.
 
  • Like
Likes   Reactions: vanhees71

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 27 ·
Replies
27
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K