Can Heun's Method Accurately Predict Small Oscillations of a Nitrogen Atom?

Click For Summary

Discussion Overview

The discussion revolves around the application of Heun's method to compute the period of small oscillations of a nitrogen atom based on a given potential energy function. Participants are exploring the correctness of their calculations and the derivative of the potential energy function.

Discussion Character

  • Homework-related
  • Mathematical reasoning
  • Technical explanation

Main Points Raised

  • One participant presents a potential energy function and attempts to compute its derivative to apply Heun's method, questioning the accuracy of the resulting velocity vs. time graph.
  • Another participant challenges the derivative calculation, suggesting that the notation and assumptions about constants need clarification, particularly regarding the interpretation of Um.
  • There is a suggestion to simplify the potential energy function before taking the derivative, with a recommendation to verify the derivative using computational tools.
  • A participant acknowledges a formatting error and confirms that Um is indeed a constant, stating they used Python for the derivative calculation.
  • Further advice is given to cross-check the Python output against manual calculations or other computational tools to ensure accuracy.

Areas of Agreement / Disagreement

Participants express uncertainty regarding the derivative calculation and its implications for the application of Heun's method. There is no consensus on the correctness of the derivative or the resulting graph.

Contextual Notes

Limitations include potential misunderstandings in the derivative calculation and the need for clearer definitions of constants used in the equations. The discussion does not resolve these issues.

akaPaul
Messages
2
Reaction score
0

Homework Statement


Use the Heun method to compute the period of small oscillations about the equilibrium position of a nitrogen atom.
xi = 1.1
Um = 7.37
x0 = 1.2
alpha = 2.287
m = 2.325e-26

Homework Equations


[/B]
U(x) = Um((1-e^(-alpha(x-x0)))^2 - 1)

The Attempt at a Solution



I was told to take the derivative of dU/dx and got (-1/m)*(2*Um*alpha*(1-e**(-alpha*(x-x0)))*(e**(-alpha*(x-x0)))) and used that to calculate my heun step with a time step of 0.5e-15. With this I get a graph that looks like this:
1XxRKQK.jpg
which is a velocity vs. time graph. I'm wondering if this graph looks correct and if so why? I thought it would turn out to be something more like:
DampedSine.png



 
Physics news on Phys.org
akaPaul said:

Homework Statement


Use the Heun method to compute the period of small oscillations about the equilibrium position of a nitrogen atom.
xi = 1.1
Um = 7.37
x0 = 1.2
alpha = 2.287
m = 2.325e-26

Homework Equations


[/B]
U(x) = Um((1-e^(-alpha(x-x0)))^2 - 1)

The Attempt at a Solution



I was told to take the derivative of dU/dx and got (-1/m)*(2*Um*alpha*(1-e**(-alpha*(x-x0)))*(e**(-alpha*(x-x0)))) and used that to calculate my heun step with a time step of 0.5e-15. With this I get a graph that looks like this:
1XxRKQK.jpg
which is a velocity vs. time graph. I'm wondering if this graph looks correct and if so why? I thought it would turn out to be something more like:
DampedSine.png


If ##U(x) = U_m((1-e^{(-alpha(x-x0)))^2 - 1)}##, it's not clear how you calculated

$$U'(x) = (-1/m)*(2*Um*alpha*(1-e^{(-alpha*(x-x0)))}*(e^{(-alpha*(x-x0)))}))$$

I'm assuming that ##U_m## is a constant and not ##U ⋅ m##.

You might want to use some substitutions in the original expression for U(x) to simplify its form before taking the derivative. I would check the derivative using a tool like Wolfram Alpha before writing code with it.
 
SteamKing said:
If ##U(x) = U_m((1-e^{(-alpha(x-x0)))^2 - 1)}##, it's not clear how you calculated

$$U'(x) = (-1/m)*(2*Um*alpha*(1-e^{(-alpha*(x-x0)))}*(e^{(-alpha*(x-x0)))}))$$

I'm assuming that ##U_m## is a constant and not ##U ⋅ m##.

You might want to use some substitutions in the original expression for U(x) to simplify its form before taking the derivative. I would check the derivative using a tool like Wolfram Alpha before writing code with it.
Yea sorry about my bad formatting you're right it is a constant and I used python to compute the derivative.
 
akaPaul said:
Yea sorry about my bad formatting you're right it is a constant and I used python to compute the derivative.
I'm not sure how you do that, but I would check the derivative which Python gave against a pencil and paper derivative or Wolfram Alpha.
 

Similar threads

Replies
2
Views
2K
Replies
4
Views
3K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 1 ·
Replies
1
Views
18K
  • · Replies 7 ·
Replies
7
Views
7K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 19 ·
Replies
19
Views
19K