Find sin x expressed by a and b

  • Thread starter Thread starter Hans Herland
  • Start date Start date
  • Tags Tags
    Sin
AI Thread Summary
The discussion revolves around calculating sin x given cos x expressed in terms of variables a and b. The initial approach involved using the Pythagorean theorem to derive sin x, leading to the expression sin x = sqrt{(a+b)² - (2√ab)²} / (a+b). Participants suggested utilizing the identity cos² x + sin² x = 1 for a more straightforward solution, resulting in sin x = sqrt{(a² - 2ab + b²)} / (a+b). The conversation also touched on finding sin 2x and cos 2x using the derived values, with emphasis on correctly substituting and simplifying the expressions. Ultimately, the method of using trigonometric identities was affirmed as the most effective approach.
Hans Herland
Messages
17
Reaction score
1

Homework Statement



Firstly, sorry for the probably weird title. I have no idea how to title this problem, but hopefully my explanation is better. =)

Given $$cos x = \frac {2\sqrt{ab}} {a + b},$$ where x is in the first quadrant and a + b ≠ 0, ab > 0.
Calculate sin x expressed by a and b.

Homework Equations



Sine formula
Pythagorean theorem

The Attempt at a Solution



Now I've come up with what I think is a solution, but for some reason it feels weird, and like I'm not thinking correctly when it comes to the task.

I used Pythagorean theorem combined with the information is given in the cos-equation.
If ##2\sqrt{ab}## is a side, B, of a triangle, and ##a + b## is the hypotenuse, then the last side, C, of the triangle should be:

$$C = \sqrt {(a+b)^2-(2\sqrt{ab})^2}$$

Using this in the sine formula, I get the following:

$$sin x = \frac {\sqrt{(a+b)^2-(2\sqrt{ab})^2}} {a+b}$$

So the question is, does this sound like a reasonable answer to this problem, or am I misunderstanding what I'm supposed to do?

Thanks for any help. =)
 
Physics news on Phys.org
Use the identity ##\cos^2 x+ \sin^2 x= 1 ##. This is much easier.

Note that this formula is derived directly from the Pythagorean theorem.

Edit: Your answer seems correct. Redo the exercise with the formula I recommended and notice that it's easier.
 
Last edited by a moderator:
  • Like
Likes Hans Herland
Math_QED said:
Use the identity ##\cos^2 x+ \sin^2 x= 1 ##. This is much easier.

Note that this formula is derived directly from the Pythagorean theorem.

Edit: Your answer seems correct. Redo the exercise with the formula I recommended and notice that it's easier.

Thanks, I have a tendency to redo my assignments wrongly because I felt the original, and often correct, answer was wrong.

I'm a bit unsure as to how to use the ##cos^2 x + sin^2 x## part. For instance, for the next part of this task, I have to find the exact value of ##sin 2x## and ##cos 2x## given that the values of ##a = 4##, and ##b =1##.

For ##sin 2x##, I found a formula that says ##sin 2x = 2 sin x cos x##, where I just added the variables I already found, and ended up with ##\frac {24}{25}##.

However, for ##cos 2x##, the formula says ##cos 2x = 2 cos^2 x - 1##, and so I'm a bit confused as to how both of those would work out with the variables I have. How exactly should I use the variables I have when the formula is either ##cos 2x## or ##cos^2 x##?
 
Hans Herland said:

Homework Statement



Firstly, sorry for the probably weird title. I have no idea how to title this problem, but hopefully my explanation is better. =)

Given $$cos x = \frac {2\sqrt{ab}} {a + b},$$ where x is in the first quadrant and a + b ≠ 0, ab > 0.
Calculate sin x expressed by a and b.

Homework Equations



Sine formula
Pythagorean theorem

The Attempt at a Solution



Now I've come up with what I think is a solution, but for some reason it feels weird, and like I'm not thinking correctly when it comes to the task.

I used Pythagorean theorem combined with the information is given in the cos-equation.
If ##2\sqrt{ab}## is a side, B, of a triangle, and ##a + b## is the hypotenuse, then the last side, C, of the triangle should be:

$$C = \sqrt {(a+b)^2-(2\sqrt{ab})^2}$$

Using this in the sine formula, I get the following:

$$sin x = \frac {\sqrt{(a+b)^2-(2\sqrt{ab})^2}} {a+b}$$

So the question is, does this sound like a reasonable answer to this problem, or am I misunderstanding what I'm supposed to do?

Thanks for any help. =)
The expression under the radical can be simplified in: ##\ \displaystyle sin x = \frac {\sqrt{(a+b)^2-(2\sqrt{ab})^2}} {a+b}##
 
SammyS said:
The expression under the radical can be simplified in: ##\ \displaystyle sin x = \frac {\sqrt{(a+b)^2-(2\sqrt{ab})^2}} {a+b}##

Would that make it: ##sin x = \frac {\sqrt {(a + b)^2 - 4ab}} {a + b}##?

Or maybe it can be shortened into: ##sin x = \frac {\sqrt {a^2 - 2ab + b^2}} {a + b}##
 
Hans Herland said:
Would that make it: ##sin x = \frac {\sqrt {(a + b)^2 - 4ab}} {a + b}##?

Or maybe it can be shortened into: ##sin x = \frac {\sqrt {a^2 - 2ab + b^2}} {a + b}##
Perhaps go further and factor a2 - 2ab + b2 .

Added in Edit:
I didn't notice earlier, but this is just simplifying what you called C .
 
Last edited:
You can simplify things even further in your expression for ##\sin x ## and end up with a nice expression.
##a^2 -2ab + b^2 = \dots ##

Hans Herland said:
Thanks, I have a tendency to redo my assignments wrongly because I felt the original, and often correct, answer was wrong.

I'm a bit unsure as to how to use the ##cos^2 x + sin^2 x## part. For instance, for the next part of this task, I have to find the exact value of ##sin 2x## and ##cos 2x## given that the values of ##a = 4##, and ##b =1##.

For ##sin 2x##, I found a formula that says ##sin 2x = 2 sin x cos x##, where I just added the variables I already found, and ended up with ##\frac {24}{25}##.

However, for ##cos 2x##, the formula says ##cos 2x = 2 cos^2 x - 1##, and so I'm a bit confused as to how both of those would work out with the variables I have. How exactly should I use the variables I have when the formula is either ##cos 2x## or ##cos^2 x##?

Why are you hesistant to use ##\cos^2 x + \sin^2 x = 1##. Just solve it for ##\sin x##:

##\sin x = \pm\sqrt{1 - \cos^2 x}##

Now, as x is in the first quadrant, pick the plus sign as solution as ##\sin x ## is positive whenever ## x \in [0, \pi]##

For ##\cos (2x)##, you know that ##\cos (2x) = 2\cos^2 x - 1## You are given ##\cos x## in terms of a and b, thus substitute that in ##2\cos^2 x - 1##
 
Last edited by a moderator:
  • Like
Likes Hans Herland
Math_QED said:
You can simplify things even further in your expression for ##\sin x ## and end up with a nice expression.
##a^2 -2ab + b^2 = \dots ##
I'll give it a go again later tonight when I'm back from today's lectures.
Math_QED said:
Why are you hesistant to use ##\cos^2 x + \sin^2 x = 1##. Just solve it for ##\sin x##:

My problem here is that I'm not sure how to subsitute in the formula I have for ##sin x## when we're talking about ##sin^2 x##. Is ##sin^2 x## the same as ##(\frac {\sqrt {a^2 + ab + b^2}} {a + b})^2##?
 
Thus, I'll go into detail and write out every single step. Your work here is to understand every single step. That really is the only way to learn mathematics. If you have any question, don't hesitate to ask.

We have ##\cos^2 x + \sin^2 x = 1##
##\Rightarrow \sin^2 x = 1 - \cos^2 x##
##\Rightarrow \sin x = \pm\sqrt{1 - \cos^2 x}##

Given that ##x \in [0, \frac{\pi}{2}]## (first quadrant), we pick the + sign (as ## \sin x ## is positive there)

##\Rightarrow \sin x = \sqrt{1 - \cos^2 x}## (1)

But, we have ##\cos x = \frac{2\sqrt{ab}}{a+b}##. Substituting this in (1) we get:

##\sin x = \sqrt{1 - (\frac{2\sqrt{ab}}{a+b})^2} = \sqrt{\frac{(a+b)^2 - 4ab}{(a+b)^2}}##
##= \sqrt{\frac{a^2 - 2ab + b^2}{(a+b)^2}} = \frac{\sqrt{a^2 - 2ab + b^2}}{|a+b|}##

Since we are given that ##x \in [0, \frac{\pi}{2}]##, we obtain, because ##\cos x = \frac{2\sqrt{ab}}{a+b} ## must be positive that ##a + b > 0##

And thus, we are left with :

##\sin x = \frac{\sqrt{a^2 - 2ab + b^2}}{a+b}##

Now, you can still factor ##a^2 - 2ab + b^2## and end up with a nice expression without square root.

I'm sure you can take care of the problems with the ##\sin (2x)## and ##\cos (2x)## yourself now.
 
Last edited by a moderator:
  • Like
Likes Hans Herland
  • #10
Math_QED said:
Thus, I'll go into detail and write out every single step. Your work here is to understand every single step. That really is the only way to learn mathematics. If you have any question, don't hesitate to ask.

This is really detailed, and well explained. This makes a lot more sense than the notes our lecturer uses. =)

I understand what you mean with ##cos^2 x + sin^2 x = 1##, and it is a lot easier. There's only one part of the equation I'm a bit confused with in your method:

##sin x = \sqrt {1 - (\frac {2 \sqrt {ab}} {a+b})^2 } = \sqrt { \frac {(a+b)^2-4ab} {(a+b)^2}}##

Where did the ##1 -## go? It seems to change into ##(a+b)^2##, but I fail to see exactly where you get that from? The end result is the same that I got with my, more lengthy, version.

In the end, I factor ##a^2 - 2ab + b^2## and end up with ##sin x = \frac {a - b} {a + b}##

And using this, I was able to do the ##sin(2x)## and ##cos(2x)## problem as well.

Thank you again for your time. I find calculus challenging, but rewarding. =)
 
  • #11
This is really detailed, and well explained. This makes a lot more sense than the notes our lecturer uses. =)

I understand what you mean with ##cos^2 x + sin^2 x = 1##, and it is a lot easier. There's only one part of the equation I'm a bit confused with in your method:

##sin x = \sqrt {1 - (\frac {2 \sqrt {ab}} {a+b})^2 } = \sqrt { \frac {(a+b)^2-4ab} {(a+b)^2}}##

Where did the ##1 -## go? It seems to change into ##(a+b)^2##, but I fail to see exactly where you get that from? The end result is the same that I got with my, more lengthy, version.

Well,

##1 - (\frac {2 \sqrt{ab}} {a+b})^2 = 1 - \frac{4ab}{(a+b)^2} = \frac{(a+b)^2}{(a+b)^2} - \frac{4ab}{(a+b)^2} = \frac{(a+b)^2 - 4ab}{(a+b)^2}##

In the end, I factor ##a^2 - 2ab + b^2## and end up with ##sin x = \frac {a - b} {a + b}##

Well, this is almost correct. It's a common mistake.

What is ##\sqrt{(a-b)^2}## equal to?

And using this, I was able to do the ##sin(2x)## and ##cos(2x)## problem as well.

Very good.

Thank you again for your time. I find calculus challenging, but rewarding. =)

I'm glad I could help.
 
Back
Top