Review Article | Open Access

# Hamiltonian and Lagrangian Dynamical Matrix Approaches Applied to Magnetic Nanostructures

**Academic Editor:**Eduardo Martinez Vecino

#### Abstract

Two micromagnetic tools to study the spin dynamics are reviewed. Both approaches are based upon the so-called dynamical matrix method, a hybrid micromagnetic framework used to investigate the spin-wave normal modes of confined magnetic systems. The approach which was formulated first is the Hamiltonian-based dynamical matrix method. This method, used to investigate dynamic magnetic properties of conservative systems, was originally developed for studying spin excitations in isolated magnetic nanoparticles and it has been recently generalized to study the dynamics of periodic magnetic nanoparticles. The other one, the Lagrangian-based dynamical matrix method, was formulated as an extension of the previous one in order to include also dissipative effects. Such dissipative phenomena are associated not only to intrinsic but also to extrinsic damping caused by injection of a spin current in the form of spin-transfer torque. This method is very accurate in identifying spin modes that become unstable under the action of a spin current. The analytical development of the system of the linearized equations of motion leads to a complex generalized Hermitian eigenvalue problem in the Hamiltonian dynamical matrix method and to a non-Hermitian one in the Lagrangian approach. In both cases, such systems have to be solved numerically.

#### 1. Introduction

In these last years, great attention has been given to the study of magnetization dynamics in laterally confined magnetic systems. It is well know that spin excitations are quantized due to the lateral confinement. The oscillations are the so-called normal modes, which represent a pattern of motion given by all the parts of the system oscillating sinusoidally with the same frequency and with the same phase relation. In this last decade, analytical models have given important contributions to understand the frequency spectrum of normal modes for different ground-state magnetizations [1–11]. However, some limitations due to the assumptions made for the determination of the equilibrium state, the boundary conditions, and the calculation of the energy contributions to normal modes dynamics are still present.

On the other hand, a lot of efforts have been devoted to develop micromagnetic codes having the aim of calculating very precisely different ground states of nanometric particles [12]. Due to their accuracy, the developed micromagnetic methods have contributed to give additional information about the spin dynamics. The first micromagnetic calculations were typically based upon codes developed to calculate in the first place the ground state of a given magnetic particle. Then the time evolution of the average magnetization of a particle could be obtained and, from a subsequent postprocessing of these data (mainly using the Fourier transform of the magnetization), information could be extracted about mode frequencies and spatial profiles [13]. In the simplest application of the method, the limit of these calculations was the observation of modes with nonzero magnetization only. More recently, a micromagnetic method was extended to the detailed calculation of eigenfrequencies and eigenvectors under the effect of an oscillatory in-plane small magnetic field [14]. Another recent micromagnetic method was also developed to study the quantized spin excitations in laterally confined systems [15]. This is the so-called Hamiltonian-based dynamical matrix method (HDMM).

The HDMM was first formulated for isolated magnetic nanoelements and then it has been generalized to the case of interacting nanoelements [16]. It is the prototype of finite-difference methods and represents an eigenvalue/eigenvector problem. The scope of this method is to find the frequencies and profiles of the spin modes which are associated to the eigenvalues and the eigenvectors, respectively, of a dynamical matrix. It can be considered the analogous of the dynamical matrix formalism used to find atomic vibrations (phonons) in crystalline solids. The dynamical matrix contains the second derivatives of the density energy coming from a second order expansion of the density energy around the equilibrium. This method was already used to study the spin excitations in magnetic multilayers with ferro- or anti-ferromagnetic coupling [17, 18]. Due to the translational invariance, the number of independent dynamic variables was reduced to twice the number of the layers. The calculated second derivatives are evaluated at equilibrium. The eigenvalue/eigenvector problem can be set as a complex generalized Hermitian eigenvalue problem. The method presents several advantages: a single calculation yields the frequencies and eigenvectors of all modes of any symmetry, it is applicable to a particle of any shape (within the nanometric range), and the computation time is affordable. This means that by means of this micromagnetic approach, it is possible to determine, after a single iteration, the frequencies and the profiles of all spin-modes, independently of the ground-state magnetization (e.g., vortex state, vortex in the presence of an external magnetic field, onion state, quasi-saturated state). The main restriction of the method is its applicability to confined magnetic systems whose spin dynamics is assumed purely precessional with no dissipative effects. Of course, this is true only in a first approximation, since in real magnetic systems the intrinsic damping process plays an important rule. In order to select the representative modes of the spectrum and to compare them with the ones observed by means of the experimental techniques, the differential scattering cross-section has to be evaluated both for noninteracting and interacting magnetic particles.

The first applications of the HDMM were on chains of dipolarly interacting rectangular dots representing a one-dimensional array [19] and of two-dimensional (2D) arrays formed by circular nanometric disks [20]. Very recently, this method was applied to study the collective mode dynamics in arrays of holes embedded into a thin ferromagnetic film. This calculation was done by including in the energy density computation also the exchange interaction between micromagnetic cells belonging to two adjacent primitive cells [21].

In order to overcome the above-mentioned restrictions of the HDMM, Consolo et al. formulated very recently the so-called Lagrangian-based dynamical matrix method (LDMM) [22]. Such a method explicitly takes into account the intrinsic “positive” Gilbert damping and the current-induced spin-transfer-torque “negative” dissipation. Since the magnetic system so obtained is no more conservative, a Lagrangian formalism is necessary. Unlike the HDMM, the LDMM cannot be cast as a classical (nongeneralized) eigenvalue/eigenvector problem, but it has to be formulated as a complex generalized non-Hermitian eigenvalue problem. The first application of the method was done on a magnetic nanopillar stack of circular cross-section subject to an external magnetic field directed a few degree away from the normal to the plane [22]. The analysis was then extended to the case of external magnetic fields of variable intensity and orientation with respect to the plane of the nanopillar [23].

It is important to notice that both formalisms have been developed up to now in the linear approximation, namely, considering small angular deviations of the magnetization from equilibrium so that each spin excitation is a normal mode of the system.

The reference frame used in the micromagnetic calculations performed both by means of HDMM and LDMM is illustrated in Figure 1. The *z*-axis is along the normal to the particle and the *x*-*y* plane lies on the particle plane. According to this reference frame, the configuration of the vector , representative of the magnetic dipole momentum, is identified through the polar angles, and , and the intrinsic rotation . As it will appear clear in the section devoted to the Lagrangian approach, this latter angle does not enter in the equation of motion, being the corresponding Lagrange equation associated to a first integral of the motion (the conservation of the angular momentum). So that, as it is expected, because the modulus of the magnetization vector is preserved in time, the dynamics can be described through two degrees of freedom only (typically and ).

If we assume that the magnetization vector is placed along the generic direction given by the unitary vector , it can be expressed in Cartesian coordinates by being the saturation magnetization value (the modulus of the magnetization vector) and the time dependence of the angles and expressed as In (2), we indicate by (, ) the static (equilibrium) orientation of the magnetization obtained by solving the stationary problem () for whatever effective field and magnetization distributions. Instead, and are the small polar and azimuthal deviations from equilibrium, respectively.

In the micromagnetic calculations, the magnetic system is subdivided into rectangular cells. Each micromagnetic cell is identified by a single index that varies from to , where denotes the number of cells. Hence, is the magnetization in the th cell and is the in-plane distance between the th cell and the th cell. The index has been assigned so that the first line of the rectangular matrix corresponds to and the second line to , and so on and so forth. is the number of cells along , while is the number of cells along for a sample of thickness equal to . We define for each cell the reduced magnetization . Hence, in a polar reference frame for each cell where is the azimuthal angle and is the polar angle of the magnetization. The total energy density of the system, obtained by dividing the total energy by the volume of the cell, is a function of and : where varies from to .

In the following sections we describe in detail the two micromagnetic methods. We do not illustrate the applications of these methods to magnetic nanoparticles, because this aspect is not the purpose of this paper. We give a summary of the paper. In Section 2, we outline the formalism at the basis of the HDMM. First, we introduce the different contributions to the energy density and then we derive the system of linear and homogeneous equations of motion for the isolated particle from the Hamilton equations. Finally, we present the generalization of the HDMM to the case of interacting elements. In Section 3, the formalism at the basis of the LDMM is presented. First, the Lagrangian equations for a macrospin system are derived. Then a generalization is given by considering interacting momenta in an isolated magnetic element.

#### 2. HDMM

This section deals with the review of the HDMM formalism. As stated above, the HDMM is a micromagnetic approach that can be applied only to fully conservative systems which are supposed to have, in a first approximation, a purely (undamped) precessional motion of the magnetization about the effective field. It is a finite-difference micromagnetic method developed in the linear regime of spin dynamics by considering small deviations from the equilibrium magnetization. In the first subsection, the different contributions of the energy density entering into the dynamical matrix are calculated and the equations of motion for an isolated magnetic element are cast in the form of a linear and homogeneous system that can be solved as a complex generalized Hermitian eigenvalue problem. In the last subsection, it is shown the generalization of the HDMM to interacting magnetic nanoparticles by including into the dynamical matrix the Bloch condition.

##### 2.1. Energy Density

First, we give the explicit expressions of the different interactions entering into the total micromagnetic energy density of a given confined magnetic system simulated by using the HDMM: Zeeman energy, exchange energy, demagnetizing energy, and anisotropy energy, respectively [24]. The energy density is defined as where is the energy of the system and its volume. In the presence of an external magnetic field , the Zeeman energy density can be written in the form being the vacuum permeability. In micromagnetic theory, the exchange energy can be expressed as a volume integral of the form where the subscript “part” denotes the volume of a general magnetic particle, is the exchange stiffness constant, and is the gradient applied to a given component of the magnetization. In this case the exchange contribution is independent of . Using the first-neighbours model, the exchange energy density can be written as follows: where the variable is the distance between the centers of two adjacent cells of index and , respectively, varies over all micromagnetic cells, and the sum over ranges over the neighbours of the -th cell. If the micromagnetic cells are situated at the edges, one must impose boundary conditions. The cells on the edges interact with an external row of cells that have the same fixed magnetization, in this case the corresponding term in the sum must be weighted twice.

In order to calculate the demagnetizing energy density, we have followed the method of the demagnetizing tensor. In the following, we use also the term dipolar in place of the term demagnetizing, because the higher-order terms of the expansion vanish in the practical cases examined. Generally, within the framework of the demagnetizing tensor method, the demagnetizing energy density can be written as follows: This equation includes the self-energy and with are the elements of demagnetizing tensor. Each component of the demagnetizing tensor is related to the interaction between two rectangular surfaces and . Under the assumption made for the calculation of the demagnetizing field for uniform magnetization, by using a version of Gauss’s theorem, the demagnetizing tensor can be written as where is the volume of the micromagnetic cell with the cell size and is the cell height. Because of the four-fold symmetry and since , all components can be expressed only as a function of and components with suitable permutations of the variables .

The magnetocrystalline uniaxial anisotropy can be labeled with the symbol . It is an energy density function, for a given micromagnetic cell, of the angle between the magnetization of the single cell and the easy axis of generic direction given by the unit vector . We write where is the first-order anisotropy uniaxial coefficient.

As the dynamical matrix components are expressed in terms of the second derivatives of the energy density, it is necessary to calculate them from the above expressions. First, we calculate the second derivatives of the magnetization with respect to the polar and azimuthal angles of the given micromagnetic cell that represent the degrees of freedom of the system. Indeed, the second derivatives of the magnetization appear in the final expressions of the second derivatives of the energy density. In particular The second derivatives of the energy density are calculated at equilibrium. For the sake of simplicity, in the following, the derivatives are calculated with respect to and implying that one or two of the two generic variables could be also .

The second derivative of Zeeman energy density becomes

As outlined previously, for the calculation of the exchange contribution, the nearest-neighbour model is taken into account. It is useful to give also the expression of the first derivative due to some important manipulations that have to be performed. The first derivative with respect to includes in the sum a term in which and thus and also the other terms with and with one of the nearest neighbours. Thanks to a proper change of indices in the second term, the following equation is obtained: where the sum over is made up over the nearest-neighbour micromagnetic cells of the -th cell. In the special case of the adopted first neighbours model, the second derivatives are We now pass to the calculation of the derivatives of the demagnetizing energy density. Due to their rather complicated form, we give in the following the expression not only of the second derivatives of the demagnetizing energy density but also of the first derivatives with respect to the generic variable . The first derivative of the demagnetizing energy density (7) is In the sum, the contribution of the terms with the same index has been separated; moreover, we have taken into account that the tensor fulfils and is symmetric ().

Thanks to the previous consideration, it is possible to write and therefore, The second derivative must take into account the two cases: , namely, The term resulting from the derivative of the second term (in the expression of the first derivative given above) has been included in the sum over .

The last step is the calculation of the term associated with the anisotropy energy density. The second derivative of the anisotropy energy density can be written as

##### 2.2. Equations of Motion for an Isolated Magnetic Particle

The derivatives calculated previously are included into the dynamic equations. Indeed, the equations of motion can be cast into a linear and homogeneous system in which the second derivatives of the energy density calculated at equilibrium appear explicitly. It is well know that the equation of motion for a magnetic spin system which undergoes a purely precessional motion is the Landau-Lifshitz equation [25], expressed as a torque equation involving the effective field and the magnetization itself. Since our aim is to find the energy density in a conservative system, we derive the equations of motion from the Hamilton equations.

###### 2.2.1. HDMM for a Macrospin System

The equation of motion for the magnetic systems under investigation will be derived by following semiclassical approach. Also, the model will be first derived by considering the so-called macrospin approximation, where the material is thought as uniformly magnetized and represented by a single dipole momentum.

As known from classical mechanics, in the presence of fixed constraints and conservative sources, the system Hamiltonian coincides with the total mechanical energy , namely, , where is the kinetic energy and is the potential expressed as the opposite of the potential energy . By defining the Lagrangian variables of the problem with , where is the number of degrees of freedom corresponding to the dynamic variables, and the corresponding conjugate momenta with , the Hamilton equations in the *2n* canonical variables (, ) take the form [15]
The direction of the magnetic dipole moment of theth cell is given by (3). For the specific case, the dynamic variables referred to the -cell are the small deviations from equilibrium of the azimuthal and polar angles given by
where 1 labels the first (second) variable.

To determine the conjugate momenta, the expression of the angular momentum is needed. We recall the relation between the angular momentum and the magnetic momentum by referring to a a rigid body with a fixed point Ω (see Figure 1), namely,
where * γ* is the gyromagnetic ratio and the volume of the magnetic moment to the case. Indeed, since represents a rotation about the

*z*-axis of the magnetic dipole, its conjugate momentum corresponds to the

*z*component of the variation of the angular momentum, namely, where is the unit magnetization vector, normalized to the saturation magnetization . Following an analogous argument, the other momentum can be determined. Indeed, is a rotation of the dipole moment about an axis of unitary vector in the

*x-y*plane at an angle from the

*x*-axis. Therefore, corresponds to the projection of the variation of the angular momentum along the vector, namely,

By substituting (20), (22a), and (22b) into the first Hamilton equation (cf. (19)), the following system of equations is obtained:
where the dot notation stands for the time derivative and, at the right-hand side, the first derivatives of the energy with respect to the mechanical variables appear. By introducing the energy density (keeping in mind that ) and expanding it in a power Taylor expansion around the equilibrium up to the second order, it yields
where is the constant zero-order term that is inessential, the first-order terms vanish at equilibrium, and represent the second derivatives calculated at equilibrium ( with ). By using (23) and (24), we obtain
By inserting the time dependence in the form , where * ω* is the angular frequency of the given collective mode, the system of equations of motion reads
The linear and homogeneous system of equations expressed in (26) can be written as an eigenvalue problem
with the complex eigenvalues of the problem,
being a real, but not symmetric, matrix and .

However, the system of motion equations (26) can be also recast as a complex generalized Hermitian eigenvalue problem where is a Hessian matrix expressed by the second derivatives of the energy density at equilibrium. In particular It should be noticed that the matrix is Hermitian, whereas is real and symmetric, so that all the corresponding eigenvalues are real quantities.

###### 2.2.2. HDMM for an Isolated System Composed by *N* Interacting Magnetic Momenta

Equation (24) can be generalized to the case of *N* interacting magnetic momenta (where each momentum is identified with a micromagnetic cell) taking the form
In (31), the total energy density is given by where the different contributions are expressed in (4), (6), (7), and (9), respectively. By substituting (31) into (23), we get
By introducing the time dependence in the form , the system of equations of motion is composed by the following 2*N *linear and homogeneous equations for :
The unknown factors represent the eigenvectors of the problem and are expressed by the small angular deviation from the equilibrium position of the azimuthal () and polar () angles in the *l*th micromagnetic cell. The system above has a solution only if the determinant is zero. By suitable exchanges of rows (columns), the linear and homogeneous system of equations expressed in (33) can be written as an eigenvalue problem in analogy with the case of a macrospin system
In (34), is the set of the unknown factors representing the eigenvectors of the problem that take the form
is the matrix whose elements are expressed as
Analogously to the case of a macrospin system, the matrix is real but not symmetric, also in this case the eigenvalues (and not only the eigenvectors) are complex. This matrix can be indeed seen as composed by two submatrices for each pair of values . In the diagonal submatrices the following relation is verified:
For the elements of two different submatrices and , that are not diagonal , the following symmetries hold:
As for the macrospin approximation, the equation of motion can be recast as a complex generalized Hermitian eigenvalue problem
where is a Hessian matrix expressed by the second derivatives of the energy density at equilibrium. is given by
where the matrix is, again, real and symmetric. Moreover, since the static magnetization corresponds to a minimum of the energy and the matrix is its Hessian, the matrix is also positive defined. Instead, the matrix has the following form:
The matrix is Hermitian. This allows us to solve the system as a complex generalized Hermitian eigenvalue problem which admits only real eigenvalues. To further reduce the computational time, it is possible to evaluate only some eigenvalues and eigenvectors that are in a specific range.

Once the eigenvectors are obtained, the dynamic magnetization in the *k*th micromagnetic cell expressed in Cartesian coordinates and in unit of is given by
For each solution of the eigenvalue problem, the collection of all defines the mode profile. It must be remarked that is a complex vector, because are, in general, complex.

##### 2.3. Equations of Motion for Interacting Magnetic Particles

Let us suppose to have a 2D periodic array of interacting nanodots characterized by the primitive vectors and ; for example, for the specific case of a rectangular lattice their values are
where and represent the periodicity along *x*-axis and *y*-axis, respectively. The primitive vectors of the reciprocal lattice are and
For the special case of a rectangular lattice the vectors become
Due to the analogy with the Bloch wave (analogy, not equality, because the wave function has not a physical meaning, contrarily to the magnetization), it is possible to write the following periodicity rule valid for the dynamic magnetization:
where is a vector of the particle lattice given by
and can be confined into the first primitive cell centered in the first dot. The Bloch vector takes the following values:
indicate the number of primitive cells in direction and , respectively. In this scheme, both and are taken as even numbers. In order to confirm the hypothesis on the dynamic magnetization must be very large.

If the magnetizations of different primitive cells and the different micromagnetic cells were independent, that is no periodicity rule were present, then one would have a dynamic system with variables and , where the index changes inside the magnetic particle and can assume the values indicated in (47). In this case, the linear and homogeneous system of 2*N* equations of motion is
where and the sums over and are on the same values. Instead, thanks to the Bloch condition expressed in (46), one can consider the equations only at ; moreover, taking into account the same condition, the variables appearing for can be replaced by using the same condition. Now, when rewriting the system, the index is omitted when it has value equal to 0 or it is irrelevant. Owing to these considerations, the system given in (49) can be rewritten in the form [16]
Equation (50) is similar to (33) by making the following replacement:
and recalling that now the energy is referred to the whole system of particles. Like for the case of the isolated magnetic particle, also for the case of interacting magnetic particles the system of linear and homogeneous equations given in (50) can be written as an eigenvalue problem which in turn can be cast as a complex generalized Hermitian eigenvalue problem.

The symmetry for the matrix elements that was valid for a single primitive cell now is not respected except for or with a translational reciprocal vector: with . The primitive cell has at the centre a single dot that occupies only a part of it. The interdot exchange coupling is zero. Thanks to the last consideration and to the fact that derivatives of Zeeman, exchange, anisotropy, energy density are referred only to the cell of the first variable () with or at most to the nearest neighbour, all terms of the sum in (51) with are zero. Hence, for these energy density terms, the equations are the same as those of the single particle case and the same occurs for their corresponding derivatives appearing in the equations of motion. The only energy density term that differs from the one obtained for the isolated element is the demagnetizing energy density. For a system of interacting nanoparticles, the demagnetizing energy density can be written as Due to its rather complex expression, it is useful to give the derivation also of the first derivative of like for the case of the isolated nanoelement.

In order to calculate the first derivative, the properties of the demagnetizing tensor must be considered since is real and symmetric and thanks to the inversion symmetry. Hence, the first derivative of the energy is The second derivative takes the form In the sum it is included the case in which that is generated from the derivative of the second term in the expression of the first derivative given above. Now it is possible to calculate the terms that enter into the system of (50), starting with the one corresponding to Equation (57a) is obtained by taking into account (46), by including the term corresponding to into the sum performed over and by considering that both the static magnetization and the dynamic magnetization do not depend on . Indeed, second derivatives are calculated at equilibrium and the exponential appears on both the numerator and the denominator of the derivative.

When , the term turns out to be

Due to the properties of the demagnetizing tensor, the symmetry is fulfilled when , but it is not fulfilled when .

The formalism previously developed for interacting particles can be extended to a system of 2D antidots (ADs). In this case, it is necessary to add the exchange interaction between primitive cells [21]. In extended magnetic system like AD arrays, in addition to the usual nearest-neighbours exchange interaction between micromagnetic cells, the exchange contribution across the nearest-neighbours micromagnetic cells belonging to adjacent surface primitive cells must be taken into account. Hence, we recall the exchange energy density of (6)
Here, the first sum runs over all the micromagnetic cells of the primitive cell and the second sum runs over the nearest neighbours of the *k*th micromagnetic cell. When the *k*th micromagnetic cell is on one of the edges (vertices) of the given primitive cell, the interaction with one (two) micromagnetic cell(s) belonging to the correct nearest primitive cell must be added.

#### 3. LDMM

This section is devoted to the review of the LDMM approach through which we derive the generalized Lagrange equation in the presence of two dissipative effects arising from the “positive” intrinsic damping and the “negative” one induced by the current-driven spin-transfer torque [22]. As for the Hamiltonian approach, we limit our study to the dynamics taking place in the linear and autonomous regime.

##### 3.1. Description of the Magnetic System and Equation of Motion

The magnetic systems in which such competing phenomena take place are generally referred to as spin-valve nanopillars. These are heterostructures composed by two ferromagnetic layers, having generally different thicknesses, separated by a nonmagnetic (metallic or insulating) spacer, which is used to decouple the exchange interactions between them. The thinner magnetic layer is generally referred to as “Free Layer” (FL), whereas the thicker one is called “Fixed Layer” or “Pinned Layer” (PL). By means of an external voltage source and metallic contacts applied at the top and bottom of the structure, a current flow traverses the structure along the normal-to-plane direction (see Figure 2).

In this kind of device, conservative effects arise from the previously mentioned classical micromagnetic contributions (exchange, demagnetizing, magnetocrystalline anisotropy, and Zeeman fields) together with the Ampere (or Oersted) field due to the current flow. This latter contribution, however, will be neglected for simplicity. In fact, the main goal of this section is to describe why and how a Lagrangian approach needs to be take into account when nonconservative forces act in the system. The inclusion of more sophisticated effects, such as the Ampere field, will become relevant when this approach will be further generalized to describe the dynamics occurring in the nonlinear regime of spin-wave generation.

Let us now briefly recall the governing equation of motion. When no dissipative contributions are taken into account, a persistent precessional motion of the magnetization vector takes place. It is described by classical Landau-Lifshitz equation , where is the effective field which accounts for all the above-mentioned contributions.

On the other hand, nonconservative contributions arise from the material intrinsic dissipation and the spin-transfer torque induced by the current flow [26]. The former accounts for the phenomenologically introduced intrinsic Gilbert dissipation [27], the phenomenon by which the precessional motion of , excited by a given stimulus, relaxes towards its equilibrium state. The relaxation rate is proportional to a scalar quantity, called Gilbert constant . The torque exerted on the magnetization is generally represented by .

Concerning the dissipative effects induced by the current flow, it has been extensively shown that this bias current can become spin-polarized in the direction of the magnetization vector of the thicker magnetic layer and can then transfer this induced spin angular momentum to the magnetization of the thinner magnetic layer. For a proper direction of the bias current *I*, this spin-transfer mechanism creates a torque which opposes to that induced by the Gilbert damping, creating an effective negative damping. The corresponding spin-transfer torque, derived by Slonczewski [28], can be expressed as , where the unit vector defines the direction of the spin polarization (in turn defined by the magnetization vector of the PL) and the constant modulates the strength of the spin-torque effect. It is equal to , where * ε* is the spin-torque efficiency (defined in [29]), is the Landè factor, is the Bohr magneton,

*e*is the absolute value of the electronic charge,

*d*is the thickness of the magnetic layer, and

*S*is the current-carrying area [30].

It should be mentioned that, because of the larger value of both saturation magnetization and thickness, the PL is not substantially affected by any current-driven magnetization dynamics, so that it is generally treated as it were fixed (or pinned) along its equilibrium direction. On the contrary, the FL’s properties allow it to describe more easily several kinds of dynamics (e.g., switching [31], precession [32], domain-wall motion [33], gyrotropic motion of vortex state [34]), as it were “free” to move.

Under these circumstances, the magnetization dynamics of the FL is governed by the Landau-Lifshitz-Gilbert-Slonczewski (LLGS) equation
It has to be remarked that the equality (with opposite sign) of the two torques (), achievable by means of a proper intensity and sign of current (the positive one, *I* > 0, which corresponds to a current flow moving from the PL to the FL), which in turn implies the fully compensation of the two dissipation mechanisms, yields the system in an out-of-equilibrium zero-dissipation stationary state (a *limit cycle*, using the notation of dynamic systems) (see Figure 3). In such a regime, the excitation of microwave spin waves becomes physically conceivable.

To derive the mathematical formulation of the LDMM, for the sake of simplicity, we write, first, the generalized Lagrange equation for the case of an isolated magnetic particle within the macrospin approximation. After that, we will generalize this approach for the case of an isolated particle composed by *N* interacting momenta.

###### 3.1.1. LDMM for a Macrospin System

We will preliminarily assume that the dynamics of the magnetization vector could be described through three degress of freedom , as shown in Figure 1. In such a framework the generalized Lagrange equations read
where *L* = *T *+ *U* represents the Lagrangian of the system given by the sum of the kinetic energy *T* and the potential *U*, whereas and are the dissipation functions related to the spin torque and the intrinsic damping, respectively.

Taking advantage of the explicit formulations of the energy contributions given in Section 2.1, we can rewrite the previous system by accounting for the relationship among the potential, the kinetic energy, and the conservative part of the total mechanical energy (which in the conservative limit coincides with the Hamiltonian of the system in the presence of fixed constraints). By substituting *L* with , we thus obtain
To solve the proposed problem, we need thus to explicitly find the expressions of the variables *T*, , and , shown in (62), in Lagrangian coordinates.

The kinetic energy *T* associated to the precessional motion of the magnetization vector can be computed by referring to the case of a rigid body with a fixed point Ω (see Figure 1). In this case, the rotational kinetic energy density is expressed as
where is the angular momentum and is the angular velocity vector. Notice that in the following the kinetic energy *T*, the dissipation functions and , the work *dw*, and the energy losses are referred to their corresponding quantities per unit volume. In addition, we recall the definition of the energy density given in Section 2.1. By virtue of the relationship between angular momentum and magnetic dipole momentum (), and considering that this latter is directed along (see Figure 1), the previous scalar product involves, in turn, the only component of along . It leads to
Equation (64) therefore represents the rotational kinetic energy expressed in Lagrangian coordinates with . The conservative part of the energy density accounts for all the standard micromagnetic contributions discussed previously. As shown in Section 2.1, all the contributions appearing in only depend on the Lagrangian variables , but not on their derivatives, namely, .

To derive the Lagrangian formulation of the dissipative contributions, let us start from the classical definition of the work *dw* carried out by a magnetic system subject to a nonconservative force. As it is known, such a force has to be derived from the gradient of a dissipation function and the rate of energy losses associated to a dissipative torque can be thus expressed as
where the plus (minus) sign accounts for torques which act as “drain” (“source”) of energy and refers to the case = ( = ).

So, by multiplying the LLGS equation (60) by and assuming that the energy losses rates are small compared to the conservative (precessional) part, namely, , we deduce the following expressions for the dissipative function densities
It should be noticed that (66), which appears in the usual form of a Rayleigh-like dissipation function, is a positive-definite form, as expected for a power dissipated through a viscous friction mechanism, whatever the magnetization configuration (* α*,

*, and are positive constants). On the other hand, the spin-torque dissipation function of (67) is a non-Rayleigh one and strongly depends, apart from the direction of the current flow*

*γ**J*, on the relative magnetization configuration of the ferromagnetic layers ( and ).

Finally, taking into account the expression of the time-independent unit vector , the explicit expressions of the dissipative functions densities are where We proceed by evaluating first the third Lagrange equation In (71), we notice that the kinetic energy is the only term dependent on the intrinsic rotation, and, in particular, on its velocity , so that the previous equation reduces to which stands for a first integral of motion representing the conservation of the (only component of the) angular momentum Such a first integral also points out that our system can be described through only two degrees of freedom, as expected for the characterization of the dynamics of a vector having constant modulus which undergoes a precession (with a fixed point) onto a sphere. Taking into account this result, in the following we will use the parameters .

The first two Lagrange equations read which, substituting the corresponding expressions (the conservative part of the total energy density will be discussed later on in the text), become

Since in the present LDMM approach we are interested in the characterization of the linear dynamics of these magnetic current-driven auto-oscillatory systems, we adopt the classical formalism of small oscillations. By following this procedure, we linearize the system of (75) by considering small perturbations (, ) around the equilibrium configuration of the FL (), as done in (2), and expand the energy terms in Taylor series up to the second perturbative order.

By means of such a formalism, the system given in (75) leads to the set of generalized Lagrange equations where

Furthermore, by developing also the energy density in Taylor series around the equilibrium state in analogy with what was done in (24) for HDMM, we notice that only the second derivatives appear in the equation. Indeed, the inessential constant term can be neglected and the first derivatives vanish at equilibrium. Moreover, considering that the new Lagrangian variables (,) have to exhibit a time dependence proportional to exp(i* ωt*) (being

*/2*

*ω**π*the frequency of the spin-wave eigenmode), we end up with where the subscripts stand for partial derivative with respect to the indicated variables, whose explicit expressions can be found in the Section 2.1. The terms involving and have been disregarded since they do not exhibit an explicit time dependence.

By setting and , (78) can be recast in the form of a complex generalized non-Hermitian eigenvalue problem
with
As expected, if no damping and current are taken into account (* α* = 0,

*J*= 0 A/m

^{2}), the system in (79) so obtained recovers exactly the fully conservative HDMM one, where the matrix is Hermitian, whereas the matrix is real and symmetric (see (40)), and all the corresponding eigenvalues are real.

In the presence of dissipative effects due to damping and spin torque, the symmetry of the problem is strongly reduced and the corresponding eigenvalues will be, in general, complex quantities: the real part represents the mode frequency, whereas the imaginary part defines the mode decay rate. With this information in hands, it will be possible to establish, after a single iteration, the subset of the spin-wave normal modes which becomes unstable after the application of a spin-polarized current. In detail, for any applied current below the excitation threshold, the imaginary parts of all eigenvalues have to be positive, recalling the behavior of a damped oscillator. On the contrary, for current values above the excitation threshold, the imaginary parts of the activated normal modes switch to a negative value, giving rise to the instability mechanism which determines, in the time domain, the growth of the precession cone and, in turn, the change of the generated frequency.

Finally, it should be mentioned that, unlike HDMM, LDMM cannot be recast in a nongeneralized eigenvalue problem form.

###### 3.1.2. LDMM for an Isolated System Composed by *N* Interacting Magnetic Momenta

Let us consider now the magnetic system of our micromagnetic calculations composed by a finite number *N* of interacting magnetic momenta. Within our nanoscale numerical approach, each magnetic momentum is identified by means of a micromagnetic cell. The generalization of (78) to *N* cells leads to a system of 2*N* scalar and linear equations as follows: