\(\cfrac{cos^2y}{x}dy+\cfrac{cos^2x}{y}dx =0\)
∴ y cos2y dy + x cos2x dx = 0
∴ x(1 + cos 2x) dx + y(1 + cos 2y) dy = 0
∴ x dx + x cos 2x dx + y dy+ y cos 2y dy = 0
Integrating both sides, we get
∫x dx + ∫y dy + ∫x cos 2x dx + ∫y cos 2y dy = c1 ……..(1)
Using integration by parts
Similarly,
Multiplying throughout by 4, this becomes 2x2 + 2y2 + 2x sin 2x + cos 2x + 2y sin 2y + cos 2y = 4c1
∴ 2(x2 + y2 ) + 2(x sin 2x + y sin 2y) + cos 2y + cos 2x + c = 0, where c = -4c1
This is the general solution.