Introduction to Solving Differential Equations: Finding a New Variable

Click For Summary

Homework Help Overview

The problem involves solving the differential equation y'=(y-x)², where participants are exploring the concept of finding a new variable to facilitate separation of variables in the equation.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning, Problem interpretation

Approaches and Questions Raised

  • Participants discuss the idea of introducing a new variable, with suggestions including z = y - x. There are questions about the implications of this substitution and how it affects the form of the equation. Some express uncertainty about the integration process and the correct application of partial fractions.

Discussion Status

The discussion is ongoing, with participants providing hints and suggestions for substitutions and integration techniques. There is a mix of interpretations regarding the steps to take after substitution, and some participants are clarifying misunderstandings about the relationships between the variables.

Contextual Notes

Participants are navigating the complexities of differential equations, including the need for proper substitutions and the challenges of integrating after making those substitutions. There is a recognition of the importance of checking work and understanding the underlying concepts.

Lindsayyyy
Messages
215
Reaction score
0
Hi


Homework Statement



[tex]y'=(y-x)^{2}[/tex]


Homework Equations





The Attempt at a Solution



I have nearly no idea in order to solve this solution. One hint is given: We shall find a new variable which makes it possible to separate the differential equation afterwards.
I'm not sure what's meant by "new variable". Shall I just find something cmpletly new, like let's call it z, or an addition like +x or *x etc.(just for example, I know this specific example doesn't work)?

Thank you for your help
 
Physics news on Phys.org
First thing I can suggest is posting this in the right place. Differential equations are definitely NOT precalculus
 
Lindsayyyy said:
Hi

Homework Statement



[tex]y'=(y-x)^{2}[/tex]

Have you studied homogeneous functions? Your right side is homogeneous of degree 2 so try changing the dependent variable from y to u by y = ux.

[Edit:] Never mind this suggestion. When the equation is put in the form Mdx + Ndy = 0 not both M and N are homogeneous.
 
Last edited:
Since it is the fact that it is y- x that is squared and not just x or y that is the problem, let z= y- x. Then z'= y'- 1 so that y'= z'+ 1= z^2. z'= z^2- 1.
 
Last edited by a moderator:
When you get the answer, make sure you check it by taking the derivative - it's really cool how it works out! :)
 
do the subst:
[tex] z(x) = y(x) - x[/tex]
Then the variables in the new equation can be separated.
 
I'm still unsure.

I tried the following, I took the substition from HallsofIvy

[tex]y'=z^{2}-1[/tex]

Shall I just integrate both sides now? I think this doesn't work, as I still have y and x after the integration on one side.

And I wonder about the following:

I have [tex]y'=z^{2}-1[/tex] but when I say I substitute [tex]x-y=z[/tex] and insert it in my given equation I have [tex]y'=z^{2}[/tex] :mad:
 
I think you misunderstood. The equation HallsofIvy got to is

[tex]z' = z^2 - 1[/tex]

Not y'.
 
You performed the substitution incorrectly. If z = y - x, take d/dx of both sides: dz/dx = dy/dx - 1. Since dy/dx = (y - x)^2 = z^2, we have dz/dx = z^2 - 1.

Now, separate variables and use partial fractions. To separate variables, integrate both sides of f(z) dz = g(x) dx. :)
 
  • #10
Thank you, just to make sure I didn't do any mistakes thus far. I have to do the partial fraction with the following:

[tex]x= \int \frac1 {z^{2}-1} dz[/tex]
 
  • #11
Yes. For simplicity's sake, I'd put your constant of integration (+ C) on the x side.
 
  • #12
Wow, it's really embarrassing right now.

My partial fraction looks like:

[tex]\frac 1 {z^{2}-1} = \frac A {z-1} + \frac B {z+1}[/tex]
[tex] A= \frac 1 2[/tex]
[tex] B= -\frac1 2<br /> [/tex]

Now I tried to integrate

[tex] <br /> x=\frac1 2 \int{\frac 1 {z-1}}dz - \frac 1 2 \int{\frac 1 {z+1}}dz[/tex]

getting:

[tex]2x+2c = ln(z-1)-ln(z+1)[/tex]

but the z gets lost when I *exp on both sides. Where's my mistake. It's so frustrating :cry:
 
  • #13
Don't fret. Recall that ln(a) + ln(b) = ln(ab) and ln(a) - ln(b) = ln(a/b).

Also, when you take the exponential of 2x + 2C, let A = e^(2C) for simplicity. Your left side should be Ae^(2x).
 
  • #14
Thanks for the help and patience :biggrin:

my solution looks like this:

I used the ln calculation rule:

whereas, as you said, my A=exp(2c)

[tex]z=\frac {1-A-e^{2x}} {-1+A+e^{2x}}[/tex]

the only step I have to do now is to resubstitute z with [tex]z= x-y[/tex]

and solve the equation, bringing y on one side, which would look like this:

[tex]y=\frac {-1+A+e^{2x}} {1-A-e^{2x}} +x[/tex]

is this correct (and the final answer) ?
 
  • #15
No, but close. For any base k > 0, k^(a + b) does not equal k^a + k^b; it equals (k^a)(k^b).

Also, we set z = y - x, not z = x - y.
 
  • #16
I should really try to concentrate some more :smile:

Another attempt, A=exp(2c) like before

final equation looks like:

[tex]y =\frac{-1-Ae^{2x}} {-1+Ae^{2x}}+x[/tex]
 
  • #17
Yes! Well done. One more thing: you could decimate the abundance of minus signs (*shudder*) by multiplying with -1/-1 to get
[tex]y = \frac{1 + Ae^{2x}}{1 - Ae^{2x}} + x[/tex]
as your final answer.

As an exercise, you should find y' and see that it does indeed equal (y - x)2. See post #5 :)
 
  • #18
Thank you very much :smile:
I'll try that, I tried it for the specific A=0 because that worked quite fast, but I'll do it generally and see how it works. I really need some practice with differential equations.
 

Similar threads

Replies
10
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
7
Views
2K
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 27 ·
Replies
27
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K