Rational Chebyshev Collocation Method For Damped Harmonic Oscilator

Click For Summary
SUMMARY

The discussion focuses on solving the damped harmonic oscillator using the Rational Chebyshev Collocation Method, specifically the equation $$\frac{d^2x}{dt^2}+3\frac{dx}{dt}+x=0$$ with initial conditions $x(0)=3$ and $\frac{dx}{dt}=0$. The user references "Chebyshev and Fourier Spectral Methods" by John P. Boyd, noting that the solution converges to zero as time approaches infinity. A suggestion is made to consider using a Fourier basis instead of Chebyshev due to the boundary conditions of the problem. The characteristic polynomial $$\lambda^2 + 3\lambda +1=0$$ is also discussed, providing roots that can be used to form the general solution.

PREREQUISITES
  • Understanding of Ordinary Differential Equations (ODEs)
  • Familiarity with Rational Chebyshev functions
  • Knowledge of spectral methods in numerical analysis
  • Basic concepts of boundary value problems
NEXT STEPS
  • Study the application of Fourier basis in solving boundary value problems
  • Explore the implementation of the Rational Chebyshev Collocation Method in numerical simulations
  • Review the analytical solutions of damped harmonic oscillators for comparison
  • Investigate the convergence properties of Chebyshev and Fourier spectral methods
USEFUL FOR

Mathematicians, physicists, and engineers working on numerical methods for differential equations, particularly those interested in spectral methods and the analysis of damped harmonic oscillators.

Leonardo Machado
Messages
56
Reaction score
2
Hello everyone.

I'm currently trying to solve the damped harmonic oscillator with a pseudospectral method using a Rational Chebyshev basis

$$
\frac{d^2x}{dt^2}+3\frac{dx}{dt}+x=0, \\
x(t)=\sum_{n=0}^N TL_n(t), \\
x(0)=3, \\
\frac{dx}{dt}=0.
$$

I'm using for reference the book "Chebyshev and Fourier Spectral Methods", from John P. Boyd. In this book it is said that if the solution for my ODE converges to zero (or a finite value) as t goes to infinity it can be approximated as a series of Rational Chebyshev functions. I had success in applying this method to solve

$$
\frac{d^2x}{dt^2}-x=0, \\
x(0)=3, \\
x(\inf)=0.
$$

But I'm failing in the problem first presented.Does anyone know if this problem is made to be solved with a Fourier basis instead of Chebyshev? I know that for the Simple Harmonic Oscillator it happens (because of the boundary behavorial condition of oscillation).
 
Physics news on Phys.org
You are making this problem too difficult. The characteristic polynomial of your d.e. is $$\lambda^2 + 3\lambda +1=0\\
\lambda_1=\frac{-3}{2}+\frac{\sqrt{5}}{2}\\
\lambda_2=\frac{-3}{2}-\frac{\sqrt{5}}{2}$$Assume a solution in the form$$x(t)=Ae^{\lambda_1 t} +Be^{\lambda_2 t}$$where A and B are constants. From your initial conditions you can solve for A and B. See http://tutorial.math.lamar.edu/Classes/DE/IntroSecondOrder.aspx
 
Fred Wright said:
You are making this problem too difficult. The characteristic polynomial of your d.e. is $$\lambda^2 + 3\lambda +1=0\\
\lambda_1=\frac{-3}{2}+\frac{\sqrt{5}}{2}\\
\lambda_2=\frac{-3}{2}-\frac{\sqrt{5}}{2}$$Assume a solution in the form$$x(t)=Ae^{\lambda_1 t} +Be^{\lambda_2 t}$$where A and B are constants. From your initial conditions you can solve for A and B. See http://tutorial.math.lamar.edu/Classes/DE/IntroSecondOrder.aspx

I took a simple problem which let me know the analytical solution because I want to use this solution to compare with the numerical one, for practicing proposes.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
10K
Replies
9
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 17 ·
Replies
17
Views
3K