Inverse laplace in matlab gives iota

  • Context: MATLAB 
  • Thread starter Thread starter indianaronald
  • Start date Start date
  • Tags Tags
    Inverse Laplace Matlab
Click For Summary
SUMMARY

The discussion centers on the application of the Laplace transform to a spring-mass system in MATLAB, where the user encounters complex roots for the displacement function x(t). It is established that complex roots, represented as a ± bi, do not necessarily lead to complex solutions if all coefficients and initial conditions are real. The user is reminded that the general solution for a damped harmonic system can be expressed as y = Ae^(at)cos(bt) + e^(at)sin(bt), which clarifies the interpretation of solution pairs in this context.

PREREQUISITES
  • Understanding of Laplace transforms in MATLAB
  • Knowledge of differential equations and their solutions
  • Familiarity with complex numbers and their interpretation in engineering
  • Basic concepts of harmonic motion and damping
NEXT STEPS
  • Explore MATLAB's symbolic toolbox for solving differential equations
  • Learn about the implications of complex roots in mechanical systems
  • Study the derivation of the general solution for damped harmonic oscillators
  • Investigate the conditions under which real solutions arise from complex roots
USEFUL FOR

Engineers, physicists, and students involved in mechanical systems analysis, particularly those working with MATLAB for solving differential equations and interpreting complex solutions.

indianaronald
Messages
21
Reaction score
0
I'm applying laplace transform to a spring-mass system, the most basic one. I write this code which takes initial values x(0) and v(0) as input and I'm computing x(t) in matlab. But for some values it gives me complex roots for x(t) which doesn't seem possible. If not for laplace I can solve the same question traditional differential equation solving way and get real roots. So what's happening here?
 
Physics news on Phys.org
Remember that a damped harmonic system may give you complex conjugate roots ##a\pm bi## with a solution pair ##\{e^{(a+bi)t},e^{(a-bi)t}\}##. But this is equivalent to the solution pair ##\{e^{at}\cos(bt),e^{at}\sin(bt)\}##. Complex roots don't necessarily cause complex solutions. In fact, if the coefficients and initial conditions are all real, you will not have complex solutions.
 
What is the meaning of solution pair? Yes, it gives me a±bi. How do I interpret it? And I don't even have damping in my system.
 
LCKurtz said:
Remember that a damped harmonic system may give you complex conjugate roots ##a\pm bi## with a solution pair ##\{e^{(a+bi)t},e^{(a-bi)t}\}##. But this is equivalent to the solution pair ##\{e^{at}\cos(bt),e^{at}\sin(bt)\}##. Complex roots don't necessarily cause complex solutions. In fact, if the coefficients and initial conditions are all real, you will not have complex solutions.

indianaronald said:
What is the meaning of solution pair? Yes, it gives me a±bi. How do I interpret it? And I don't even have damping in my system.

By a "solution pair" I mean the general solution is$$
y = Ae^{at}\cos(bt)+e^{at}\sin(bt)$$Without actually seeing what your system is and what your work looks like, I can't be more specific about your problem.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
1
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K