Solving Q4(b) of Homework 3: Finding cosx=cosy

  • Thread starter Thread starter athrun200
  • Start date Start date
  • Tags Tags
    Homework
Click For Summary

Homework Help Overview

The discussion revolves around solving a problem from a homework assignment that involves finding critical points of a function defined in terms of two variables, specifically leading to the equation cos(x) = cos(y). Participants are exploring the implications of this equation within a specified range for x and y.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants discuss setting the partial derivatives to zero, leading to the equation cos(x) = cos(y). There are inquiries about the implications of this equation and how to approach solving it. Some participants suggest using trigonometric identities and properties of the cosine function to explore possible solutions.

Discussion Status

The discussion is active with various approaches being explored. Participants are questioning assumptions and clarifying concepts related to trigonometric identities. There is no explicit consensus yet, but several lines of reasoning are being developed regarding the relationship between x and y.

Contextual Notes

Participants note the constraints of the problem, specifically that solutions must be found within the range 0 < x, y < π. There is also mention of the periodic nature of the cosine function and its implications for finding solutions.

athrun200
Messages
275
Reaction score
0

Homework Statement


Q4(b)
http://www.physics.hku.hk/~phys1315/doc/MPI_HW3.pdf"

Homework Equations





The Attempt at a Solution


After I set fx and fy =0
I get cosx=cosy.
How to solve it?
 
Last edited by a moderator:
Physics news on Phys.org
so I'm assuming f is a function of 2 variables... well what do you know about the cos function?
 
Sorry for my stupid mistake, I have forgotten to upload the question.
Please see question 4(b).

I know about the cos function.
After solving, it should be x=2*Pi*n+y.
However, the question only need to find critial pt within 0<y,x<Pi
 
ok so what do you get for fx and fy?
 
fx=cos(x+y)+cos(x)
fy=cos(x+y)+cos(y)
 
Ys, since both derivatives are 0, you can set them equal to each other and reduce, that is cos(x+y)+ cos(x)= cos(x+y)+ cos(y) reduces to cos(x)= cos(y), but then you still need the equations themselves.

It might help you to know that cos(x+y)= cos(x)cos(y)- sin(x)sin(y). If cos(x)= cos(y) then [itex]sin(x)= \pm sin(y)[/itex]
 
HallsofIvy said:
If cos(x)= cos(y) then sin(x)=±sin(y)
I don't understand this statement...
 
Do you know that [itex]cos^2(x)+ sin^2(x)= 1[/itex]? From that [itex]cos(x)= \pm\sqrt{1- sin^2(x)}[/itex]. That means that cos(x)= cos(y) gives [itex]\sqrt{1- sin^2(x)}= \pm\sqrt{1- sin^2(y)}[/itex]. Squaring both sides, [itex]1- sin^2(x)= 1- sin^2(y)[/itex] so that [itex]sin^2(x)= sin^2(y)[/itex] and, taking the square root again- [itex]sin(x)= \pm sin(y)[/itex].

My purpose in saying that was after using the identity I gave you to reduce cos(x+y)+ cos(x)= 0 to [itex]cos(x)cos(y)- sin(x)sin(y)+ cos(x)= 0[/itex] you can use the fact that cos(x)= cos(y) and either sin(x)= sin(y) or sin(x)= -sin(y) to reduce to an equation in x only:
if sin(x)= sin(y), then [itex]cos^2(x)- sin^2(x)+ cos(x)= 0[/itex] or
if sin(x)= -sin(y), then [itex]cos^2(x)+ sin^2(x)+ cos(x)= 0[/itex]

Now use [itex]sin^2(x)= 1- cos^2(x)[/itex] to reduce those to equations in cos(x) only.
 
Oh no. How complicated the answer is!
I know these trigonometric identities but I never think of I should use them like this.

I would like to ask what is the problem if I solve cos(x)=cos(y) directly?
 
  • #10
You can't. That is a single equation in two variables- there are an infinite number of x, y pairs that satisfy it. y= x= any number is a solution.
 
  • #11
i think we may be over complicating it a bit, so rather than equating fx and fy, how about noticing the following

fx=cos(x+y)+cos(x)=0
gives
cos(x)=-cos(x+y)

similarly for fy
fy=cos(x+y)+cos(y)=0
gives
cos(y)=-cos(x+y)

so it is true that for the above to be satisfied requires cos(x)=cos(y), though that only means fx=fy, not fx=fy=0, which is the overall goal.

however it will be instructive to first consider cos(x)=cos(y), to solve this, consider a graph of cos(x), clearly it repeats on every 2.pi, so if y is s solution, so is y+2.pi

Now confine x to (-pi,pi), there will be 2 solutions to cos(x)=cos(y), clearly y=x and using the fact cos is symmetric cos(y)=cos(-y), gives y=-x.

Thus all the solutions are of the form:
y = x+2.pi
y = -x+2.pi

Now going back to the main requirement for fx=fy=0:
cos(x)=-cos(x+y)
cos(y)=-cos(x+y)

can you do a similar process to find allowable (x,y) pairs?
 
  • #12
lanedance said:
Now going back to the main requirement for fx=fy=0:
cos(x)=-cos(x+y)
cos(y)=-cos(x+y)

can you do a similar process to find allowable (x,y) pairs?
Sorry that I didn't notice your reply.
We can subs y = x+2.pi into cos(x)=-cos(x+y)
By solving we get pi and pi/3

Is it correct?
 

Similar threads

Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 18 ·
Replies
18
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K