Question
Question: Solve: $(cos(x-y))(dx+dy)+(cos(x+y))(dx-dy)=0$...
Solve: (cos(x−y))(dx+dy)+(cos(x+y))(dx−dy)=0

sin(x)=Kcos(y)
Solution
The given differential equation is: (cos(x−y))(dx+dy)+(cos(x+y))(dx−dy)=0
Step 1: Expand and group terms First, expand the equation: cos(x−y)dx+cos(x−y)dy+cos(x+y)dx−cos(x+y)dy=0
Group the terms containing dx and dy: [cos(x−y)+cos(x+y)]dx+[cos(x−y)−cos(x+y)]dy=0
Step 2: Apply trigonometric sum-to-product formulas Use the following trigonometric identities:
- cosA+cosB=2cos(2A+B)cos(2A−B)
- cosA−cosB=−2sin(2A+B)sin(2A−B)
For the dx coefficient, let A=x−y and B=x+y: 2A+B=2(x−y)+(x+y)=22x=x 2A−B=2(x−y)−(x+y)=2−2y=−y So, cos(x−y)+cos(x+y)=2cos(x)cos(−y)=2cos(x)cos(y)
For the dy coefficient, using the same A and B: cos(x−y)−cos(x+y)=−2sin(x)sin(−y)=−2sin(x)(−sin(y))=2sin(x)sin(y)
Substitute these back into the differential equation: [2cos(x)cos(y)]dx+[2sin(x)sin(y)]dy=0
Divide the entire equation by 2: cos(x)cos(y)dx+sin(x)sin(y)dy=0
Step 3: Separate the variables This is a separable differential equation. To separate variables, divide the entire equation by sin(x)cos(y): sin(x)cos(y)cos(x)cos(y)dx+sin(x)cos(y)sin(x)sin(y)dy=0 sin(x)cos(x)dx+cos(y)sin(y)dy=0 cot(x)dx+tan(y)dy=0
Step 4: Integrate both sides Integrate each term with respect to its variable: ∫cot(x)dx+∫tan(y)dy=∫0
Recall the standard integrals: ∫cot(x)dx=ln∣sin(x)∣+C1 ∫tan(y)dy=−ln∣cos(y)∣+C2
So, the integral becomes: ln∣sin(x)∣−ln∣cos(y)∣=C (where C=C3−C1−C2 is an arbitrary constant)
Step 5: Simplify the solution Use the logarithm property lnA−lnB=ln(A/B): lncos(y)sin(x)=C
To remove the logarithm, exponentiate both sides: cos(y)sin(x)=eC
Let eC=K1, where K1 is an arbitrary positive constant. cos(y)sin(x)=K1
This implies cos(y)sin(x)=±K1. Let K=±K1 be an arbitrary non-zero constant. cos(y)sin(x)=K
Rearrange to get the final solution: sin(x)=Kcos(y)
Note: If K=0, then sin(x)=0, which means x=nπ for integer n. Substituting x=nπ into the original equation leads to 0=0, so x=nπ is also a valid solution, which is covered by K=0. Thus, K can be any real constant.
The final solution is sin(x)=Kcos(y).