Is the answer key wrong for this exact equation?

  • MHB
  • Thread starter find_the_fun
  • Start date
In summary, the book says that \frac{x^2}{2} should be negative, not positive, which is why the solution you give does not match the given ODE.
  • #1
find_the_fun
148
0
For the D.E. \(\displaystyle (x-y^3+y^2 \sin{x})dx = (3xy^2+2y \cos{x}) dy\) is the solution \(\displaystyle xy^3+\frac{x^2}{2}+y^2 \cos{x}=c\) ? That's what I got but the back of book said \(\displaystyle \frac{x^2}{2}\) should negative, not positive. How does this happen? I get \(\displaystyle \frac{x^2}{2}\) from integrating x so where does the negative come from?
 
Last edited:
Physics news on Phys.org
  • #2
The solution you give (and your book) does not go with the given ODE.
 
  • #3
MarkFL said:
The solution you give (and your book) does not go with the given ODE.

Ok fixed question.
 
  • #4
find_the_fun said:
For the D.E. \(\displaystyle (x-y^3+y^2 \sin{x})dx = (3xy^2+2y \cos{x}) dy\) is the solution \(\displaystyle xy^3+\frac{x^2}{2}+y^2 \cos{x}=c\) ? That's what I got but the back of book said \(\displaystyle \frac{x^2}{2}\) should negative, not positive. How does this happen? I get \(\displaystyle \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:

\(\displaystyle \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:

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

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

Differentiating with respect to $y$, we find:

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

Hence:

\(\displaystyle g'(y)=-3xy^2-2xy\)

Thus:

\(\displaystyle g(y)=-xy^3-xy^2\)

Hence, the solution is given implicitly by:

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

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

Which we may arrange as:

\(\displaystyle xy^3-\frac{x^2}{2}+y^2\cos(x)=C\)
 
  • #5
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

[tex]\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*}[/tex]

and

[tex]\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*}[/tex]

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

\(\displaystyle \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:

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

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

Differentiating with respect to $y$, we find:

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

Hence:

\(\displaystyle g'(y)=-3xy^2-2xy\)

Thus:

\(\displaystyle g(y)=-xy^3-xy^2\)

Hence, the solution is given implicitly by:

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

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

Which we may arrange as:

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

I see where I made the mistake.

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

Differentiating with respect to $y$, we find:

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

I didn't think the minus sign expanded out and had \(\displaystyle 3xy^2+2y \cos{x}\) :/
 

FAQ: Is the answer key wrong for this exact equation?

How do I know if the answer key for this equation is wrong?

One way to determine if the answer key is wrong is to check your work and see if you arrived at a different answer. You can also ask your teacher or a fellow student to double-check your work.

What should I do if I think the answer key is wrong?

If you believe the answer key is wrong, you can bring it to the attention of your teacher or professor. They can review the problem and determine if there was a mistake in the answer key.

Can the answer key for an equation be wrong?

Yes, it is possible for the answer key to be wrong. Teachers and professors are human and can make mistakes, or there may have been a typo or error in the answer key.

How can I check if the answer key for this equation is correct?

You can check the answer key by solving the equation yourself and comparing your answer to the one provided in the key. You can also ask for clarification from your teacher or a peer if you are unsure about your answer.

What should I do if the answer key is wrong and my grade is affected?

If your grade is affected by a wrong answer key, you should bring it to the attention of your teacher or professor. They can review your work and make any necessary adjustments to your grade.

Similar threads

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