Solving 2nd order ODE in order to get equation for Orbital Trajectory

Click For Summary

Homework Help Overview

The discussion revolves around solving a nonhomogeneous second order ordinary differential equation (ODE) related to orbital trajectories, specifically the equation ##\frac{du^2}{d\theta ^2}+u=\frac{GM}{h^2}##. Participants explore the general solution and its representation in different forms.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • The original poster attempts to solve the ODE using methods such as the associated homogeneous solution and variation of parameters. They express confusion regarding the equivalence of their solution to that presented in a textbook. Other participants suggest that the two forms of the solution may be equivalent through trigonometric identities.

Discussion Status

Participants are actively engaging with the problem, with some providing insights into the equivalence of different solution forms. There is recognition of the potential for multiple interpretations of the problem setup and solution representation.

Contextual Notes

There is a mention of differing classifications of the equation based on the nature of the forcing function, as well as considerations regarding coordinate transformations that could simplify the problem. Some participants express uncertainty about the terminology used in different texts.

Andrea94
Messages
21
Reaction score
8
Homework Statement
Solve a differential equation to obtain trajectory
Relevant Equations
Solve ##\frac{du^2}{d\theta ^2}+u=\frac{GM}{h^2}## for ##u##
I want to solve ##\frac{du^2}{d\theta ^2}+u=\frac{GM}{h^2}## for ##u(\theta)##, where ##\frac{GM}{h^2}=constant##.

The given equation is a nonhomogeneous second order linear DE. I begin by solving the associated homogeneous DE with constant coefficients:

##\frac{du^2}{d\theta ^2}+u=0##​

which has general solution ##u_c=A cos\theta + B sin\theta##.

Now, I use variation of parameters to obtain the general solution to the nonhomogeneous equation. The form of the particular solution is ##u_p=u_1y_1+u_2y_2## where:

##u'_1=\frac{W_1}{W}##

##u'_2=\frac{W_2}{W}##

##W=y_1y'_2-y'_1y_2=cos^2\theta+sin^2\theta##

##W_1=-\frac{GM}{h^2} sin\theta##

##W_2=\frac{GM}{h^2} cos\theta##​

So that

##u_1 = -\frac{GM}{h^2}\int sin\theta d\theta = \frac{GM}{h^2} cos\theta +C_1##

##u_1 = \frac{GM}{h^2}\int cos\theta d\theta = \frac{GM}{h^2} sin\theta +C_2##​

The particular solution is then

##u_p=(\frac{GM}{h^2} cos\theta +C_1)*cos\theta+(\frac{GM}{h^2} sin\theta +C_2)*sin\theta##

##u_p=\frac{GM}{h^2}+C_1cos\theta+C_2sin\theta##​

Combining ##u_c## and ##u_p## to obtain the general solution yields

##u=\frac{GM}{h^2}+C_1cos\theta+C_2sin\theta+A cos\theta+Bsin\theta##

##u=\frac{GM}{h^2}+c_1cos\theta+c_2sin\theta##​

I ran the initial nonhomogeneous DE through an online solver, and got this exact same solution. However, in my book the answer is given as:

##u = C cos(\theta+\delta)+\frac{GM}{h^2}##​

Where ##C## and ##\delta## are integration constants.

Any help on where I have gone wrong here? I hope I have provided all the required information in this post.
 
Physics news on Phys.org
If you apply the angle sum and difference relations, you should be able to see that your solution and the solution in the book are the same. The book has just stated it in a different way. In other words, given your c1 and c2, there are values of C and δ for which the two forms are equal.
 
  • Like
Likes   Reactions: Andrea94
phyzguy said:
If you apply the angle sum and difference relations, you should be able to see that your solution and the solution in the book are the same. The book has just stated it in a different way. In other words, given your c1 and c2, there are values of C and δ for which the two forms are equal.

Ah that's true! Didn't even think about that, thank you.
 
Not having any textbooks by me I am not even sure whether all authors class an equation where the 'forcing function' on the RHS is just a constant, K say, as non-homogeneous. At any rate it is very easily and naturally transformed into a homogeneous one just by changing the variable ##u## into ##y##, ##y=(u-\frac{K}{a_0})##. Then the constant is eliminated,, and all the terms with derivatives p essentially unchanged ##a_{r}\dfrac {d^{ r} u}{ d\theta ^{r}}## = ##a_{r}\dfrac {d^{ r} y}{ d\theta ^{r}}##

This corresponds to a (physically natural) choice of coordinate origin as the equilibrium position of the system. This has the advantage of simplicity - you know you are going to get only sine and not cosine terms in the result. (if you want to choose as origin a point of maximum displacement then you can get only cosine and not sine terms.) It may be good to grasp both the general formulation you have waded through :smile: and the simpler version often practically usable and then preferable.
 
Last edited:
  • Like
Likes   Reactions: Andrea94
epenguin said:
Not having any textbooks by me I am not even sure whether all authors class an equation where the 'forcing function' on the RHS is just a constant, K say, as non-homogeneous. At any rate it is very easily and naturally transformed into a homogeneous one just by changing the variable ##u## into ##y##, ##y=(u-\frac{K}{a_0})##. Then the constant is eliminated,, and all the terms with derivatives p essentially unchanged ##a_{r}\dfrac {d^{ r} u}{ d\theta ^{r}}## = ##a_{r}\dfrac {d^{ r} y}{ d\theta ^{r}}##

This corresponds to a (physically natural) choice of coordinate origin as the equilibrium position of the system. This has the advantage of simplicity - you know you are going to get only sine and not cosine terms in the result. (if you want to choose as origin a point of maximum displacement then you can get only cosine and not sine terms.) It may be good to grasp both the general formulation you have waded through :smile: and the simpler version often practically usable and then preferable.

Yes this is a very meaningful point and I'm glad you brought it up, I should probably have mentioned that the author at the end chose precisely a coordinate system that leads to ##\delta=0## and hence eliminating the occurrence of multiple trigonometric functions, just as you say.
 

Similar threads

Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
8
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
17
Views
3K