Analytical or numerical Solution for a coupled differential equation.

4 visualizaciones (últimos 30 días)
PS
PS el 11 de Jun. de 2022
Editada: David Goodmanson el 10 de Oct. de 2022
I need a help in analytical/numerical solution to a coupled differential equation as attached in the image. Where m=n=3
  22 comentarios
Torsten
Torsten el 9 de Oct. de 2022
Editada: Torsten el 9 de Oct. de 2022
Analytical solution and solution from ODE45 are almost identical. So it seems ODE45 needs these smaller time steps to get the correct solution within the prescribed error tolerance.
The coupling coefficient is directly related to the frequency of the sin and cos terms in the analytical solution. And if you plot sin(x) and sin(20*x), you will see that it will be much more difficult to resolve the cycles of the trigonometric functions for bigger coupling coefficients.
Plotting the solutions A1 and A2 might help in understanding why solutions for bigger coupling coefficients are more complicated to get (see above).
David Goodmanson
David Goodmanson el 10 de Oct. de 2022
Editada: David Goodmanson el 10 de Oct. de 2022
Hi PS,
If the elements of Cmn are differing functions of z, then an analytic solution will be rare. If all the Cmn are constants, the following is a solution where C is a square matrix of arbitrary size, within reason.
Let B be the diagonal matrix whose k,k element is beta_0k. Then for the matrix exponential
expB(z) = expm(i*B*z) % diagonal matrix
exp(i*beta_0k*z) % its k,k th element
In matrix notation the original equation is
dA/dt = -i*expB(z)*C*expB(-z)*A,
where A is a column vector with n components.
For the solution, let
[V lambda] = eig(B+C)
Lambda is the diagonal matrix of eigenvalues, and denoting its matrix exponential in a similar way as before,
expL(-z) = expm(-i*lambda*z). % diagonal matrix
exp(-i*lambda_k*z) % its k,k the element
The solution is
A = expB(z)*V*expL(-z)*g
where g is a column vector of constant amplitudes that are determined by initial conditions. If the initial conditions are set as A = A0 at z = 0 for some column vector A0, then
g = V\A0.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Ordinary Differential Equations en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by