Solving a differential equation

In summary: Thanks for catching that!In summary, the student attempted to solve a homework equation and was stuck because the answer key factors out x^2 from the first equation. He was able to substitute ##y = x u## and solve for ##u## which yielded a simple DE for ##u##.
  • #1
MarcL
170
2

Homework Statement


Solve (xy+y2+x2) dx -( x2 )dy = 0

Homework Equations


to verify if exact [PLAIN]http://upload.wikimedia.org/math/5/2/c/52cc749bb1c32abf1dccf613bd847a6e.pngM/[B][PLAIN]http://upload.wikimedia.org/math/5/2/c/52cc749bb1c32abf1dccf613bd847a6e.pngy = [PLAIN]http://upload.wikimedia.org/math/5/2/c/52cc749bb1c32abf1dccf613bd847a6e.pngN/[B][PLAIN]http://upload.wikimedia.org/math/5/2/c/52cc749bb1c32abf1dccf613bd847a6e.pngx[/B][/B][/B][/B]

The Attempt at a Solution


So I can see it isn't separable and linear, so I thought of solving it through substitution

i did y=ux and dy= u dx + x du
and I substituted them in my first equation giving me
(xu+u2+x^2) dx - x2(udx + xdu) = 0]

I'm stuck here... the answer key factors out x^2 from the first equation leaving it with x^2(u+u^2+1), which doesn't make sense to me.. because if I factored out x^2 I would be left with (x-1u+x-2u2+1)
So any help on how I am seeing this wrong?
 
Last edited by a moderator:
Physics news on Phys.org
  • #2
## \partial_y M=\partial_y(xy+y^2+x^2)=x+2y ##
## \partial_x N=\partial_x(-x^2)=-2x ##
## \partial_y M \neq \partial_x N! ##
 
  • #3
I know how to verify if exact, hence why I chose substitution, but I am kinda stuck at how to factor my xα. Unless I didn't understand your answer correctly, to me it seems as if you're solving to see whether or not if exact.
 
  • #4
That means your differential isn't exact which means it can't be integrated in this form, so you should turn it into an exact differential. There is such a method in your toolbox which you can't integrate the differential without it. You remember it?
 
  • #5
Well I know I can use substitution to reach a separable equation. If not, I know I can use υ(x,y) and multiply it to my equation. My question was more towards the substitution method because I don't completely grasp the subject.
 
  • #6
By some manipulation, you can get ## y'=\frac{y}{x}+\frac{y^2}{x^2}+1 ##. Now try your substitution!
 
  • #7
I'm sorry, I'm not understanding. why you took the derivative of y. I was taught ( and my book explains) a different way. For instance, we just have to find a coeffiecient of xα to then create a separable DE. anyway, I'll check again later, maybe this will help getting a clearer answer? :/
 
  • #8
## M dx+N dy=0 \Rightarrow N dy=-M dx \Rightarrow \frac{dy}{dx}=- \frac{M}{N}##
 
  • #9
MarcL said:

Homework Statement


Solve (xy+y2+x2) dx -( x2 )dy = 0

Homework Equations


to verify if exact [PLAIN]http://upload.wikimedia.org/math/5/2/c/52cc749bb1c32abf1dccf613bd847a6e.pngM/[B][PLAIN]http://upload.wikimedia.org/math/5/2/c/52cc749bb1c32abf1dccf613bd847a6e.pngy = [PLAIN]http://upload.wikimedia.org/math/5/2/c/52cc749bb1c32abf1dccf613bd847a6e.pngN/[B][PLAIN]http://upload.wikimedia.org/math/5/2/c/52cc749bb1c32abf1dccf613bd847a6e.pngx[/B][/B][/B][/B]

The Attempt at a Solution


So I can see it isn't separable and linear, so I thought of solving it through substitution

i did y=ux and dy= u dx + x du
and I substituted them in my first equation giving me
(xu+u2+x^2) dx - x2(udx + xdu) = 0]

I'm stuck here... the answer key factors out x^2 from the first equation leaving it with x^2(u+u^2+1), which doesn't make sense to me.. because if I factored out x^2 I would be left with (x-1u+x-2u2+1)
So any help on how I am seeing this wrong?


If you substitute ##y = x u## into the DE
[tex] x^2 \frac{dy}{dx} = x^2 + xy + y^2 \; \Rightarrow \frac{dy}{dx} = 1 + \frac{y}{x} + \left(\frac{y}{x}\right)^2[/tex]
the resulting DE for ##u## is very simple and is straightforward to solve.
 
Last edited by a moderator:
  • #10
Yeah it was a stupid mistake, I was going fast and stressing out over an exam. I should've noticed that replacing y = ux into the equation can allow me to factor out x^2 because the function is homogeneous.
 

1. What is a differential equation?

A differential equation is a mathematical equation that describes the relationship between a function and its derivatives. It involves the use of derivatives, which are rates of change, to describe how a function changes over time or in relation to another variable.

2. Why do we need to solve differential equations?

Differential equations are used to model and describe a wide range of phenomena in various fields such as physics, engineering, economics, and biology. By solving differential equations, we can gain a better understanding of these phenomena and make predictions about future behavior.

3. What are the different methods for solving differential equations?

Some common methods for solving differential equations include separation of variables, integrating factors, substitution, and using numerical methods such as Euler's method. The method used depends on the type and complexity of the differential equation.

4. Can all differential equations be solved analytically?

No, not all differential equations can be solved analytically. Some equations may be too complex or have no known analytical solution. In these cases, numerical methods are often used to approximate a solution.

5. How is solving a differential equation useful in real life?

Solving differential equations is essential in many real-life applications, such as predicting population growth, designing electrical circuits, and modeling chemical reactions. It also allows us to understand and make predictions about natural phenomena, such as the motion of objects, weather patterns, and the spread of diseases.

Similar threads

  • Calculus and Beyond Homework Help
Replies
14
Views
382
  • Calculus and Beyond Homework Help
Replies
10
Views
1K
  • Calculus and Beyond Homework Help
Replies
4
Views
938
  • Calculus and Beyond Homework Help
Replies
21
Views
834
  • Calculus and Beyond Homework Help
Replies
10
Views
1K
  • Calculus and Beyond Homework Help
Replies
7
Views
268
  • Calculus and Beyond Homework Help
Replies
2
Views
726
  • Calculus and Beyond Homework Help
Replies
8
Views
758
  • Calculus and Beyond Homework Help
Replies
5
Views
2K
  • Calculus and Beyond Homework Help
Replies
12
Views
1K
Back
Top