What's wrong with using x = acosθ?

  • Thread starter flyingpig
  • Start date
In summary, the conversation discusses how to handle integrals in the form of sqrt{a^2 - x^2} using different trigonometric substitutions. It is shown that both x = a\sin\theta and x = a\cos\theta can be used, but they may result in different answers due to the presence of an implicit constant of integration. It is also mentioned that definite integrals will always give a unique solution regardless of the substitution used.
  • #1
flyingpig
2,579
1

Homework Statement



In my Calculus class, my professor told us that to handle integrals in the forms of [tex]\sqrt{a^2 - x^2}[/tex], we must use [tex]x = a\sin\theta[/tex]. But my question is why? I tried it with x = acosθ and it works, but it just gives me an "opposite" answer.

Let's say [tex]\int \sqrt{9 - x^2} dx[/tex]

Using x = 3sinθ, you should get

[tex]\frac{1}{2}\left ( \sqrt{9-x^2} + 9\arcsin\left(\frac{x}{3} \right ) \right ) [/tex]

The Attempt at a Solution



Now, let's try using x = 3cosθ

[tex]x = 3\cos\theta[/tex]
[tex]dx = -3\sin\theta d\theta[/tex]

[tex]\int \sqrt{9 - 9\cos^2 \theta } -3\sin\theta d\theta[/tex]

[tex]-3\int \sqrt{9(1 - \cos^2 \theta)} \sin\theta d\theta[/tex]

[tex]-9\int \sqrt{1 - \cos^2 \theta} \sin\theta d\theta[/tex]


[tex]-9\int \sin^2\theta d\theta[/tex]


[tex]-9\int \frac{1- \cos2\theta }{2} d\theta[/tex]

[tex]-9\int \frac{1}{2}- \frac{\cos2\theta }{2} d\theta[/tex]


[tex]-9\left [ \frac{\theta}{2}- \frac{\sin2\theta }{4} \right ] [/tex]


[tex]-9\left [ \frac{\theta}{2}- \frac{2\sin\theta\cos\theta}{4} \right ] [/tex]

Initially we had [tex]x = 3\cos\theta[/tex], so draw the triangle and we should get [tex]\sin\theta = \frac{\sqrt{3^2 - x^2}}{3}[/tex] and [tex]\theta = \arccos\left ( \frac{x}{3} \right )[/tex]

Our final answer should be

[tex]-9\left [ \frac{arccos\left ( \frac{x}{3} \right )}{2}- \frac{x\sqrt{9-x^2}}{18} \right ] [/tex]


Now clearly

[tex]-9\left [ \frac{arccos\left ( \frac{x}{3} \right )}{2}- \frac{x\sqrt{9-x^2}}{18} \right ] \neq \frac{1}{2}\left ( \sqrt{9-x^2} + 9\arcsin\left(\frac{x}{3} \right ) \right )[/tex]
 
Last edited:
Physics news on Phys.org
  • #2
I confess, I didn't read the whole thing :)

However, you very well may have a right answer. Both of them could be A right answer.

First off, your completely right that acosx should work. after all, cos^2 + sin^2 = 1,
so
1 - cos^2 = sin^2
just as
1 - sin^2 = cos^2 like your teacher told you to do. So your way definitely is valid.

Your forgetting something important. That's an indefinate integral. That means it carries with it an implicit constant of integration. IE:

F1(x) = x
F2(x) = x + 3

derivitives are:
f1(x) = 1
f2(x) = 1

so if you integrate both of these, you get the same thing. Because F1(x) =x and F2(x) = x + 3 are both primitives for the constant function f(x) = 1. So there really is a whole family of right answers to the indefinite integral of the function f(x) = 1.

Therefore, your answer could just be off by a constant. You should play around with some inverse trig identities and see if you add a constant to your answer, if it is equal to the answer you said is the "right" answer. I didn't check your work but it may be right.
 
  • #3
I never bothered to memorize which trig substitutions go with a2 + x2, a2 - x2, or x2 + a2. Instead, I draw a right triangle and label the sides appropriately.

For an integral with sqrt(a2 - x2), the hypotenuse is a, and you can label either the base or altitude as x. The other side will be sqrt(a2 - x2). If you label the base as x (and the acute angle as theta), then cos(theta) = x/a. From that you get all your other relationships, including dx and one that involves the square root.

If you label the altitude as x, then you have sin(theta) = x/a. It doesn't matter what you do as long as what you do is consistent with how you've defined the relationships between x and the angle.
 
Last edited:
  • #4
I've always had the suspicion that trigonometric substitution always results in non-unique answers.

Because at the point[tex]-9\left [ \frac{\theta}{2}- \frac{\sin2\theta }{4} \right ] [/tex]I could have left it as just [tex\sin2\theta[/tex] and then substitute [tex]\arccos\left(\frac{x}{3}\right)[/tex]
 
  • #5
Mark44 said:
I never bothered to memorize which trig substitutions go with a

Lol no, it's in my textbook under "strategies for integration", like recognize the form and choose what to substitute wisely.
 
  • #6
flyingpig said:
Let's say [tex]\int \sqrt{9 - x^2} dx[/tex]

Using x = 3sinθ, you should get

[tex]\frac{1}{2}\left ( \sqrt{9-x^2} + 9\arcsin\left(\frac{x}{3} \right ) \right ) [/tex]

This should be

[tex]\frac{1}{2}\left ( x \sqrt{9-x^2} + 9\arcsin\left(\frac{x}{3} \right ) \right ) [/tex]

Our final answer should be

[tex]-9\left [ \frac{arccos\left ( \frac{x}{3} \right )}{2}- \frac{x\sqrt{9-x^2}}{18} \right ] [/tex]


Now clearly

[tex]-9\left [ \frac{arccos\left ( \frac{x}{3} \right )}{2}- \frac{x\sqrt{9-x^2}}{18} \right ] \neq \frac{1}{2}\left ( \sqrt{9-x^2} + 9\arcsin\left(\frac{x}{3} \right ) \right )[/tex]

You are forgetting the constant of integration. The periodicity of the trig functions means that

[tex] \arccos y = \frac{\pi}{2} - \arcsin y.[/tex]

You can use this to show that the two methods give the same answer up to the integration constant.

The bottom line is that you can use any substitution that you want, as long as your work is correct. That's the whole point of substitutions.
 
  • #7
[tex]\frac{1}{2}\left ( x \sqrt{9-x^2} + 9\arcsin\left(\frac{x}{3} \right ) \right ) [/tex]

and

[tex]-9\left [ \frac{arccos\left ( \frac{x}{3} \right )}{2}- \frac{x\sqrt{9-x^2}}{18} \right ][/tex]

Let's try to evaluate it from 0 to [tex]2\Pi[/tex]
 
  • #8
flyingpig said:
I've always had the suspicion that trigonometric substitution always results in non-unique answers.

All indefinite integrals give you a non-unique answer. In fact, it gives you an infinite number of answers.

Definite integrals are another story, there is a unique solution. It doesn't matter what substitution you make or whatever strange method you may use, you will get the same answer. Definite integrals will give you a number, not an equation (unless there is another variable you are not integrating with respect to, but your answer will still be the same because you could have just pulled this out of the integral to begin with, leaving you with an indefinite integral of only variables that you are integrating with respect to, and hence you will get whatever you pulled out times a number.) And that number will be exactly the same every time.
 
  • #9
Are you sure your sin x substitution answer is exactly correct? I think there should be no difference in the derivations except for a sign difference in the step where you apply the sin^2 -> double angle formula.

If so, then you can also use the fact that arccos x = pi/2 - arcsin x to show that the answers you get are the same (up to a constant of -9pi/4, which is perfectly okay since indefinite integrals are only specified "up to a constant").
 
  • #10
osnarf said:
All indefinite integrals give you a non-unique answer. In fact, it gives you an infinite number of answers.

I know by the constant, but this isn't the "big" problem here

Definite integrals are another story, there is a unique solution. It doesn't matter what substitution you make or whatever strange method you may use, you will get the same answer. Definite integrals will give you a number, not an equation (unless there is another variable you are not integrating with respect to, but your answer will still be the same because you could have just pulled this out of the integral to begin with, leaving you with an indefinite integral of only variables that you are integrating with respect to, and hence you will get whatever you pulled out times a number.) And that number will be exactly the same every time.

Then by why does the back page of my textbook only contains one unique form of solutions to integrals?
 
  • #11
olivermsun said:
Are you sure your sin x substitution answer is exactly correct? I think there should be no difference in the derivations except for a sign difference in the step where you apply the sin^2 -> double angle formula.

I used Wolframalpha and it said they used sin2x

It could be my math that is wrong for the cosx
 
  • #12
What I'm saying is that your "answer" using the sin substitution seems to be missing a factor of x next to the sqrt. Your procedure using cos x is correct.

The sin x and the cos x substitutions will lead to exactly the same steps until you get to the sin2x and cos2x, respectively, at which point the substitutions differ by a negative sign. However, the end result will have -arcsin in one case and +arccos in the other. Since arcsin x = pi/2 - arccos x, you're good up to a constant.
 
  • #13
If you do transform one integral to another, then as long as the limits also reflect the change, the integral should still be valid even in the new form. So if you did transform sin's into cos's then as long as the limits reflect the correct transformation, the integral value should remain the same (and reflect the same measure be it length, area, volume etc)
 
  • #14
Why does my book say only use x = asinθ then?
 
  • #15
I believe it's mainly simply because people are more used to the sine function than the cosine function, for whatever reason. Realistically, as long as you restrict the domain on whichever you're using (-pi/2 to pi/2 for sine, and 0 to pi for cosine), either one is perfectly valid.
 
  • #16
No idea. Maybe they want the answers to be derived the same way so they're easier to grade?
 
  • #17
Evaluate it from 0 to 1

[tex]-9\left [ \frac{arccos\left ( \frac{x}{3} \right )}{2}- \frac{x\sqrt{9-x^2}}{18} \right ]_{0}^{1} \approx 2.94658[/tex][tex]\frac{1}{2}\left [ \sqrt{9-x^2} + 9\arcsin\left(\frac{x}{3} \right ) \right ]_{0}^{1} \approx 1.433[/tex]

They give different answers.
 
  • #18
Which suggests that there is an error somewhere. The trig substitution to use is connected with a right triangle, with a hypotenuse (in this case) of 3. If you label the base as x, and the altitude as sqrt(9 - x^2), then your substitution would be cosθ = x/3, or 3cosθ = x, from which you get dx = -3sinθ dθ.

If instead, you label the altitude as x and the base as sqrt(9 - x^2), then your substitution would be sin θ = x/3, or 3 sin θ = x, from which you get dx = 3 cos θ dθ.

It doesn't matter which you choose. If you do it both ways and get different answers, you made a mistake somewhere.
 
  • #19
I pointed out your error a week ago in post #6.
 
  • #20
Thanks, it has been resolved now. But interestingly Wolframalpha gives an "exact" solution for one substitution but not the other.

http://www.wolframalpha.com/input/?i=[+%281%2F2%29%281*sqrt%289-1^2%29+%2B+9arcsin%281%2F3%29%29+]+-+[+%281%2F2%29%280*sqrt%289-0^2%29+%2B+9arcsin%280%2F3%29%29]

http://www.wolframalpha.com/input/?i=[%28-9%2F2%29%28arccos%281%2F3%29+-+%281*sqrt%289-1^2%29%29%2F9%29]+-+[%28-9%2F2%29%28arccos%280%2F3%29+-+%280*sqrt%289-0^2%29%29%2F9%29]

Interesting.
 
  • #21
flyingpig said:
Why does my book say only use x = asinθ then?
Please check your book again. Does it actually say "only use x= asinθ" or is that just the only example the give?
 
  • #22
HallsofIvy said:
Please check your book again. Does it actually say "only use x= asinθ" or is that just the only example the give?

No, according to Mr. James Stewart, that's all we need to know. He didn't really make a comment on cosine

I got a pdf file, but I don' t know how to upload it so I will just give you the pages in image link

[PLAIN]http://img402.imageshack.us/img402/2497/unlediee.jpg

[PLAIN]http://img27.imageshack.us/img27/8296/unledxg.jpg
 
Last edited by a moderator:
  • #23
flyingpig said:
Evaluate it from 0 to 1

[tex]-9\left [ \frac{\arccos\left ( \frac{x}{3} \right )}{2}- \frac{x\sqrt{9-x^2}}{18} \right ]_{0}^{1} \approx 2.94658[/tex]


[tex]\frac{1}{2}\left [ \sqrt{9-x^2} + 9\arcsin\left(\frac{x}{3} \right ) \right ]_{0}^{1} \approx 1.433[/tex]

They give different answers.
These look as though they should give the same answer. The first one is:
[tex]-9\left [ \frac{\arccos\left ( \frac{x}{3} \right )}{2}- \frac{x\sqrt{9-x^2}}{18} \right ]_{0}^{1}=\frac{1}{2}\left [-9 \arccos\left ( \frac{x}{3} \right )+ x\sqrt{9-x^2} \right ]_{0}^{1}[/tex]

Then as pointed out previously: You are missing an x in the second one. It should be:

[tex]\frac{1}{2}\left [ x\sqrt{9-x^2} + 9\arcsin\left(\frac{x}{3} \right ) \right ]_{0}^{1}[/tex]

Since arcsin(u) + asccos(u) = π/2, the two expressions should give the same result.

So, in answer to the question in the title of this thread, There's nothing wrong with using x = a cos(θ)
 
  • #24
But there is something wrong with Mr.Stewart. Thank you everyone.
 
  • #25
Well I'm not sure Mr. Stewart is exactly wrong as he is simply giving one method that works. If you noticed that there's basically no difference between sin and cos for all intents and purposes, then hats off to you! ;)
 

What is x in the equation x = acosθ?

X represents the length of the side adjacent to the angle θ in a right triangle.

Why is the inverse cosine function used in this equation?

The inverse cosine function, or acos, is used to find the measure of an angle when given the ratio of the adjacent side to the hypotenuse. In this equation, θ represents the angle for which we are solving.

What does the value of x tell us?

The value of x tells us the length of the side adjacent to the angle θ in a right triangle. This can be useful in solving various geometric problems or in finding missing side lengths in a triangle.

Are there any limitations to using x = acosθ?

Yes, there are limitations to using this equation. It can only be used for right triangles, and the angle θ must be one of the acute angles. Additionally, the value of θ must be known or able to be calculated using other methods.

How does using x = acosθ benefit us in science?

Using x = acosθ can benefit us in science by allowing us to solve for missing side lengths in a right triangle, which may be necessary in various applications such as in physics or engineering. It also allows us to accurately measure and calculate angles in geometric problems.

Similar threads

  • Calculus and Beyond Homework Help
Replies
4
Views
107
  • Calculus and Beyond Homework Help
Replies
3
Views
547
  • Calculus and Beyond Homework Help
Replies
5
Views
670
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
869
  • Calculus and Beyond Homework Help
Replies
22
Views
1K
  • Calculus and Beyond Homework Help
Replies
8
Views
865
Replies
14
Views
994
  • Calculus and Beyond Homework Help
Replies
2
Views
865
  • Calculus and Beyond Homework Help
Replies
3
Views
335
Back
Top