MHB Is the answer key wrong for this exact equation?

  • Thread starter Thread starter find_the_fun
  • Start date Start date
find_the_fun
Messages
147
Reaction score
0
For the D.E. [math](x-y^3+y^2 \sin{x})dx = (3xy^2+2y \cos{x}) dy[/math] is the solution [math]xy^3+\frac{x^2}{2}+y^2 \cos{x}=c[/math] ? That's what I got but the back of book said $$\frac{x^2}{2}$$ should negative, not positive. How does this happen? I get $$\frac{x^2}{2}$$ from integrating x so where does the negative come from?
 
Last edited:
Physics news on Phys.org
The solution you give (and your book) does not go with the given ODE.
 
MarkFL said:
The solution you give (and your book) does not go with the given ODE.

Ok fixed question.
 
find_the_fun said:
For the D.E. [math](x-y^3+y^2 \sin{x})dx = (3xy^2+2y \cos{x}) dy[/math] is the solution [math]xy^3+\frac{x^2}{2}+y^2 \cos{x}=c[/math] ? That's what I got but the back of book said $$\frac{x^2}{2}$$ should negative, not positive. How does this happen? I get $$\frac{x^2}{2}$$ from integrating x so where does the negative come from?

Well, let's see what we find. I would begin by writing the ODE in standard differential form:

$$\left(x-y^3+y^2 \sin{x} \right)dx+\left(-3xy^2-2y \cos{x} \right)dy=0$$

We can see that the equation is exact, so we take:

$$F(x,y)=\int x-y^3+y^2 \sin{x}\,dx+g(y)$$

$$F(x,y)=\frac{x^2}{2}+xy^2-y^2\cos(x)+g(y)$$

Differentiating with respect to $y$, we find:

$$-3xy^2-2y \cos{x}=2xy-2y\cos(x)+g'(y)$$

Hence:

$$g'(y)=-3xy^2-2xy$$

Thus:

$$g(y)=-xy^3-xy^2$$

Hence, the solution is given implicitly by:

$$\frac{x^2}{2}+xy^2-y^2\cos(x)-xy^3-xy^2=C$$

$$\frac{x^2}{2}-y^2\cos(x)-xy^3=C$$

Which we may arrange as:

$$xy^3-\frac{x^2}{2}+y^2\cos(x)=C$$
 
I personally prefer the method where we perform both integrations then get the final solution by comparing the parts from the previous solutions.

We have

\displaystyle \begin{align*} \frac{\partial F}{\partial x} &= x - y^3 + y^2\sin{(x)} \\ F &= \int{ x - y^3 + y^2\sin{(x)}\,dx} \\ F &= \frac{x^2}{2} - x\,y^3 - y^2\cos{(x)} + g(y) \end{align*}

and

\displaystyle \begin{align*} \frac{\partial F}{\partial y} &= -3x\,y^2 - 2y\cos{(x)} \\ F &= \int{ -3x\,y^2 - 2y\cos{(x)}\,dy} \\ F &= -x\,y^3 - y^2\cos{(x)} + h(x) \end{align*}

Comparing the two solutions, it's clear that the solution has to be \displaystyle \begin{align*} F(x, y) = \frac{x^2}{2} - x\,y^3 - y^2\cos{(x)} + C \end{align*}
 
MarkFL said:
Well, let's see what we find. I would begin by writing the ODE in standard differential form:

$$\left(x-y^3+y^2 \sin{x} \right)dx+\left(-3xy^2-2y \cos{x} \right)dy=0$$

We can see that the equation is exact, so we take:

$$F(x,y)=\int x-y^3+y^2 \sin{x}\,dx+g(y)$$

$$F(x,y)=\frac{x^2}{2}+xy^2-y^2\cos(x)+g(y)$$

Differentiating with respect to $y$, we find:

$$-3xy^2-2y \cos{x}=2xy-2y\cos(x)+g'(y)$$

Hence:

$$g'(y)=-3xy^2-2xy$$

Thus:

$$g(y)=-xy^3-xy^2$$

Hence, the solution is given implicitly by:

$$\frac{x^2}{2}+xy^2-y^2\cos(x)-xy^3-xy^2=C$$

$$\frac{x^2}{2}-y^2\cos(x)-xy^3=C$$

Which we may arrange as:

$$xy^3-\frac{x^2}{2}+y^2\cos(x)=C$$

I see where I made the mistake.

Original equation: $$(x-y^3+y^2\sin{x})dx-(3xy^2+2y\cos{x})dy=0$$

Differentiating with respect to $y$, we find:

$$-3xy^2-2y \cos{x}=2xy-2y\cos(x)+g'(y)$$

I didn't think the minus sign expanded out and had [math]3xy^2+2y \cos{x}[/math] :/
 
Thread 'Direction Fields and Isoclines'
I sketched the isoclines for $$ m=-1,0,1,2 $$. Since both $$ \frac{dy}{dx} $$ and $$ D_{y} \frac{dy}{dx} $$ are continuous on the square region R defined by $$ -4\leq x \leq 4, -4 \leq y \leq 4 $$ the existence and uniqueness theorem guarantees that if we pick a point in the interior that lies on an isocline there will be a unique differentiable function (solution) passing through that point. I understand that a solution exists but I unsure how to actually sketch it. For example, consider a...

Similar threads

Replies
1
Views
1K
Replies
2
Views
2K
Replies
2
Views
2K
Replies
2
Views
2K
Replies
7
Views
3K
Replies
4
Views
1K
Back
Top