Non-integrability and Chaos with Unquenched Flavor

We study (non-)integrability and the presence of chaos in gravity dual backgrounds of strongly coupled gauge theories with unquenched flavor, specifically of the four-dimensional N=2 super Yang-Mills theory and the three-dimensional ABJM theory. By examining string motion on the geometries corresponding to backreacted D3/D7 and D2/D6 systems, we show that integrable theories with quenched flavor become non-integrable when the virtual quark loops are taken into account. For the string solutions in the backreacted D3/D7 system, we compute the leading Lyapunov exponent which turns out to saturate to a positive value as the number of flavors increases. The exponent depends very weakly on the number of flavors when they approach the number of colors. This suggests that once a particular flavor number in the theory is reached, a further increase does not lead to more severe chaotic phenomena, implying certain saturation effects on chaos.


Introduction
The study of integrability (see e.g. [1,2] for reviews) has proved to be a very useful direction in obtaining exact results in AdS/CFT. An important question concerns which gauge theory systems admit integrability or not. A fruitful approach to this problem from the dual gravity side has been to apply techniques of analytic non-integrability. The technique, introduced in [3], consists of finding solutions for classical string motion on the gravitational background dual to a given gauge theory which can be reduced to a Hamiltonian system on which one can apply the variational techniques of analytic non-integrability outlined in [4].
Moreover recently there has been an extensive discussion of chaos in quantum field theories, which has further potential applications relating the physics of black holes and quantum information. The Lyapunov exponent λ of out-of-time-ordered correlators has been proved to be bounded by the temperature T of the theory as λ ≤ 2πT / [5] using shock waves near black hole horizons [6,7], or by looking at the particle motion near the horizon [8].
In this work we aim to study, from the dual gravity side, the integrability of theories with unquenched flavor (see for example [9,10] and references therein), where the virtual quark loops are taken into account contributing to the gauge propagators. Moreover we discuss in detail chaotic string motion on these backgrounds and, at least in the limit we are working with, we find a convergent Lyapunov exponent to a non-zero value, although no black hole horizon is present.
We initiate our study in the case of four-dimensional theories with N = 2 supersymmetry, obtained by adding D7-branes to a D3-brane system as in [11], and taking into account their backreaction. The background for this system was constructed in [12,13]. We will work in the "near-core" regime of [13] where the solution is known analytically. In the unquenched case the effects of creation and annihilation of virtual quark-anti-quark pairs on the gauge degrees of freedom are taken into account. On the gravity side, this is translated as having the Dp-branes backreacting on the "gluonic" pure AdS space. In principle this happens when the number N f of flavor branes approaches the number N c of the color branes. In this limit the theory located at the D3/D7-brane intersection has positive beta function and possesses a chiral anomaly.
Therefore the gravity dual background ceases to be conformal as can be naturally found by taking into account the effects of backreaction, while the axion and the dilaton become nontrivial. The closed string solutions we find are exactly in the region where the approximation closely follows the exact numerical solution.
We perturb the closed string solutions and apply variational methods to obtain the Normal Variational Equation (NVE) and show that it does not have Liouvillian solutions. Therefore we show that string motion is non-integrable on this background. The integrability of our solutions is restored for particle motion or when we switch off the backreaction of the D7-flavor branes. We moreover examine chaotic string motion in the non-integrable theory. We find, for the string solutions we examine, that the Lyapunov exponent in the Veneziano regime is surprisingly saturated to a value and depends weakly on the number of flavors. The value depends on the energy density of the system and its other parameters. By pushing the backreacted solution to the limits of its validity by reducing the number of flavors, we see that the maximum value of the Lyapunov exponent is obtained very quickly as we increase the flavors. We note that our analysis is done at zero temperature and the gravity dual theory has no black hole horizon.
Furthermore, looking at the more generic features of the backreacted Dp-Dq brane geometries, we expect that integrability is broken in the unquenched flavor limit for a wider class of field theories.
Then we move on to examine the case of adding unquenched flavor to the ABJM model [14]. This solution is obtained by introducing D6-branes and taking into account their backreaction.
These backgrounds were constructed in [15] for the case with massless flavors, and extended to the massive case in [16]. Unlike the D3/D7 case, these backgrounds are exact, while the D6 branes are smeared along the internal space. After reviewing the solution of [15], we consider the general classical string equations of motion on this background and truncate them to a consistent ansatz which is suitable for applying analytic non-integrability techniques. We find analytically closed string solutions and we derive the NVE to study its solutions using the Kovacic algorithm. We conclude that, as expected and in agreement with the above D3/D7 analysis, the backreacted flavor deformation breaks the integrability present in the ABJM case.
However we also point out a puzzling case where for a single string ansatz we do not find Liouvillian solutions of the corresponding NVE even when the backreaction is switched offconflicting our expectations of integrability in that limit. By investigating in depth the geometry we argue that it should be an issue of the string solution in the particular coordinate system used to obtain the backreaction.
As a byproduct of our study of the unquenched ABJM case, we study integrability in a range of other theories. There are special values of the parameter that controls the squashing of the space and the number of flavors, where the background is dual to other theories as well. For example, these backgrounds also appear as the IR fixed points of D2-D6 brane system flows.
By computing the backreaction of the N f flavor D6-branes smeared over a six-dimensional nearly Kähler manifold, to the N c color branes, it has been found that the solutions flow to an AdS 4 fixed point dual to Chern-Simons matter theory and which is the special case of the metric we present in section 4 [17]. The family of squashed CP 3 metrics is relevant also for the construction of squashed seven-sphere metrics, which are S 1 bundles over a squashed CP 3 base. The special case q = 5 corresponds to an N = 1 supergravity background, being a gravity dual of superconformal Chern-Simons matter theory with SO(5) × U (1) global symmetry [18]. Therefore, our work applies in certain cases for different types of theories.
There are several works where non-integrability and/or chaos has been studied in an AdS/CFT context. In [19] the time evolution of the homogeneous quark condensate in supersymmetric N = 2 QCD was studied and it was found, by looking at probe D-branes, that there exists an energy density where the phase space is dominated by chaos. Methods similar to analytic non-integrability have been applied to theories such as AdS 5 × T pq [3], Dp-brane backgrounds [20], the Lunin-Maldacena background dual to the β-deformations of N = 4 SYM [21], confining backgrounds [22,23], in theories beyond the planar limit [24] although at special large N limits some integrability does appear [25], and in non-relativistic theories [26]. Other works along these directions include [27,28,29,30,31,32,33].
Our paper is organised as follows. In section 2, we introduce a very compact notation to analyse the string equations of motion for a generic metric. In section 3, we study the integrability of the N = 2 super Yang-Mills theory with N f hypermultiplets in the fundamental representation and one in the adjoint representation of the SU (N c ) gauge group. We present the string solutions, the variational analysis and the proof of non-integrability. Moreover we examine the chaotic motion by solving the string equations numerically and we extract the Lyapunov exponent. In the next section 4, we study the geometry of the ABJM background with backreaction. We present several sting solutions and the NVE showing non-integrability.
Moreover we mention a puzzling string solution with non-integrable motion even in the zero backreaction limit. The section is supported by two appendices. In appendix A we present more details of the CP 3 geometry, while in Appendix B we show how it is possible that the non-integrable T 11 space can arise as a foliation of CP 3 without conflicting with integrability.

String equations of motion for a generic metric
In this section we generate the string equations of motion in a generic framework and study their simplifications for a particular string parametrisation. The metric may be written as where in the last term i < j and the indices i, j = 1, . . . , d with d being the number of space dimensions and t being the coordinate time. Let's assume that we have n cyclic coordinates, such that the labels i ≥ n label the cyclic angles, on which the metric elements functions are not dependent. The Nambu-Goto action is (using ∂ ∂τ :=˙, ∂ ∂σ := ) We parametrise the string in such a way that all the non-cyclic coordinates α i := x i with i < d − n depend on the world-sheet time τ and therefore the string is localised along those directions. We also take the string to extend along all the cyclic coordinates φ k := x k with k ≥ n in a way that each of them is linear in the world-sheet space parameter σ with proportionality constant m k . The equation of motion for the time t, for a static space readṡ where g tt is a function of τ . The equations of motion for the non-cyclic angles are Notice the simplification in the absence of the σ derivatives as a result of the string parametrisation. The simplest equations for the system are the ones for the U (1) angles reading For the parametrisation we have considered these are satisfied trivially since the metric elements depend on the non-cyclic coordinates.
The Virasoro constraints become where L s+ is derived from the Lagrangian density expression by flipping the negative signs in front of the kinetic terms to positive ones.
A further simplification happens when the metric has no non-diagonal terms between the non-  In the quenched approximation, where the D7-branes do not backreact on the geometry, the theory was discussed in [11]. As the geometry in this limit is the same as the case of no flavors, integrability for closed strings is unaffected.
Integrability for the open string sector was established in [34]. Here we are interested in going beyond the quenched approximation and study integrability of string motion for the geometry dual to the unquenched theory, where the effects of backreaction of a large number N f of flavor branes are included. 1 Building on [37,38], this geometry was constructed in [12,13].
The background has the metric where an SO(4) × SO(2) symmetry is present. The warp factor h has been found in terms of a convergent series 2 in [13] following the methodology developed for the Schrödinger equation of electrons in a logarithmic potential [39]. Around the vicinity of the D7-branes and in the near horizon limit the warp factor becomes The constant ρ L is chosen such that in the absence of the flavors e φ = g s . The warp factor expression is only valid for values away from ρ L , as Ψ(ρ) diverges around this value.
In the following sections we will parametrise the S 3 of the metric (3.1) as dΩ 2 3 = dθ 2 + sin 2 θ dα 2 + sin 2 αdχ 2 , (3.4) 1 One way to obtain an exact background with flavors is through an orientifolding procedure, which leads to an AdS5 × S 5 /Z2 geometry. Integrability of open strings in this setup was studied in [35,36]. In this case the number of flavors is low, far from the N f ∼ Nc regime that we are interested in. 2 In [37] it was found to a first order approximation in the transverse 2-plane around a fixed point above the D7-branes.
while the four dimensional spacetime is parametrised as which is a convenient choice to describe circular strings with radius R. 3

String solutions and non-integrability
In order to study (non)-integrability of the theory, we examine classical string solutions on the above background. We are interested in string solutions that extend along the cyclic angles where κ is the integration constant. By placing the string on the equators (θ = π/2, α = π/2) of the S 3 internal sphere the two relevant equations are satisfied. Moreover, the z equation of motion is satisfied by switching off this direction for the string. We are now left with the three equations of motion corresponding to (R(τ ), r(τ ), ρ(τ )) functions and one non-trivial Virasoro constraint.
It is important to observe that the harmonic function h contains the term log(ρ(τ ))ρ(τ ) 2 where its derivative with respect to τ or ρ(τ ) gives the same factor 1 + 2 log(ρ(τ )). Due to this fact the ρ equation of motion is satisfied for ρ = ρ L / √ e. Note that this value is within the regime where the background approximation is valid. The remaining equations of motion are those for R(τ ) and r(τ ), which read while the non-trivial Virasoro equation reads A string solution of the above system and its NVE does exist. To simplify the system significantly without losing generality, we localise the string on the internal sphere by setting m χ = 0.
This allows an analytic r(τ ) solution if the string is taken to move in the R(τ ) = 0 plane where c 1 is an integration constant. By applying variations along the R(τ ) = 0 + η(τ ) direction, the corresponding equation of motion gives an NVE with rational coefficients where we set c 1 = 0. The above equation does not have Liouvillian solutions and the Kovacic algorithm fails. Therefore this means that the flavor background in the unquenched limit is non-integrable and the quark loops destroy the integrability.
In fact one may even further simplify the string solution and the corresponding NVE and still show non-integrability. The string may be localised consistently in the transverse SO (2) plane, parametrised by (ρ, ψ), by setting m ψ = 0. Choosing the appropriate initial conditions we get an invariant plane solution R(τ ) = 0 with r(τ ) = κ τ , and the variation of R(τ ) = 0+η(τ ) leads toη which can be also obtained directly from (3.11). The minimal string NVE (3.12) does not have a Liouvillian solution proving non-integrability in the strong coupling limit flavor backreacted backgrounds.
Integrability is recovered for particle motion (m φ = 0) where the NVE admits Liouvillian where c 3 and c 4 are the integration constants.
A comment is in order for the quenched limit of our solution. The expression  Figure 1: The evolution of string motion along the holographic direction and its radius. The two strings have close initial conditions while the final endpoints begin to differ significantly. We simulate the motion until the initial moments of the chaos appearance. The axes have been rescaled for better optical results. To summarise this section, we showed the existence of non-integrable string solutions in the flavor-backreacted D3/D7 background of [13]. Integrability is recovered for particle motion, a situation that has been observed in several other non-integrable theories. In the next section we study the existence of chaos in the flavor backreacted system.

Chaotic string motion
Having shown analytically the non-integrability of string motion on the backreacted D3/D7 background, we examine the presence of chaos in this background. To do this, we consider the same string ansatz as above but without choosing any specific solution for R(τ ). So the fields that will have a nontrivial motion are r(τ ) and R(τ ), corresponding to a time evolution of a boundary operator. In terms of the Hamiltonian the system is reduced to a particle motion with four dynamical variables (r, R,ṙ,Ṙ) and certain constant parameters. The conserved quantity of the system is the total energy. We look for chaos by varying the initial conditions and the theory parameters resulting in modifying the energy density, and each time we integrate the equations of motion numerically.
Let us fix the value of the 't Hooft coupling λ and examine the appearance of chaos as a function of N c /N f . We solve the system of differential equations (3.7) and (3.8), with the energy constrained by (3.9). The 3-dimensional string motion with two neighbouring initial conditions is presented in Figure 1, where the chaotic nature starts to become apparent as the time evolves. In Figure 2 we project the string motion to one dimension r(τ ) where the chaotic nature also begins to be apparent. 098. Note that at this limit the range of the validity of the gravity solution is already challenged. However we allow ourselves to push towards this limit to illustrate the formation of chaos.
The chaotic motion can be quantified in terms of N c , N f and λ, parameters that our system and the equations of motion depends on through b f ρ 2 L and is equal to (3.14). The integrability of our equation is recovered in the limit N c /( We are already in the chaotic region and therefore we cannot clearly observe the destruction of tori. However by slightly extending our analysis outside the appropriate limit for N f /N c and considering a low number of flavors we get a picture of how chaos starts to form.
To quantify the sensitivity of our system to the initial conditions we compute the leading Lyapunov exponent. We obtain the exponent by a long-time numerical calculation of two initially neighboring trajectories, where each time we measure the exponent, we rescale the distance in order to keep the nearby trajectory separation within the linearised flow range. Our main finding is that when N f ∼ N c the Lyapunov coefficient depends weakly on the increase of the number of flavors with a slow increasing trend. It almost converges to a value depending on the energy of the system. In the computation we vary N f by pushing again the limits of our background validity. This is tempting since we find that for low values of flavor numbers we see lower Lyapunov coefficient, which nevertheless quickly converge to the particular value.
The Lyapunov exponent in terms of the ratio N f /N c can be well approximated with shifted sigmoid functions like the arctan.
In this section we consider the integrability of string motion on backgrounds dual to threedimensional gauge theories with unquenched flavor. These backgrounds arise by adding branes to the N = 6 ABJM Chern-Simons-matter theory, which is known to be integrable (see [40,41] for the Lax-pair construction for the string sigma model), and allowing them to backreact. In the following we review the geometry of the ABJM background and discuss how to obtain the deformation corresponding to backreacted flavor, before turning to the study of string solutions relevant for the study of integrability.

The ABJM background
The ABJM background [14] is given by where L 4 = 2π 2 Nc k , and the dilaton, RR 2-and 4-form field strengths are given by where J is the Kähler form of CP 3 and λ = N c /k is the t'Hooft coupling. This is dual to a Chern-Simons-matter theory, of rank N c and at level k, in the limit N We will mostly be concerned with the internal CP 3 space, so we will provide some details on its geometry. The form of CP 3 which is convenient for introducing the backreaction is as an S 2 -bundle over S 4 , using the self-dual SU(2) instanton on the four-sphere Here the x i are the Cartesian coordinates of the S 2 satisfying x 2 i = 1 and A i is the non-abelian one-form connection of the SU(2) instanton. The metric of the four-sphere reads 4 where the range of α is 0 ≤ α ≤ π and the ω i are SU(2) left-invariant forms satisfying dω i = 4 In the parametrisation of [15] a coordinate ξ is used instead of α, with the relation between these coordinates being sin α = 2ξ 1+ξ 2 , or ξ = tan α 2 .

The flavor-backreacted background
The deformed AdS 4 × CP 3 metric derived in [15] is whereˆ is the usual Veneziano parameter readinĝ The branch with the minus sign extends from q = 1 to 5/3 and is the flavored backreacted ABJM, since q = 1 is included. The branch with positive sign extends from q = 5 upwards and corresponds to the flavored version of the deformed N = 1 CS matter theory, since the value q = 5 is included.
The mentioned backgrounds appear also as the IR fixed points of D2-D6 brane system flows.
By computing the backreaction of the N f flavor D6-branes smeared over a six-dimensional nearly Kähler manifold, to the N c color branes, it has been found that the solutions flow to an AdS 4 fixed point dual to Chern-Simons-matter theory and which is the special case of the metric (4.13) for a specific q-value and a squashing parameter appearing in the two-form [17].
It is important to note that the flavor-backreacted geometry contains an AdS 4 factor, as the addition of fundamental flavors to ABJM does not generically break conformal invariance (see [49,50] for perturbative gauge theory considerations). This is unlike the four-dimensional case discussed above and of course results in a much simpler geometric background.
Since the construction of the above background involved smearing D6-branes with different orientations, the resulting supersymmetry is N = 1 in three dimensions, instead of N = 3, which would only be expected for the supergravity solution with localised flavor branes [15].

String Solutions on the backreacted metric
In this section we explore the integrability of string motion on the flavor backreacted ABJM background above. We will consider three ansätze, which are distinguished by whether we set θ = 0 (θ being the angle of the S 2 ), θ = π/2, or θ 1 = 0 (θ 1 being the angle of the S 4 ).

Static String on S 2
We will now consider an ansatz for string motion which will turn out to be suitable for the application of analytic non-integrability techniques. We choose: As this parametrisation is contained within the general analysis of section 2, it is immediate to analyse the equations of motion. Doing this we find that the only non-trivial equations of motion are those for θ 1 and α (4.17) Writing these out more explicitly, we obtain qα − 1 4θ  The two equations of motion may be thought as coming from an effective particle lagrangian Converting to the Hamiltonian using p α = ∂L eff /∂α, p θ 1 = ∂L eff /∂θ 1 , we obtain The Virasoro constraint sets the energy to zero, which must be imposed on the dynamics of this Hamiltonian. Using these formulas we can treat the system as one of particle motion and construct the Poincaré maps as in Figure 5, which presents different values of q. We find that, at least for the initial conditions we have considered, there is only weak evidence of chaotic behaviour in this parameter space. This is confirmed by a computation of the Lyapunov exponent, which, although positive, turns out to be small and not significant enough to make a conclusive statement about chaos in this system. In the following we will turn to the techniques of analytic non-integrability, for which we need to choose an invariant plane. We will consider two cases. which, using the Virasoro constraint, giveṡ To obtain the NVE, we expand θ 1 (τ ) = 0 + η(τ ) and arrive at 1 2η We need to bring this equation into a form suitable for applying the Kovacic algorithm. In particular it needs to be an ODE with rational coefficients. We can achieve this by making the substitution z = cos α, after which we find the NVE 5 η (z − 1) 2 (z + 1)((q − 1)z + q + 1) m 2 q(z 2 − 1) + 16b 2 κ 2 + 2η (z − 1) m 2 q(z 2 − 1) · (1 + z + 2qz + 2(q − 1)z 2 ) + 8b 2 k 2 (2 + z + 3qz + 3(q − 1)z 2 ) + 4ηqm 2 (z − 1) 2 = 0 .
Applying the Kovacic algorithm we find that this NVE does not admit integrable solutions for generic q, m. However, specialising to m = 0 (the point-like limit) or q = 1 (the undeformed CP 3 limit) we find an integrable NVE. This is consistent with the integrability of geodesic motion on the backreacted backgrounds as well as the integrability of the ABJM theory.
Case II: The θ 1 = π 2 plane The other invariant plane in our problem is θ 1 = π 2 . On this plane the α equations of motion becomeα = − m 2 sin α 4q (1 + (q − 1) cos α) . Expanding θ 1 = π 2 + η(τ ) and changing variables to z = cos α, we find the NVE (4.26) As above, we find that the Kovacic algorithm concludes for m = 0 and for q = 1, while it does not conclude with Liouvillian solutions in the generic case. We see that the backreacted background (q > 1) of [15] is non-integrable, while for q = 1 integrability appears to be recovered, for this string solution at least. In the next section we present the analysis of a string moving in a CP 2 subspace of CP 3 .

The string on CP 2
Let us now consider an ansatz corresponding to string motion purely on the CP 2 part of the deformed CP 3 spacetime. As discussed in appendix A.4, the restriction to the subspace defined by θ = φ = π/2, of the undeformed CP 3 metric (in the S 2 → CP 3 → S 4 fibration picture, where θ, φ are the coordinates of the S 2 ) leaves us with the Fubini-Study metric on CP 2 . It is thus interesting to consider strings moving in this subspace both in the quenched and unquenched limit.
The string is parametrised as We note that q does not enter into this equation.
The system can be reduced to a particle one with effective lagrangian reading and the corresponding Hamiltonian where we note that θ 1 does not appear, only its conjugate momentum. Having these we can look at two nearby trajectories. From Fig. 6 we see that motion on CP 2 is consistent with integrability, as expected. This is true for both q = 1 and q = 1 in this simple string solution.
We now proceed to choose an invariant plane and check the non-integrability analytically.

(4.34)
Applying the Kovacic algorithm to this NVE, we find that it completes, consistent with string motion on the θ = φ = π/2 subspace being integrable for any q, as the numerical results above also indicate. For q = 1 this agrees with our expectations of integrability, but of course for q = 1 this could just be an artifact of our string ansatz being too simple to show any nonintegrability. To actually prove integrability on this subspace one would need to construct a Lax pair for the metric (A.25), similarly to [40,41]. It would be interesting to study string motion on this deformed CP 2 further in order to prove or disprove integrability.
In the next section we present the analysis of a different ansatz for string motion on the backreacted background, which exhibits puzzling behavior in the undeformed CP 3 limit.

(4.35)
To restrict the string motion consistently to the above space we localise the string in AdS at ρ = 0 and set θ 1 = ψ 1 = 0 and for further convenience ϕ = 0. By applying the formalism of section 2 to the full system of equations using the above parametrisation we may specify for the trivial part of the solution Nevertheless, the solution we obtain by departing from θ = 0 can not be related to the undeformed system. By varying the solution in the invariant plane θ = p θ = 0 of the effective Hamiltonian we get where we have expressed everything in terms of z = cos(α(τ )) to get a differential equation with rational coefficients. It turns out that the NVE does not have Liouvillian solutions for any value of q, even for q = 1. We expect that string motion on CP 3 is integrable, and indeed we have performed the analogous analysis for several string solutions on round CP 3 (expressed, for instance, using the metrics (A.15) or (A.17)). As expected, no signs of non-integrability were found.
To understand this puzzling behaviour, it is useful to re-express the specific string ansatz above in one of these other coordinate systems, which of course can only be done for q = 1.
In appendix A.3 it is shown how to convert to the coordinate system (A.17). Examining the equations of motion for this ansatz in the new coordinate system, we find that there are three non-trivial equations of motion instead of two in our original coordinate system, for our two functions (θ(τ ), α(τ )). 6 It thus appears that, after converting to the round-type coordinate system (A.17), the restriction of string motion to the space (4.35) has certain peculiarities, at least for q = 1. It would be very interesting to study this further and understand, directly in the original coordinate system, whether there is indeed an inconsistency or instability, and whether it affects only the case q = 1 (where we are able to map the string to the round CP 3 metric) or the whole solution.
We point out that, as usual, integrability is recovered for point-like particle motion.
Case II: The θ = π 2 plane equator of the sphere θ = π 2 . The equation of motion for θ is satisfied and we remain with the equation of α (4.37) or its equivalent (4.39). To find the NVE we perturb along the solution This equation again does not admit Liouvillian solutions for any q as in (4.41) giving the same puzzling behavior for the same reasons discussed there.

Conclusions and Outlook
In this work we considered two classes of AdS/CFT backgrounds dual to gauge theories with backreacted flavors. We have shown that the corresponding theories at zero temperature are not integrable, at least in the sector dual to semiclassical strings, and we have studied the existence of chaos for string motion on these backgrounds.
In the case of four-dimensional theories with N = 2 supersymmetry, corresponding to the D3/D7 gravity backreacted gravity background, we have found evidence that shows the nonintegrability of the theory. We find analytically closed string solutions that are not integrable, with the integrability restored in the point-like limit for particle motion or when we switch off the backreaction of the D7-flavor branes. This is also the case in the backreacted flavor solution of the D6-branes in the ABJM theory. We conclude that the backreacted flavor deformation breaks the integrability present in the three and four dimensional theories. We have also discussed a puzzling behavior where for a certain string ansatz we did not find Liouvillian solutions of the corresponding NVE even when switching off the backreaction, where the background is just CP 3 . As discussed in section 4.3.3, although this puzzling string solution appears valid in our original coordinate system (which is adapted to introducing backreaction), it has some unwelcome features after mapping it to a different metric on CP 3 . So we interpret the nonintegrable behaviour at q = 1 as an inconsistency of our string ansatz, and not as a sign of non-integrability of the background. It would be interesting to further study this issue, as it could provide insight into additional (and not previously noticed in the literature) requirements on string solutions, in order for the analytic non-integrability method to be applicable.
In this work we considered two backgrounds with backreacted flavor, one with localised flavor branes and one with the flavor branes smeared along the internal direction. Our belief is that we should expect to see similar behaviours for an even wider class of theories where the virtual quark loops are taken into account and contribute to the gauge propagators. Integrability for these theories should be lost. A strong argument, is that the Hamiltonian of the strings in our methods written in the phase space coordinates capturing the information of non-integrability and chaos, is expected always to be involved enough in the case of backreacting flavor geometries.
Given the sensibility of non-integrability and chaos to the Hamiltonian, and in direct analogy to mechanical systems, we can expect that integrability is lost in the presence of unquenched flavors for generic theories. regarding the chaos. We also note that our analysis is done in zero temperature and the gravity dual theory has no black hole horizon.
We should emphasise that although both of the cases we consider are very good models for backreacted flavor backgrounds and have been used widely in the literature, neither of them is exactly dual to a gauge theory with unquenched flavor: In the D3/D7 case we work in the "near-core" region, where the background admits a tractable analytic solution. In the D2/D6 case we work with the background of [15] which was obtained by considering a smeared distribution of D6 branes instead of a localised one. This leads to a simple squashed CP 3 internal space instead of the much more involved tri-Sasaki space of the localised case, and an associated reduction of supersymmetry from N = 3 to N = 1. In both cases the full, localised backgrounds are significantly more complicated and it is natural to expect that the loss of integrability seen in our simpler cases will be a feature of those models as well. In general it is interesting to ask to what extent the analytic non-integrability method, applied to non-exactly is the special case of our metric [17]. The special case q = 5 corresponds to an N = 1 supergravity background, being a gravity dual of superconformal Chern-Simons matter theory with SO(5) × U(1) global symmetry [18].
It should also be mentioned that a full study of analytic non-integrability in flavor back- the study of integrability was recently initiated in [51]. It would be interesting to apply our methods to this sector.

Acknowledgments
We  A The geometry of CP 3 The internal part of the metric of [15] for generic values of the deformation parameter q, is that of a squashed CP 3 . This is a coset Sp(2)/U (2). In this appendix we will review some aspects of this geometry, focusing also on the limit q = 1 where the metric becomes just CP 3 .

A.1 The squashed CP 3 metric
Let us start from the metric describing an SU(2) instanton on S 4 : where the w a ,w a are coordinates on the S 4 and u is the projective coordinate on S 2 (thought of as a CP 1 ). A is an SU(2) instanton given by while q is the squashing parameter which controls the length of the fibre. 7 It is known (e.g. [52]) that there are two special values of q, which are distinguished by the metric being Einstein: At q = 1 the metric is equivalent to the standard Fubini-Study metric on CP 3 , which is of course Kähler. At q = 2, the metric is instead nearly-Kähler. For all other values of q the metric is not Einstein.
To bring (A.1) into the form of the flavor backreacted metric of [15], we can start by choosing coordinates for the S 4 part as Then we find that where the SU (2) left-invariant forms we use were given in (4.5-4.7). Turning to the S 2 part, we Combining these substitutions we can straightforwardly check that (A.1) takes the form with the E i defined in Section 4.1. We see that the flavor-backreacted metric of [15] is equivalent to the squashed CP 3 metric. It should be noted, however, that the physics of the backreacted flavor construction restricts q to take the values discussed below (4.14), which do not include the nearly-Kähler case q = 2.
As mentioned, taking q = 1 in (A.1) one obtains undeformed CP 3 , with the instanton-type metric that appears, for instance, in the twistor construction. We will call this the "twistor metric" for CP 3 . Its explicit symmetries are those of the coset Sp(2)/U(2). It will be useful to compare it with the "round" SU(4)/U(3) metric on CP 3 , which we will do in the following.

A.2 The Fubini-Study metric on CP 3
We start by reviewing the Fubini-Study metric on CP 3 , which is the one that has been used in studies of the ABJM geometry in the literature.
Since CP 3 is a Kähler manifold, a metric on it can be found through a potential: where z,z are complex coordinates on the manifold.
The Kähler potential can be expressed in terms of inhomogeneous coordinates Z I , I = 1 . . . 4, as This makes explicit the SU(4) symmetry of CP 3 . However, it is usually convenient to rewrite the metric in terms of homogeneous coordinates z i , i = 1 . . . 3, defined as z 1 = Z 2 /Z 1 , z 2 = Z 3 /Z 1 , z 3 = Z 4 /Z 1 , so that K becomes: Starting from this potential one obtains the Fubini-Study metric as while the Kähler form is given by For applications to string motion, it is convenient to parametrise these coordinates in terms of angles. One commonly used parametrisation (see e.g. [53]) is where the ω i are as in (4.5) with the substitutions ψ 1 → ψ, φ 1 → χ.

(A.17)
This parametrisation is used e.g. in [55]. In the next section we show how some of our anzätze for string motion, written in the twistor-like coordinate system which is appropriate for squashing, can be expressed in this metric, and we will also make use of it in Appendix B, where we study integrability on a T 11 subspace of CP 3 .

A.3 From the Fubini-Study metric to the twistor metric
The relation between the Fubini-Study metric (A.12) and the twistor metric ((A.1) with q = 1) has been discussed in [56] in the context of relating the Hall mechanics of a particle on S 4 and CP 3 (see also [57] for more details and generalisations). The relation is simply the following: Performing this coordinate change and substituting (A.3) and (A.5), it can be checked that one obtains the twistor metric, while, as also mentioned in [15], the Kähler form (A.13) can be expressed in terms of the E 1,2 , S α and S i forms defined in Section 4.1 as Of course, in order to compare explicit string solutions we would like to go beyond the identification (A.18) and relate angle coordinates for the Fubini-Study metric to those for the twistor metric. Although this is not straightforward to do in full generality, it can be done if we restrict to specific subspaces of CP 3 .
One such case concerns the ansatz discussed in section 4.3.3, which we repeat here for convenience: (A.20) Combining the expressions (A.3), (A.5) and (A.18) we find that this corresponds to the following choice for the z i coordinates: Let us now convert the above parametrisation to the coordinate system (A.17), which is commonly used in studies of CP 3 . To do so, we make the following identification of coordinates: With this choice, and also redefining (A.16) as z 1 → z 3 , z 2 → z 2 , z 3 → z 2 , the inhomogeneous coordinates (A.16) become equal to (A.21).
For completeness, let us also mention how the CP 2 ansatz (4.27) can be written in the coordinates of (A.17). One redefines the z i as above, this time with the following identifications: A.4 Restriction to CP 2 As noted in [15], an interesting subspace of the S 2 -bundle over S 4 that we have been discussing arises when the two-sphere angles take the values giving the four-dimensional metric This is the Fubini-Study metric on CP 2 . As string motion on CP 2 is expected to be integrable, it is worthwhile to perform an analysis of integrability on this subspace, for q = 1 as well. This is addressed in section 4.3.2.

A.5 Seven-sphere lift
The family of squashed CP 3 metrics is also relevant for the construction of squashed sevensphere metrics, which are S 1 bundles over a squashed CP 3 base. The round metric on S 7 is equivalent to the metric obtained via an S 1 bundle over the q = 1 CP 3 metric. There is one other value of q for which the squashed S 7 space is Einstein, which is q = 5: Even though the squashed CP 3 metric is not Einstein for this value, the corresponding squashed seven-sphere is.
The AdS/CFT dual theory to this squashed sphere has been considered in [18].
Let us briefly discuss the uplift of CP 3 (for q = 1) to S 7 , following the discussion in [15].
Calling the additional direction ψ, and recalling that θ and ϕ are the S 2 angles, we introduce a new set of left-invariant forms, ω 1 = − sin ϕdθ + cos ϕ sin θdψ , ω 2 = cos ϕdθ + sin ϕ sin θdψ , ω 3 = dϕ + cos θdψ , (A.27) in terms of which the S 7 metric is 8 where we recall that A i = − sin 2 α 2 ω i = − 1−cos α 2 ω i . We see that the uplift of the twistor metric of CP 3 naturally exhibits S 7 as an S 3 (Hopf) fibration over S 4 .
Similarly to the discussion above for CP 3 , there is a question of how to show the equivalence of the above S 7 metric to the more usual round metric on S 7 . This is addressed e.g. in [58]. For completeness we sketch their construction below, while referring to their work for additional 8 For the actual uplift of ABJM to M-theory one also needs to perform a Z k orbifold of the ψ angle.
details. Let us start by writing (A.28) more explicitly (also suppressing the summation symbol) as ds 2 = 1 4 dα 2 + 1 16 sin 2 αω 2 i + 1 4 (ω i + A i ) 2 , (A. 29) in order to better exhibit the roles of the two sets of left-invariant forms. Let us now write 30) i.e. we have defined a new one-form ν i = ω i −ω i . Then Adding these terms, and also substituting α = 2α, a short calculation leads to The right-hand side is what is commonly considered as the round metric on S 7 . For more details on how this relation between the metrics is derived, we refer to [58]. Of course, although (A.30) is suggestive, the actual identification of angles that implements this transformation is not straightforward.
B Strings on the T 11 restriction of CP 3 An interesting feature of the round CP 3 metric is that it admits a restriction to a 5-dimensional T 11 space. This can be most clearly seen starting from the metric (A.17) [55]. The constant ξ surfaces are U(1) bundles on S 2 × S 2 , and as such the restriction of (A.17) to constant ξ has the geometric features of T 11 . However, the metric one obtains by taking ξ constant is not the Einstein metric on T 11 , which requires relations between the coefficients of the three factors that cannot be satisfied for any choice of ξ.
Integrability of string motion on T 11 (and its generalisations with arbitrary coefficients for the three factors) was considered in [3], where it was established that these backgrounds are not integrable. So one can wonder how they can arise as foliations of the integrable CP 3 geometry.

(B.2)
Following [3], we take our straight line solution to be θ 2 = 0. It turns out that the additional equation of motion then restricts θ 1 to take a constant value: This is integrable, unlike the NVE found for T 11 in [3] (where θ 1 was a function of τ ). So it appears that the additional EOM has led us to a simpler NVE which does not exhibit nonintegrable behaviour. This is of course consistent with our expectations from integrability of the CP 3 sigma model.