MHB Exact equation with trig function

  • Thread starter Thread starter find_the_fun
  • Start date Start date
  • Tags Tags
    Function Trig
find_the_fun
Messages
147
Reaction score
0
Determine whether the given differential equation is exact and if so solve it.

$$(\tan{x}-\sin{x}\sin{y}) dx+\cos{x}\cos{y} dy=0$$

I got [math]\cos{x}\sin{y}+\sec^2{x}=c[/math] but the answer key has [math]-ln|\cos{x}|+\cos{x}\sin{y}=c[/math] where did $$ln$$ come from?
 
Physics news on Phys.org
find_the_fun said:
Determine whether the given differential equation is exact and if so solve it.

$$(\tan(x)-\sin(x)\sin(y)) \, dx+\cos(x)\cos(y) \, dy=0$$

I got [math]\cos(x)\sin(y)+\sec^2(x)=c[/math] but the answer key has [math]-\ln|\cos(x)|+\cos(x)\sin(y)=c.[/math] Where did the $$\ln$$ come from?

So we start out with
$$f_x(x,y)=\tan(x)-\sin(x)\sin(y).$$
Integrating w.r.t. $x$ yields $-\ln|\cos(x)|+\cos(x)\sin(y)$. Then you do the usual differentiation w.r.t. $y$, compare with $\cos(x) \cos(y)$, etc. That's where the logarithm came from.
 
Back
Top