How to solve a differential equation using polar coordinate substitution?

In summary, the equation for the path of a light beam would be y' = - y / ( (x^2 + y^2)^1.5 ), where y is the position and velocity of the light beam at any given time.
  • #1
cefarix
78
0
How would I solve the differential equation y' = - y / ( (x^2 + y^2)^1.5 ) ? Btw, its not a homework prob... thanks
 
Physics news on Phys.org
  • #2
I would try a change of variable into polar coordinates (based on the x²+y² term)
 
  • #3
I'm very new to differential equations...could you show me how that would go along? So far I've figured out it would be of the form y' = ( sin theta ) / r^2, but can we replace y' by tan theta?
 
  • #4
can we replace y' by tan theta?

It's not quite that simple. First, you need to realize that everything is now a function of θ, so you're going to have to do things like the chain rule.


Notice, for example, that:

[tex]
\frac{dx}{d\theta} = \frac{d}{d\theta} (r \cos \theta)
= -r \sin \theta + \frac{dr}{d\theta} \cos \theta
[/tex]

Can you figure out a way to rewrite dy/dx now?
 
  • #5
cefarix said:
Btw, its not a homework prob... thanks

The idea behind moving homework questions to the Homework section is to clear up the Math section for discussion of mathematical topics, without having this kind of step-by-step help discussions hanging around. While this may not be a homework problem that was assigned to you, it looks just like one, and it is handled just like one, so it really should be posted there.
 
  • #6
I get [tex]\frac{dy}{dx} = - \frac{r \cos \theta + \frac{dr}{d\theta} \sin \theta}{r \sin \theta + \frac{dr}{d\theta} \cos \theta}[/tex]
Plugging that into [tex]\frac{dy}{dx} = - \frac{\sin \theta}{r^2}[/tex] gets me the equation [tex]\frac{r \cos \theta + \frac{dr}{d\theta} \sin \theta}{r \sin \theta + \frac{dr}{d\theta} \cos \theta} = \frac{\sin \theta}{r^2}[/tex] which I have no idea how to solve :cry:
 
  • #7
(1) I think you have sign errors.
(2) You could cross multiply, at least.
(3) I don't see how to finish it off either. :frown:
 
  • #8
Well if [tex]\frac{dx}{d\theta} = \frac{d}{d\theta}r \cos \theta[/tex] then [tex]\frac{dy}{d\theta} = \frac{d}{d\theta}r \sin \theta = r \cos \theta + \frac{dr}{d\theta} \sin \theta[/tex]. That gives me [tex]\frac{dy}{dx} = \frac{dy}{d\theta}\frac{d\theta}{dx}[/tex]. I assume that [tex]\frac{d\theta}{dx} = \frac{1}{\frac{dx}{d\theta}}[/tex] or would it rather be the negative reciprocal? Also I tried cross multiplying on paper, and couldn't make sense out of the resulting mess either :frown:
 
  • #9
But what you've written in post #6 is not (dy/d&theta) / (dx/dθ) because of the sign error.
 
  • #10
what sign error?
 
  • #11
Here is your sign error.

cefarix said:
[tex]\frac{dy}{dx} = - \frac{r \cos \theta + \frac{dr}{d\theta} \sin \theta}{r \sin \theta + \frac{dr}{d\theta} \cos \theta}[/tex]

Should be:

[tex]\frac{dy}{dx} = \frac{r \cos \theta + \frac{dr}{d\theta} \sin \theta}{-r \sin \theta + \frac{dr}{d\theta} \cos \theta}[/tex]
 
  • #12
Using Hurkyl's substitution, I can get it down to:

[tex](r-rCos(2\theta)-2r^3Cos(\theta))d\theta-(2r^2Sin(\theta)+Sin(2\theta))dr=0[/tex]

but no further.

Edit: corrected first term: r^2 to r
 
Last edited:
  • #13
Tom Mattson said:
The idea behind moving homework questions to the Homework section is to clear up the Math section for discussion of mathematical topics, without having this kind of step-by-step help discussions hanging around. While this may not be a homework problem that was assigned to you, it looks just like one, and it is handled just like one, so it really should be posted there.

You know what? I think I made a mistake moving this thread--sorry. When I initially looked at it I assumed that it would have a quick, closed-form solution. But it's clear now that that is not the case, and that this could lead to an interesting mathematical discussion. So, I'm sending it to Differential Equations.

So, cefarix, if we can't get a closed form solution to this, then do you have any initial conditions by which we might get a numerical solution? And just out of curiosity, how did you come upon this equation?
 
  • #14
Oh I see the sign error...I was accidentally multiplying the whole thing by -1 instead of just the r sin theta term...As for how I come upon the equation:

I'm trying to make a model of the path a light beam would take by a non-moving point mass, according to the principles of my own unified theory. Basically, I am treating spacetime as a 4-dimensional medium with varying density, and masses path's are bent by density changes. Taking an at-rest point mass and using a light beam simplifies calculations by making the problem symmetrical, and having to deal with only a single plane within space and being able to ignore the time-like density changes (akin to ignoring time-like curvature in GR). I figured if I modeled the acceleration as inversely proportional to the square of the distance, and pointing towards the mass, I could write up a differential equation and integrate it to get the path of the light beam. The different solutions would correspond to different initial starting positions and angles of the beam. According to the principles of the theory, the light beam would have an initial magnitude of velocity inversely proportional to the magnitude of the acceleration at that point. I'm not explaining why here, as this probably isn't the right place to do so, but I could explain to you elsewhere if you like.
 
  • #15
Well if no one can offer an analytical approach, I have some questions about the qualitative behavior of the numerical solution.

[tex]y^{'}=\frac{-y}{(x^2+y^2)^{3/2}};\quad y(0)=y_0[/tex]

The plots below are for [itex]y_0[/itex]=2, 1.5, and 1 respectively. Just looking at the ODE from a qualitative perspective, the plots exhibit an expected behavior:

The slope is initially negative because of the numerator and thus the plot decreases. But eventually the squares in the denominator build up making the slope smaller and smaller causing the value of y to change less and less. As x goes to infinity, the slope monotonically goes to zero. These are my questions:

1. Is the x-axis an asymptote for these cases or does it reach an asymptote before this?

2. Is the answer to (1) dependent on the initial value of y?

3. Are there some initial (positive) values of y which cause the solution to dip below the x-axis?

I don't know how to answer definitively (1) and (2). For [itex]y_0[/itex] small, say 0.1 or 0.2, the numerical plots appear to dip below the x-axis but I'm skeptical and would like to see a more rigorous answer.

Interested?
 

Attachments

  • pt1.JPG
    pt1.JPG
    3.6 KB · Views: 381
  • pt3.JPG
    pt3.JPG
    3.1 KB · Views: 387
  • pt2.JPG
    pt2.JPG
    3.7 KB · Views: 401
Last edited:
  • #16
It doesn't look like the x-axis is the asymptote for those plots.


I don't really know if this approach is kosher, but...

I made the change of variable:

y → y(t) / z(t)
x → x(t) / w(t)

from which I get the differential equation:

[tex]
(y' z - y z') (x^2 z^2+ y^2 w^2)^{3/2} = (x'w - xw') z^4 y w
[/tex]

where differentiation is with respect to t.

Now, notice that when w(a) = 0 (corresponding to infinite x in the original problem), I can satisfy the differential equation

y'z - yz' = 0

Or equivalently,

y = Kz

meaning that the original y(t) is roughly the constant K when t is near a.
 
  • #17
I've gotten a consistency check:

I tried this change of variables:

y = 2 p q
x = p² - q²

In the resulting DE, if I make the hypothesis that either p or q is really large, and kill off the lower order terms, then you can solve the asymptotic form to get pq = K, or that y is again just some arbitrary constant.
 
  • #18
Hurkyl said:
It doesn't look like the x-axis is the asymptote for those plots.


I don't really know if this approach is kosher, but...

I made the change of variable:

y → y(t) / z(t)
x → x(t) / w(t)

from which I get the differential equation:

[tex]
(y' z - y z') (x^2 z^2+ y^2 w^2)^{3/2} = (x'w - xw') z^4 y w
[/tex]

where differentiation is with respect to t.

Now, notice that when w(a) = 0 (corresponding to infinite x in the original problem), I can satisfy the differential equation

y'z - yz' = 0

Or equivalently,

y = Kz

meaning that the original y(t) is roughly the constant K when t is near a.

Thanks Hurkyl. That's an interesting approach. Seems though the actual asymptote cannot be determined analytically without the analytical solution in hand.
 
  • #19
Well, I have no proof that these are not spurious solutions. :frown: It takes quite a bit of work to show by this method that in y'=-y/x that y→0 as x→∞.

Incidentally, the motivation is to pass from the real line to the projective line, so that infinity is an actual point. The usual way to coordinatize the real line is by pairs (u : v) (not both zero), and define that (u : v) = (ku : kv) for any nonzero k.

So going back to the real line, when v is not zero, you can map (u : v) → u/v... when v is zero, that corresponds to the point at infinity. That is what motivated my transformation.
 
  • #20
Can someone show me a particular solution of the two equations y' = -y/((x^2+y^2)^1.5) and x' = -x/((x^2+y^2)^1.5)?
 
  • #21
cefarix said:
Can someone show me a particular solution of the two equations y' = -y/((x^2+y^2)^1.5) and x' = -x/((x^2+y^2)^1.5)?

Not sure what you mean. I posted three particular solutions to the first equation above (numerically determined but particular nevertheless). What's with the x'? With respect to y or a coupled system with respect to t?
 
  • #22
If "t" is the independent variable, cefarix' problem cries out for a substitution of the dependent variables to polar coordinates.
 
  • #23
Now that I think about it, I think it would be best modeled as dy/dt and dx/dt.
 
  • #24
On further reflection, just find the equation for dy/dx.
 
  • #25
I'm not sure if dy/dx would be the correct form, because then I wouldn't be able to find out the time-dependent equation.
 
  • #26
cefarix said:
I'm not sure if dy/dx would be the correct form, because then I wouldn't be able to find out the time-dependent equation.
If you're not satisfied with that, do the polar coordinate substitution of the dependent variables.
you'll readily find that the radial variable decreases linearly with time, and the angle is constant. This is, of course, under assumption that r(0) is different from zero.
 

Related to How to solve a differential equation using polar coordinate substitution?

1. What is a differential equation?

A differential equation is a mathematical equation that expresses the relationship between a function and its derivatives. It involves variables, constants, and functions that are related to each other by derivatives.

2. What is the purpose of a differential equation?

The purpose of a differential equation is to model and solve real-world problems that involve rates of change. Differential equations are used in various fields such as physics, engineering, economics, and biology to describe the behavior of systems over time.

3. How do you solve a differential equation?

The method for solving a differential equation depends on its type. There are several techniques, such as separation of variables, integrating factors, and substitution, that can be used to solve different types of differential equations. In some cases, a differential equation may also be solved numerically using computer software.

4. What are the applications of differential equations?

Differential equations have numerous applications in various fields of science and engineering. They are used to model physical phenomena such as motion, heat transfer, and population growth. In engineering, differential equations are used to design and analyze systems such as circuits, control systems, and structures.

5. Are there different types of differential equations?

Yes, there are several types of differential equations, including ordinary differential equations, partial differential equations, and stochastic differential equations. These types differ in the number of independent variables, the types of functions involved, and the methods used to solve them.

Similar threads

  • Differential Equations
Replies
2
Views
1K
  • Differential Equations
2
Replies
52
Views
871
  • Differential Equations
Replies
1
Views
1K
  • Differential Equations
Replies
2
Views
2K
  • Differential Equations
Replies
1
Views
1K
  • Differential Equations
Replies
3
Views
1K
  • Differential Equations
Replies
1
Views
941
  • Differential Equations
Replies
27
Views
2K
Replies
6
Views
2K
  • Differential Equations
Replies
8
Views
534
Back
Top