Need help setting up Differential Equation to solve

In summary, the given ODE is not exact and obtaining a special integrating factor seems impossible. Using a substitution method, we are able to simplify the equation to a separable form and solve for the implicit solution. The solution can then be determined using the given initial conditions.
  • #1
Logan Land
84
0
dy/dx = (2y-x+5)/(2x-y-4)
y(1)=1
 
Physics news on Phys.org
  • #2
If we express the given ODE in differential form, we obtain:

\(\displaystyle (2y-x+5)\,dx+(-2x+y+4)\,dy=0\)

It is easy to see by inspection that this is not an exact equation. However, obtaining a special integrating factor seems to be impossible, at least by the technique normally given in an elementary course in ODEs.

So, allow me to ask that you are certain the problem has been copied correctly. :D
 
  • #3
MarkFL said:
If we express the given ODE in differential form, we obtain:

\(\displaystyle (2y-x+5)\,dx+(-2x+y+4)\,dy=0\)

It is easy to see by inspection that this is not an exact equation. However, obtaining a special integrating factor seems to be impossible, at least by the technique normally given in an elementary course in ODEs.

So, allow me to ask that you are certain the problem has been copied correctly. :D
yes I copied it correctly.
Here is an attachment of the sample exam we were given for our test on Thursday
View attachment 3939
 

Attachments

  • MATH-2420-Exam1.pdf
    79.1 KB · Views: 82
  • #4
Okay, let's approach it in the following manner, returning to the original form:

\(\displaystyle \d{y}{x}=\frac{2y-x+5}{2x-y-4}\)

Now, let's let:

\(\displaystyle X=x+a\)

\(\displaystyle Y=y+b\)

and we now have:

\(\displaystyle \d{Y}{X}=\frac{2(Y-b)-(X-a)+5}{2(X-a)-(Y-b)-4}=\frac{2Y-2b-X+a+5}{2X-2a-Y+b-4}\)

And so we find we desire:

\(\displaystyle -2b+a+5=0\)

\(\displaystyle -2a+b-4=0\)

You should find:

\(\displaystyle (a,b)=(-1,2)\)

And this leaves us with:

\(\displaystyle \d{Y}{X}=\frac{2Y-X}{2X-Y}\)

Can you proceed?
 
  • #5
Since several days have passed with no further feedback from the OP, I will finish the problem...

On the right, let's divide each term in the numerator and denominator by $X$ to obtain:

\(\displaystyle \d{Y}{X}=\frac{2\frac{Y}{X}-1}{2-\frac{Y}{X}}\)

Next, we may use the substitution:

\(\displaystyle Y=uX\,\therefore\,\d{Y}{X}=u+X\d{u}{X}\)

And we now have:

\(\displaystyle u+X\d{u}{X}=\frac{2u-1}{2-u}\)

Subtract through by $u$:

\(\displaystyle X\d{u}{X}=\frac{2u-1}{2-u}-u=\frac{2u-1-u(2-u)}{2-u}=\frac{u^2-1}{2-u}\)

Separate variables and use partial fraction decomposition:

\(\displaystyle \left(\frac{1}{u-1}-\frac{3}{u+1}\right)\,du=\frac{2}{X}\,dx\)

Integrating, we obtain:

\(\displaystyle \ln\left|\frac{u-1}{(u+1)^3}\right|=\ln\left|c_1X^2\right|\)

And this implies:

\(\displaystyle \frac{u-1}{(u+1)^3}=c_1X^2\)

Back-substituting for $u$, we have:

\(\displaystyle \frac{\frac{Y}{X}-1}{\left(\frac{Y}{X}+1\right)^3}=c_1X^2\)

\(\displaystyle \frac{X-Y}{\left(X+Y\right)^3}=c_2\)

Back-substitute for $X$ and $Y$:

\(\displaystyle \frac{(x-1)-(y+2)}{\left((x-1)+(y+2)\right)^3}=c_2\)

\(\displaystyle \frac{x-y-3}{\left(x+y+1\right)^3}=c_2\)

Now, use the given initial conditions to find the value of the parameter $c_2$:

\(\displaystyle \frac{1-1-3}{\left(1+1+1\right)^3}=c_2\implies c_2=-\frac{1}{9}\)

Thus, the implicit solution satisfying the given IVP is:

\(\displaystyle \frac{y-x+3}{\left(y+x+1\right)^3}=\frac{1}{9}\)
 

FAQ: Need help setting up Differential Equation to solve

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 to model the rate of change of a system over time. It is commonly used in many fields of science, including physics, engineering, and biology.

How do I set up a differential equation?

The first step in setting up a differential equation is to identify the variables and parameters involved in the system. Next, you will need to determine the order of the equation, which is the highest derivative present. Then, you can use the appropriate rules and techniques to write the equation in its standard form.

What are the different types of differential equations?

There are several types of differential equations, including ordinary differential equations, partial differential equations, and stochastic differential equations. Ordinary differential equations involve one independent variable, while partial differential equations involve multiple independent variables. Stochastic differential equations incorporate randomness into the system.

How do I solve a differential equation?

Solving a differential equation involves finding the function that satisfies the given equation. This can be done analytically, using mathematical techniques such as separation of variables, substitution, or integrating factors. It can also be solved numerically using computer software or methods such as Euler's method or the Runge-Kutta method.

Why are differential equations important in science?

Differential equations are important in science because they allow us to model and understand complex systems and their behavior over time. They are used in a wide range of fields, including physics, chemistry, engineering, and biology, to predict and analyze the behavior of systems and make informed decisions. They are also essential in the development of mathematical models and theories in science.

Back
Top