Finding an Exact Solution for (x+2)sin(y)dx + xcos(y)dy = 0

  • Thread starter Thread starter Jamin2112
  • Start date Start date
Jamin2112
Messages
973
Reaction score
12

Homework Statement



Solve (x+2)sin(y)dx + xcos(y)dy = 0 by finding an integrating factor u(x).


Homework Equations



I'll bring them in as I solve.

The Attempt at a Solution



I assume there's some parent function ƒ(x,y)=c.

---> ∂ƒ/∂x, ∂ƒ/∂y=0

Now I'll just put it into the form M(x,y) + N(x,y)dy/dx = 0.

(x+2)sin(y) + xcos(y)dy/dx = 0.

An integrating factor is just some multiplied by the equation that helps us solve it. In this case I want ∂M/∂y=∂N/∂x, so I'll just modify M and N by multiplying them by a function of x (because the problem says to use u(x)).

∂/∂y [u(x)(x+2)sin(y)] = ∂/∂x [u(x)xcos(y)]

-----> u(x)(x+2)cos(y) = [u(x)*1+x*u'(x)]cos(y) (product rule used on x terms)

------> u(x)(x+2)=u(x)+x*u'(x)

------>u(x)(x+1)=x*u'(x)

------> u'(x)/u(x) = 1 + 1/x

------> d/dx ln|u(x)| = 1 + 1/x

-------> ln|u(x)| = x + ln|x| + K

--------> u(x) = exeln|x| (Don't need constant ek)

----------> u(x) = xex

----------> ∂/∂y [xex(x+2)sin(y)] = ∂/∂x [xexxcos(y)]

-----------> ∂M/∂y=∂N/∂x. Mission Accomplished. Almost.

-----------> (x2ex + 2xex)sin(y) + x2excos(y) dy/dx = 0.

Integrate ∂ƒ/∂y with respect to y.

-------------> ƒ(x,y) = -x2exsin(y) + g(x)

-------------> ∂f/∂x = -(2x + x2)exsin(y) + g'(x) = (x2ex + 2xex)sin(y).

But wait! This is supposed to cancel out the y terms; it doesn't.

Help, please!
 
Physics news on Phys.org
You have the wrong sign on the first term. The integral of cosine is +sine.
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top