---
title: Karmarkar Condition in Compact Stellar Models
url: https://www.emergentmind.com/topics/karmarkar-condition
type: topic
---

# Karmarkar Condition in Compact Stellar Models

Searching arXiv for recent and foundational papers on the Karmarkar condition to ground the article.
arxiv_search(query="Karmarkar condition static spherically symmetric embedding class I", max_results=10, sort_by="relevance")
The **Karmarkar condition** is an algebraic constraint on the Riemann tensor that is necessary and sufficient for a four-dimensional spherically symmetric spacetime to be of **embedding class I**, i.e. locally embeddable in a five-dimensional flat space. In relativistic stellar modeling it functions as a geometric integrability condition: once one metric potential is prescribed, the other is determined by a single differential relation, sharply reducing the freedom in the Einstein or modified field equations. This reduction has made the condition a standard device for constructing exact anisotropic interiors, compact-star models, wormhole geometries, scalar reformulations, and time-dependent radiating solutions [1702.04192].

## 1. Geometric definition and embedding-class interpretation

For a static, spherically symmetric line element
\[
ds^2 = e^{\nu(r)}dt^2 - e^{\lambda(r)}dr^2 - r^2(d\theta^2+\sin^2\theta\,d\phi^2),
\]
the Karmarkar condition is commonly written as
\[
R_{1414}R_{2323}=R_{1212}R_{3434}+R_{1224}R_{1334}, \qquad R_{2323}\neq 0.
\]
In diagonal spherical metrics one typically has \(R_{1224}=R_{1334}=0\), so the condition reduces to a single relation among four curvature components [1708.06220].

Its geometric meaning is precise: a four-dimensional spherically symmetric spacetime is, in general, of embedding class two, whereas Karmarkar showed that it is of embedding class one if and only if the above Riemann-tensor identity holds [1702.04192]. In this sense the condition is not an equation of state, nor a material constitutive law, but a restriction on admissible geometry.

In compact-star literature this embedding interpretation is operational rather than merely formal. The condition is imposed to replace two a priori independent metric functions by one generating function plus integration constants. This is why it appears repeatedly in exact anisotropic interiors in general relativity and in modified theories such as \(f(R)\), \(f(R,T)\), \(f(\mathscr R,\mathscr G)\), and \(F(Q)\) gravity [2105.02731].

## 2. Differential and integrated forms

Substituting the nonzero Riemann components of the static spherical metric into the algebraic condition yields a differential relation between \(\nu(r)\) and \(\lambda(r)\). One frequently used form is
\[
\frac{2\,\nu''}{\nu'}+\nu'=\frac{\lambda' e^\lambda}{e^\lambda-1},
\]
or equivalently
\[
2\nu''+\nu'^2=\frac{\nu'\lambda' e^\lambda}{e^\lambda-1}.
\]
These are the standard “metric” forms of the Karmarkar condition in the static case [1703.01724].

A first integration gives the quadrature form
\[
e^{\nu(r)}=\Bigl[C+D\int^r \sqrt{e^{\lambda(\rho)}-1}\,d\rho\Bigr]^2,
\]
showing explicitly that once \(e^\lambda\) is chosen, \(e^\nu\) follows by a single integral [2411.06988]. In the literature this same integration is also written in algebraic form as
\[
e^\lambda = 1 + A\,e^\nu (\nu')^2
\]
or
\[
e^\lambda = 1 + \tfrac14 K\,\nu'^2 e^\nu,
\]
with the difference residing in the normalization of the integration constant [2303.01737].

A distinct reformulation replaces the differential relation between metric coefficients by an algebraic relation among **structure scalars** obtained from the orthogonal splitting of the Riemann tensor. In that language,
\[
Y_0X_1 + (X_0+X_1)Y_1 = -3Z^2,
\]
and in the static limit \(Z=0\) this becomes an algebraic constraint among the physical scalar variables rather than a differential equation for the metric [2001.09378]. This scalar form is important because it recasts embedding class I directly in terms of density, anisotropy, Weyl curvature, and dissipative flux variables.

## 3. Role in exact compact-star models

The standard compact-star workflow is to choose one metric potential, derive the other from the Karmarkar condition, solve the field equations for \(\rho\), \(p_r\), \(p_t\), and \(\Delta\), and then impose boundary matching to an exterior Schwarzschild geometry. The condition is therefore a solution-generating mechanism rather than a complete model by itself [1610.09959].

Several exact families illustrate this pattern.

- With the **paraboloidal ansatz**
  \[
  e^{\lambda(r)}=1+\frac{r^2}{R^2},
  \]
  the Karmarkar equation integrates to
  \[
  e^{\nu(r)}=\Bigl(A+B\,\frac{r^2}{R^2}\Bigr)^2,
  \]
  leading to closed-form expressions for density, radial pressure, tangential pressure, and anisotropy, and to models compatible with Her X-1, LMC X-4, EXO 1785-248, PSR J1903+327, Vela X-1, and PSR J1614-2230 [1708.06220].

- For
  \[
  e^\lambda=\frac{1+ar^2}{1+br^2},
  \]
  one obtains
  \[
  e^\nu=\bigl[C_1 + C_2\sqrt{1+br^2}\bigr]^2,
  \]
  together with
  \[
  m(r)=\frac{(a-b)r^3}{2(1+ar^2)}, \qquad
  u(r)=\frac{(a-b)r^2}{1+ar^2},
  \]
  and a TOV balance
  \[
  0=-\frac{\nu'}{2}(\rho+p_r)-\frac{dp_r}{dr}+\frac{2}{r}(p_\perp-p_r),
  \]
  used for physically viable pulsar interiors such as 4U 1820-30 [2007.05182].

- With the Wyman IIa choice
  \[
  e^\nu=(A-Br^2)^2,
  \]
  the Karmarkar constraint yields
  \[
  e^\lambda = 1+16B^2C^2r^2,
  \]
  and closed-form expressions for \(\rho\), \(p_r\), \(p_t\), \(\Delta\), \(m(r)\), compactness, and surface redshift [1810.11324].

Across these models the same physical tests recur: regularity at the center, positivity of \(\rho\), \(p_r\), \(p_t\), monotonic decrease of density and pressures, causality \(0\le v_r^2,v_t^2\le 1\), energy conditions, adiabatic index bounds such as \(\Gamma>4/3\), TOV equilibrium, cracking criteria, Harrison–Zeldovich–Novikov stability, and bounds on compactness and redshift [1703.01724]. Matching conditions typically require continuity of \(g_{tt}\), \(g_{rr}\), and vanishing radial pressure at the boundary, though some modified-gravity constructions also impose continuity of \(\partial_r g_{tt}\) [2304.10623].

## 4. Use in modified gravity

The Karmarkar condition has been transplanted essentially unchanged into modified-gravity settings. In these cases it still links the metric potentials, while the matter variables are determined by the modified field equations.

In \(f(R)\) gravity, one study employed the class-I ansatz
\[
e^\lambda = 1 + a^2 r^2(1+br^2)^4,
\qquad
e^\nu = \Bigl[A-\frac{aB}{2b(1+br^2)}\Bigr]^2,
\]
and examined both an exponential model,
\[
f(R)=R+\alpha(e^{-\beta R}-1),
\]
and a power-law model,
\[
f(R)=R-(1-n)\mu^2\Bigl(\frac{R}{\mu^2}\Bigr)^n,
\]
with applications to Vela X-1, PSR J1614-2230, 4U 1608-52, Cen X-3, and 4U 1820-30 [2105.02731].

In \(f(R,T)\) gravity, the exponential model
\[
f(R,T)=R+\alpha(e^{-\beta R}-1)+\gamma T
\]
has been combined with
\[
\mathcal L_m=-\tfrac13(p_r+2p_t)
\]
and the ansatz
\[
e^\lambda = 1+\frac{a^2r^2}{(1+br^2)^4},
\qquad
e^\nu=\Bigl[A-\frac{aB}{2b(1+br^2)}\Bigr]^2,
\]
to study LMC X-4, EXO 1785-248, Cen X-3, and 4U 1820-30 [2304.10623].

In \(f(\mathscr R,\mathscr G)\) gravity, the Karmarkar relation is combined with Lake’s ansatz
\[
e^\nu = Q(1+Lr^2)^K,
\qquad
e^\lambda = 1+FLr^2(1+Lr^2)^{K-2},
\]
for the model
\[
f(\mathscr R,\mathscr G)=\mathscr R+\lambda \mathscr R^2 + \mathscr G^2,
\]
and matched to Schwarzschild exteriors for LMC X-4 and EXO 1785-248 [2005.03997].

In linear \(F(Q)\) gravity, the condition is used together with
\[
F(Q)=\delta_1 Q+\delta_2,
\qquad
e^\lambda = 1+b^2r^2\,\csch^2(fr^2+h),
\]
to produce
\[
e^\nu=\Biggl[A_1+\frac{B_1b}{2f}\ln\frac{e^{fr^2+h}-1}{e^{fr^2+h}+1}\Biggr]^2,
\]
with physical analysis for Cen X-3 [2505.15853].

These constructions indicate that the Karmarkar condition is theory-agnostic at the geometric level: it constrains the interior metric independently of whether the dynamics are governed by Einstein gravity, curvature-modified gravity, or symmetric teleparallel gravity.

## 5. Wormholes and shape-function generation

A second major application is static traversable wormholes. In the Morris–Thorne form
\[
ds^2=-e^{\nu(r)}dt^2+\frac{dr^2}{1-b(r)/r}+r^2d\Omega^2,
\]
one has
\[
e^\lambda=\frac{1}{1-b(r)/r}.
\]
Combining this with the integrated Karmarkar relation gives a direct link between the redshift function and the shape function [2012.02582].

A widely used result is
\[
e^\lambda = 1+\alpha e^\nu(\nu')^2,
\]
which implies
\[
b(r)=r-\frac{r}{1+\alpha e^{\nu(r)}[\nu'(r)]^2}.
\]
Thus, once \(\nu(r)\) is prescribed, the wormhole shape function is no longer arbitrary [2404.17846].

For the redshift choice
\[
\nu(r)=-\frac{2\xi}{r},
\]
one obtains
\[
\epsilon(r)=r-\frac{r^5}{r^4+4\xi^2 A e^{-2\xi/r}},
\]
and, after introducing a constant to enforce the throat condition,
\[
\epsilon(r)=r-\frac{r^5}{r^4+r_0^4(r_0-C)}+C, \qquad 0<C<r_0,
\]
yielding asymptotically flat traversable wormholes in \(f(R)\) gravity [2012.02582]. Closely related constructions appear in \(f(R,T)\) and \(f(\mathcal G,T)\) gravity, where the Karmarkar condition is used to generate viable shape functions satisfying throat, flare-out, and asymptotic-flatness conditions [2303.01737].

A recurrent question is whether the Karmarkar condition removes the need for exotic matter. The available results are mixed. In some \(f(R)\) models the resulting shape function can lead to wormholes with less, or possibly negligible, exotic matter for suitable parameter choices [2012.02582]. By contrast, a later \(f(R,T)\) study concluded that applying the Karmarkar condition to \(R+a_1^2R^2+a_2g(T)\)-type solutions does **not** eliminate the necessity of exotic matter, even though stable, static, traversable wormholes can still be obtained [2506.02074].

## 6. Scalar, time-dependent, and uniqueness developments

The scalar reformulation of the Karmarkar condition substantially broadened the subject. In static spherical symmetry it provides a constructive algorithm: once the density profile \(X_0(r)=8\pi\rho(r)\) is given, one derives
\[
X(r)\equiv X_0+2X_1=\frac{3}{r^3}\int_0^r X_0(\xi)\,\xi^2\,d\xi,
\]
then
\[
B^2(r)=\frac{1}{1-r^2(X_0+2X_1)/3},
\]
and finally the temporal potential from an integral involving \(Y_0-Y_1\) [2001.09378]. This yields all static embedding-class-I solutions compatible with the chosen density profile.

The same paper shows that the adiabatic dynamic case is highly restrictive. Under assumptions such as homogeneous density, vanishing complexity, conformal flatness, isotropic pressures, or shear-free geodesic motion, the Karmarkar condition drives the system back to the static Schwarzschild interior [2001.09378]. Dissipative dynamics are less restrictive: nontrivial radiating families with heat flow \(Z\neq 0\) are obtained in closed form.

A complementary time-dependent development used Lie symmetries to reduce the full Karmarkar partial differential equation for spherically symmetric metrics. For a Weyl-free collapsing ansatz, a radiating solution was constructed that satisfies the Santos heat-flux boundary condition when matched to the Vaidya exterior, thereby yielding a non-adiabatic stellar model with explicit matter variables \(\rho\), \(p_r\), \(p_t\), and \(q\) [2209.07054].

A separate uniqueness result sharpened the structural role of the condition. For a static anisotropic interior, the simultaneous requirements of **vanishing complexity**, **Karmarkar embedding**, and **conformal flatness** imply
\[
e^\lambda = \frac{1}{1-r^2/R^2},
\qquad
e^\nu=\Bigl[C-D\sqrt{1-r^2/R^2}\Bigr]^2,
\]
so that the unique solution is the Schwarzschild interior metric of constant density [2411.06988].

## 7. Recurring interpretive issues

Several points recur across the literature.

First, the Karmarkar condition is a **geometric embedding criterion**, not a guarantee of physical acceptability. Regularity, positivity, causality, energy conditions, stability inequalities, and appropriate boundary matching must still be checked separately [1708.06220]. This is why papers using the condition almost invariably supplement it with TOV analysis, sound-speed bounds, redshift estimates, and mass-radius constraints.

Second, embedding class I does not imply isotropic matter. On the contrary, one study states that the resulting model is necessarily anisotropic unless it degenerates into the Schwarzschild interior solution or flat space [1702.04192]. Much of the practical utility of the condition comes precisely from its compatibility with anisotropic pressures \(p_t\neq p_r\).

Third, the same condition appears in different algebraic guises because authors use different signatures, index conventions, and choices of dependent variable. The differential relation
\[
\frac{2\nu''}{\nu'}+\nu'=\frac{\lambda'e^\lambda}{e^\lambda-1}
\]
and the integrated forms involving either \(\int\sqrt{e^\lambda-1}\,dr\) or \(e^\lambda-1\propto e^\nu(\nu')^2\) are all standard manifestations of the same class-I restriction [1610.09959].

Finally, the method is powerful but not unconstrained. Physical viability can depend sensitively on model parameters. In one anisotropic stellar solution the parameter \(c\) controls the stiffness of the equation of state, with smaller \(c\) leading to stiffer configurations [1610.09959]. In a charged Bardeen-star model, acceptable behavior occurs for
\[
n\in[1.8,7)\setminus\{2,4,6\},
\]
while the special values \(n=2,4,6\) lead to pathologies such as superluminal sound speeds or negative pressures [2007.02409]. A plausible implication is that the Karmarkar condition narrows geometric freedom, but does not remove the need for delicate parameter selection consistent with observation and stability.

In contemporary relativistic astrophysics and gravitational theory, the Karmarkar condition therefore occupies a dual role: it is both a precise criterion for class-I embeddability and a practical exact-solution framework linking geometry, anisotropy, and boundary data across compact stars, wormholes, and dynamical collapse.

Source: https://www.emergentmind.com/topics/karmarkar-condition