Solving Variable Change: Difficulties Understanding ##V(x)## & ##y##

Click For Summary
SUMMARY

This discussion focuses on the complexities of variable changes in the context of Hamiltonian mechanics, specifically addressing the equations for potential energy, V(x), and Hamiltonian, H. The correct forms of these equations are V(x) = (1/2)mω²x² + mgx and H = (p²)/(2m) + V(x). The primary challenge discussed is the transformation of variables, particularly how to eliminate the mgx term by completing the square, leading to the new variable y = x + (g/ω²). The conversation also highlights common errors in LaTeX formatting that can obscure mathematical expressions.

PREREQUISITES
  • Understanding of Hamiltonian mechanics
  • Familiarity with potential energy equations
  • Proficiency in algebraic manipulation
  • Basic knowledge of LaTeX for mathematical expressions
NEXT STEPS
  • Study the process of completing the square in algebra
  • Learn about Hamiltonian mechanics and its applications
  • Explore LaTeX formatting for mathematical expressions
  • Investigate dimensional analysis to correct mathematical errors
USEFUL FOR

Students and professionals in physics, mathematicians dealing with algebraic transformations, and anyone interested in mastering Hamiltonian mechanics and variable changes.

Moolisa
Messages
20
Reaction score
5
Summary: When ##V (x) = \frac 1 2 mω^2x^2 + mgx##
##H=\frac p 2m +V(x)##
Difficulty understanding how these change on variables came about
##y = x+\frac mg mω^2 = x+\frac g ω^2##

Apologies if this is not the appropriate thread. I chose this one because even though it's physics, I'm having issues with what seems to be basic math principles
changin.png

##V (x) = \frac 1 2 mω^2x^2 + mgx##

##y = x+\frac{mg} {mω^2} = x+\frac g ω^2##

So that

##H=\frac p {2m} +\frac 1 2 mω^2y^2 - \frac {mg^2} {2ω^2}##

I don't understand how the variables changed

By the way the solution looks like, I tried

##0= \frac 1 2 mω^2x^2 + mgx##
Rearranged so ##x=-\frac {2mg^2} {mω^2}##

But that is obviously not how to do it

Any help is appreciated, If you can, please tell me what this technique/concept this is, so I can read up on it. I looked up changing variables online but can only find the one for integrations, which I don't think is what this is

[Moderator's note: Moved from a technical forum and thus no template.]
 
Physics news on Phys.org
Moolisa said:
I don't understand how the variables changed
I think the point of the change of variables is to get rid of the ##mgx## term in the Hamiltonian by completing the square. Note that there is no linear ##y## term in the resulting Hamiltonian. As to how to do the change of variables, try this:
1) Solve ##y = x+\frac{mg} {mω^2} = x+\frac g ω^2## for ##x##.
2) Note that adding a constant to ##x## does not change ##p##.
3) Substitute the resulting expression into ##H=\frac {p^2} {2m} +\frac 1 2 mω^2x^2 + mgx##
4) Collect terms.
 
Last edited:
  • Like
Likes   Reactions: PeroK, Delta2 and Moolisa
Moolisa said:
Summary: When ##V (x) = \frac 1 2 mω^2x^2 + mgx##
##H=\frac p 2m +V(x)##
Difficulty understanding how these change on variables came about
##y = x+\frac mg mω^2 = x+\frac g ω^2##

Apologies if this is not the appropriate thread. I chose this one because even though it's physics, I'm having issues with what seems to be basic math principles.
...
Yes, the questions in this thread deal mainly with algebra. However, you do have some typos in your expressions. It looks like most of those result from errors in using LaTeX. Fixing some of these requires knowledge which falls outside the scope of basic algebra. Dimensional Analysis is useful in correcting these. The Second equation, the one for the Hamiltonian, is missing an exponent on ##p##, the momentum. This and many other of your LaTeX coded expressions, fractions in particular, have what look to be errors due to lack of the LaTeX grouping symbols, " { " and " } " . Other expressions toward the bottom of the OP have similar fractions coded correctly .

Your LaTeX code for that initial Hamiltonian expression is, ##H=\frac p 2m +V(x)## .
It should be ##H=\frac {p^2} {2m} +V(x)## , which is rendered as: ## H=\frac {p^2} {2m} +V(x)## .

Similarly, ##y = x+\frac mg mω^2 = x+\frac g ω^2## should be ##y = x+\frac {mg} {mω^2} = x+\frac g {ω^2}##

.
 
  • Like
Likes   Reactions: Moolisa

Similar threads

Replies
8
Views
4K
  • · Replies 15 ·
Replies
15
Views
1K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
679
  • · Replies 3 ·
Replies
3
Views
2K
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
24
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K