Integration with trig and hyperbolic substitutions

In summary, the two integrals are equivalent if the absolute value is included on the right-hand side.
  • #71
Rido12 said:
Yes...it's simply $\int \,d(\sqrt{1+x^2})$, but that takes a lot of brain power to work through (Muscle), and it's just a u-substitution in disguise.

How will this help with more complicated integrals?

It just helps to know and recognize those "standard" integrals.
When you get a more complicated integral, the challenge is to reduce it to one of the standard integrals.
 
Physics news on Phys.org
  • #72
So how would you evaluate this by recognition of standard integrals? (Wondering)

$$\displaystyle \int \frac{x^2dx}{\left(x^2-9\right)^{3/2}}$$
 
  • #73
Rido12 said:
When $0<\theta<\frac{\pi}{2}$, (1st quadrant) then
$$= \int \frac{\sec\theta \tan\theta\,d\theta}{\tan\theta}=\int \sec\left({\theta}\right) \,d \theta$$
When $-\frac{\pi}{2}<\theta<\pi$, (2nd quadrant) then
$$= -\int \frac{\sec\theta \tan\theta\,d\theta}{\tan\theta}=-\int \sec\left({\theta}\right) \,d \theta$$

Correct :D?

I went back and rethought this. If we were to evaluate both cases, we have:

When $0<\theta < \pi/2$:
$=\ln \left| x+\sqrt{x^2-a^2} \right|+K, \text{ where K=-$\ln\left({a}\right)+C$}$
When $\pi/2 < \theta < \pi$:
$=-\ln \left| x+\sqrt{x^2-a^2} \right|+K, \text{ where K=-$\ln\left({a}\right)+C$}$

Now this answer is different from our hyperbolic substitution. The hyperbolic substitution only gave us $=\ln \left| x+\sqrt{x^2-a^2} \right|+K, \text{ where K=-$\ln\left({a}\right)+C$}$, not the negative version too...

Just to make this thread hard-to-follow (Giggle)
 
  • #74
Rido12 said:
So how would you evaluate this by recognition of standard integrals? (Wondering)

$$\displaystyle \int \frac{x^2dx}{\left(x^2-9\right)^{3/2}}$$

Well... I guess you would have a clue about \(\displaystyle \int \frac{dx}{\left(x^2-9\right)^{1/2}}\), right?

It's just that the power of the denominator is 1 point too high.
But we can get that by taking a derivative.

Let's see...

$$d\left(\frac{1}{\left(x^2-9\right)^{1/2}}\right)
= -\frac 12 \cdot \frac{1}{\left(x^2-9\right)^{3/2}} \cdot 2x\,dx
= \frac{-x\,dx}{\left(x^2-9\right)^{3/2}}$$

Hmm...
Perhaps we can use that in a partial derivative... (Thinking)

$$\int \frac{x^2dx}{\left(x^2-9\right)^{3/2}}
=\int -x\,d\left(\frac{1}{\left(x^2-9\right)^{1/2}}\right)
= ...
$$

Where would that go? (Wondering)
 
  • #75
Rido12 said:
I went back and rethought this. If we were to evaluate both cases, we have:

When $0<\theta < \pi/2$:
$=\ln \left| x+\sqrt{x^2-a^2} \right|+K, \text{ where K=-$\ln\left({a}\right)+C$}$
When $\pi/2 < \theta < \pi$:
$=-\ln \left| x+\sqrt{x^2-a^2} \right|+K, \text{ where K=-$\ln\left({a}\right)+C$}$

Now this answer is different from our hyperbolic substitution. The hyperbolic substitution only gave us $=\ln \left| x+\sqrt{x^2-a^2} \right|+K, \text{ where K=-$\ln\left({a}\right)+C$}$, not the negative version too...

I think that should come out as something like:

When $\pi/2 < \theta < \pi$:
$=-\ln \left| -x+\sqrt{x^2-a^2} \right|+K, \text{ where K=+$\ln\left({a}\right) + C$}$

(Thinking)
 
  • #76
Holy...that's next level integration. In school and in most textbooks, we were taught to use trig substitutions, and in this case, $x=3 \sec (\theta)$. It seems like you don't even use it...

We get:
$$=\frac{-x}{\sqrt{x^2-9}}+\int \frac{dx}{\sqrt{x^2-9}}+C$$
$$=\frac{-x}{\sqrt{x^2-9}}+ \arcosh(x/3)+C$$

I like Serena said:
I think that should come out as something like:

When $\pi/2 < \theta < \pi$:
$=-\ln \left| -x+\sqrt{x^2-a^2} \right|+K, \text{ where K=+$\ln\left({a}\right) + C$}$

(Thinking)

But doesn't that give us two different answers? We only got one from the hyperbolic method.
 
  • #77
Rido12 said:
Holy...that's next level integration. In school and in most textbooks, we were taught to use trig substitutions, and in this case, $x=3 \sec (\theta)$. It seems like you don't even use it...

We get:
$$=\frac{-x}{\sqrt{x^2-9}}+\int \frac{dx}{\sqrt{x^2-9}}+C$$
$$=\frac{-x}{\sqrt{x^2-9}}+ \arcosh(x/3)+C$$

Whot? I was only trying to recognize the standard integrals as you suggested. (Crying)

But yeah, that's it! (Yes)

To be honest, I don't really like those complicated trig substitutions. (Bandit)
But doesn't that give us two different answers? We only got one from the hyperbolic method.

Then I suspect there must be a mistake with a minus sign somewhere. :eek:
 
  • #78
This is crazy..mind blown...guess I don't need trig substitutions anymore (Giggle) I guess I'll practice integration by recognition, just as the pros do it. (Cool)
This is the method you use to integrate these functions, right? If so, then I should practice it...
$$=-\int \sec(\theta) \,d\theta +C$$

We are considering when $x<-a$, with the substitution $x=a \sec(\theta)$. Solving the inequality $a \sec(\theta)<-a$, we get $\sec (\theta)<-1$, which occurs when $\pi/2 < \theta <\pi$.

$$=-\ln\left| \sec(\theta)+\tan(\theta) \right|+C$$

From a right triangle, we obtain the value of $\sec(\theta)=x/a$ and $\tan(\theta)=\sqrt{x^2-a^2}/a$, which, in the 2nd quadrant, secant is negative.

$$=-\ln\left| -x+\sqrt{x^2-a^2}\right|+C$$
$$=-\ln\left| x-\sqrt{x^2-a^2}\right|+C$$
$$=\left| x+ \sqrt{x^2-a^2}\right|+C$$

Is that correct? This means that you can neglect the absolute value from the secant substitution because both answers when $x>a$ and $x<-a$ are equivalent!

People! Don't convert my thread into a spam thread, please (Crying)

Also, do all even trig function have two inverses? $y=\cos(\theta)=\cos(-\theta)$, therefore, $\arccos(y)$ and $-\arccos(y)$. (Whew)
 
Last edited:
  • #79
I like Serena said:
Let's distinguish cases.
If $\theta>0$, then we have $dx = a \sinh(\theta)\,d\theta = a \text{ sgn}(\theta)\sinh(\theta)\,d\theta$.
And if $\theta<0$, we have $dx = -a \sinh(\theta)\,d\theta = a \text{ sgn}(\theta)\sinh(\theta)\,d\theta$.
There you go. (Mmm)

I think I finally understand this, but when I read back, it's making less sense. Why are we saying $\theta <0$ and $\theta >0$? Should it not be $x>a$ and $x<-a$?

Let's look at the graph:
aadspk.jpg


Essentially, we want the two answers $\arcosh(x/a)$ and $-\arcosh(-x/a)$, which are defined when $x\ge a$ and $x\le -a$ respectively.

This is how I think about it, let me know if it is right or wrong. I already know $\arcosh(x/a)$ is defined for $\ge a$. That is what we already knew. we want to however define a function when $x\le -a$. That is, when $\frac{x}{a}\le -1$. So adding a negative in the argument allows us to do so: $\arcosh(-x/a)$. Now our answer is defined for $x\le -a$ AND it just a reflection across the y-axis. Notice that $\arcosh(-x/a)$ implies $x=-a\cosh(\theta)$.

Putting together everything I've said, I have defined $x=a\cosh(\theta)$ for $x\ge a$ and $x=-a\cosh(\theta)$ for $x\le -a$, which is different from what you have. Of course, implying that $dx=a\sinh(\theta) \,d\theta$ for $x\ge a$ and $dx=-a\sinh(\theta) \,d\theta$ for $x\le -a$
 
  • #80
This thread has too many rooms!
I have moved your new problem to a new thread.
 
  • #81
Rido12 said:
$$=-\ln\left| \sec(\theta)+\tan(\theta) \right|+C$$

From a right triangle, we obtain the value of $\sec(\theta)=x/a$ and $\tan(\theta)=\sqrt{x^2-a^2}/a$, which, in the 2nd quadrant, secant is negative.

$$=-\ln\left| -x+\sqrt{x^2-a^2}\right|+C$$

You've lost me.
You start with $\sec(\theta)$, then you substitute $x/a$ for it, to end up with $-x$.
I'm afraid that I can't follow what you're doing. (Doh)
Also, do all even trig function have two inverses? $y=\cos(\theta)=\cos(-\theta)$, therefore, $\arccos(y)$ and $-\arccos(y)$. (Whew)

They have infinitely many inverses. (Smirk)

Consider that:
$$y=\cos(\theta) \Rightarrow \theta = \pm \arccos y + 2\pi k$$
So for instance $2\pi - \arccos y$ is also an inverse.
 
  • #82
Rido12 said:
I think I finally understand this, but when I read back, it's making less sense. Why are we saying $\theta <0$ and $\theta >0$? Should it not be $x>a$ and $x<-a$?

Isnt that the same thing? (Wondering)

If $\theta>0$, then we have:
$$x = a \text{ sgn }(\theta) \cosh(\theta) = a \cosh(\theta) > a \quad \Rightarrow \quad x > a$$
And if $\theta<0$, we have:
$$x = a \text{ sgn }(\theta) \cosh(\theta) = -a \cosh(\theta) < -a \quad \Rightarrow \quad x < -a$$
 
  • #83
I think it would be helpful to start from the beginning, since I'm starting to forget what the problem is. We want to find $\int \frac{dx}{\sqrt{x^2-a^2}}$ by method of trig substitution. Let $x=a \sec(\theta)$. Constructing a right angled triangle, we have the adjacent side is $a$, hypotenuse is $x$, and opposite side is $\pm \sqrt{x^2-a^2}$. Although most textbooks leave out the $\pm$, it will be helpful when we observe different quadrants.

Applying our substitution, we obtain:
$$\int \frac{a \sec(\theta)\tan(\theta)}{a|\tan(\theta)|}d\theta$$

From our original problem, we already know the domain of the function splits into two regions, when $x>a$, and when $x<-a$.

When $x>a$, $a \sec(\theta))>a$ and solving the inequality gives us the region when $0<\theta <\pi/2$. It is no coincidence that $\tan (\theta)$ just happened to be positive in that region, or is it?

Our problem simplifies to:
$$=\int \sec(\theta) \,d\theta$$
$$=\ln\left| \sec(\theta) +\tan(\theta) \right|+C$$
Because tangent is positive, we take the positive root of our triangle, which is $\frac{\sqrt{x^2-a^2}}{a}$.
$$=\ln\left| \frac{x}{a} +\frac{\sqrt{x^2-a^2}}{a}\right|+C$$

When $x<a$, $a \sec(\theta)<a$ and solving the inequality gives us the region when $\pi/2<\theta <\pi$. Again it is no coincidence that $\tan (\theta)$ just happened to be negative in that region, or is it? It's cool how observing the domain of the original integrand tells us exactly when $\tan(\theta)$ would be positive or negative.

Our problem simplifies to:
$$=-\int \sec(\theta) \,d\theta$$
$$=-\ln\left| \sec(\theta) +\tan(\theta) \right|+C$$
Because tangent is negative, we take the negative root of our triangle, which is $\frac{-\sqrt{x^2-a^2}}{a}$.
$$=-\ln\left| \frac{x}{a} -\frac{\sqrt{x^2-a^2}}{a}\right|+C$$
By a series of manipulation that you demonstrated to me earlier on:
$$=\ln\left| \frac{x}{a} +\frac{\sqrt{x^2-a^2}}{a}\right|+C$$

They are identical. :D

Aside: The textbooks usually draw the "triangles" without the $\pm$, but I think that's because they usually neglect explaining the different quadrants. My thoughts are that we're just using the "triangle" as a medium to relate trig ratios; the sides don't have to be just "positive". What are your thoughts? It makes sense though, because the opposite is $\pm \sqrt{x^2-a^2}$. Tangent could very much be $\frac{\sqrt{x^2-a^2}}{a}$ or $-\frac{\sqrt{x^2-a^2}}{a}$ depending on domain.
I think you could also focus your attention on the integrand: $\sqrt{x^2-a^2}=\left| a\tan(\theta) \right|$. When $\tan(\theta)>0$, we get $\frac{\sqrt{x^2-a^2}}{a}$, and vice-versa.
 
Last edited:
  • #84
I like Serena said:
Isnt that the same thing? (Wondering)

If $\theta>0$, then we have:
$$x = a \text{ sgn }(\theta) \cosh(\theta) = a \cosh(\theta) > a \quad \Rightarrow \quad x > a$$
And if $\theta<0$, we have:
$$x = a \text{ sgn }(\theta) \cosh(\theta) = -a \cosh(\theta) < -a \quad \Rightarrow \quad x < -a$$

I had a suspicion they were the same, but I just can't think of it in terms of $\theta$. That is because $\cosh(\theta)$ is defined for both positive and negative arguments, so it's not quite clear why we're separating them in cases.

When I look at the graph of the $\arcosh$, it is clear to me that there is only one branch when $x>a$. We need to define a branch when $x<-a$, but that's impossible because $\arcosh(\frac{x}{a})$ isn't defined for negative arguments, so I stick in a negative, and there we go: $\arcosh(-\frac{x}{a})$, or equivalently, $x = -\arcosh(\theta)$.

Would you have said that my answer was complete in the begin, when it was just defined for $x>a$? Because a function only have one inverse, once you have chosen one, be it the positive or negative, you don't have both. What are you thoughts? (Wondering)
 
  • #85
Rido12 said:
They are identical. :D

Yay! (Dance)

Aside: The textbooks usually draw the "triangles" without the $\pm$, but I think that's because they usually neglect explaining the different quadrants. My thoughts are that we're just using the "triangle" as a medium to relate trig ratios; the sides don't have to be just "positive". What are your thoughts? It makes sense though, because the opposite is $\pm \sqrt{x^2-a^2}$. Tangent could very much be $\frac{\sqrt{x^2-a^2}}{a}$ or $-\frac{\sqrt{x^2-a^2}}{a}$ depending on domain.
I think you could also focus your attention on the integrand: $\sqrt{x^2-a^2}=\left| a\tan(\theta) \right|$. When $\tan(\theta)>0$, we get $\frac{\sqrt{x^2-a^2}}{a}$, and vice-versa.

Typically, you would verify be taking the derivative of your answer.

Then it suffices to consider the $+$ case and make an educated guess about the $-$ case.
Taking the derivative then confirms you have the right answer, and it also tells you what more to do (if anything) for the $-$ case. (Nerd)
 
  • #86
Rido12 said:
I had a suspicion they were the same, but I just can't think of it in terms of $\theta$. That is because $\cosh(\theta)$ is defined for both positive and negative arguments, so it's not quite clear why we're separating them in cases.

When I look at the graph of the $\arcosh$, it is clear to me that there is only one branch when $x>a$. We need to define a branch when $x<-a$, but that's impossible because $\arcosh(\frac{x}{a})$ isn't defined for negative arguments, so I stick in a negative, and there we go: $\arcosh(-\frac{x}{a})$, or equivalently, $x = -\arcosh(\theta)$.

Would you have said that my answer was complete in the begin, when it was just defined for $x>a$? Because a function only have one inverse, once you have chosen one, be it the positive or negative, you don't have both. What are you thoughts? (Wondering)

My thoughts are to keep things simple.

Just do the positive case and assume everything behaves nicely.
Then, when you have an answer, verify by taking the derivative.
Finally, consider what you would need in your answer to make it work for the negative case. And verify by checking what that would mean if you take the derivative. (Smile)
 
  • #87
It's just a bit confusing:

If we just want to use a hyperbolic substitution, then we need only consider the substitutions $a=\cosh(\theta)$ and $a=-\cosh(\theta)$ depending on domain.

But if you want to find a perfect antiderivative $\int \frac{dx}{\sqrt{x^2-a^2}}$, then while $\arcosh(a)$ (from $a=\cosh(\theta)$) will meet that criteria, $\arcosh(-a)$ (from $a=-\cosh(\theta)$) will not. But by differentiation the latter, we notice that we need to add an extra negative outside to make it work: $-\arcosh(-a)$, is that what you mean? (Wondering) But, then, how did you notice the fact that separating the domain by cases such as $\theta >0$ and $\theta <0$ will solve this problem? I don't see that from what I did above.
 
Last edited:
  • #88
Rido12 said:
It's just a bit confusing:

If we just want to use a hyperbolic substitution, then we need only consider the substitutions $a=\cosh(\theta)$ and $a=-\cosh(\theta)$ depending on domain.

But if you want to find a perfect antiderivative $\int \frac{dx}{\sqrt{x^2-a^2}}$, then while $\arcosh(a)$ (from $a=\cosh(\theta)$) will meet that criteria, $\arcosh(-a)$ (from $a=-\cosh(\theta)$) will not. But by differentiation the latter, we notice that we need to add an extra negative outside to make it work: $-\arcosh(-a)$, is that what you mean? (Wondering)

Yep!

Alternatively you can write $\arcosh$ as $\ln$, after which you can add absolute value symbols, just like you would for $\int x\,dx = \ln|x| + C$. (Nerd)
But, then, how did you notice the fact that separating the domain by cases such as $\theta >0$ and $\theta <0$ will solve this problem? I don't see that from what I did above.

The function $\cosh$ is an even function that is not invertible.
Only by limiting its domain (to $\theta \ge 0$) can we make it invertible.
That leaves us with half of its domain that we can use for other purposes.
Using the $\text{sgn}$ function makes it work.

(Yawn)
 
  • #89
rbe4ub.jpg


I think I realized my confusion.
You see, when $\theta<0$, then $x=-a\cosh(\theta)$
Then our graph is the left branch of the bottom parabola. Take the inverse of it, by flipping it across $y=x$ and you get the bottom branch of the sideways parabola. But that's not the part we want! We want the top portion of the sideways parabola. This works out mathematically, but not working out graphically for me. But otherwise, I understand it now. :D
Yes, this thread is getting really annoying now, but I think I would have gotten this much faster if you were my private tutor (Cool). LaTeXing and waiting for replies can be really annoying. The whole time, I was just trying to piece all your comments together, and trying to come up with your conclusion from scratch. Sometimes when I learn more math, I come back and read my old threads and cringe. Maybe I'm getting ahead of myself for asking these questions because I haven't even been exposed to hyperbolic functions much at all. When I asked you this question initially, I just knew that they could be represented by exponentials, and I didn't even know what they looked like. (Giggle)
 
  • #90
Rido12 said:
Yes, this thread is getting really annoying now, but I think I would have gotten this much faster if you were my private tutor (Cool). LaTeXing and waiting for replies can be really annoying. The whole time, I was just trying to piece all your comments together, and trying to come up with your conclusion from scratch. Sometimes when I learn more math, I come back and read my old threads and cringe. Maybe I'm getting ahead of myself for asking these questions because I haven't even been exposed to hyperbolic functions much at all. When I asked you this question initially, I just knew that they could be represented by exponentials, and I didn't even know what they looked like. (Giggle)

Good!

Yeah. I realize that this thread was pretty messy.
I believe that is due to the multiple lines of discussion that were executed simultaneously.
It was fun though! ;)
 

Similar threads

Back
Top