1 Introduction

Modern cosmological observations such as the luminosity distance [16] and the WMAP measurements [7, 8] of the cosmic microwave background radiation (CMBR) have provided strong evidence for the presence of dark energy. One of the main assumptions of the standard cosmological model used in fitting these observational data is spatial homogeneity of the Universe. We cannot nevertheless exclude the presence of a local inhomogeneity around us which could affect our interpretation of the cosmological data [911].

So far most of the efforts in estimating these effects have consisted in using some ansatz for the profile of the inhomogeneity and then calculating numerically the effects on cosmological observables. Such an approach has the limitation of depending on the particular functional form chosen to model the local inhomogeneity, and of relying completely on numerical calculations. In order to provide a more general study of this effects we approach the problem analytically and we derive a low-redshift formula for the luminosity distance for an observer at the center of a matter inhomogeneity in the presence of a cosmological constant modeled by a LTB solution.

The paper is organized as follows. We first calculate the low-redshift expansion of the null radial geodesics for a central observer and then use it to obtain the luminosity distance. The calculation is based on using the analytical solution and the geodesic equation expressed in the same coordinates of the analytical solution. The formula obtained is then compared to the numerical calculation of the luminosity distance to test its accuracy. In the appendix we give details of the derivation and the simplified formulas in the limit in which the inhomogeneity can be treated perturbatively.

2 LTB solution with a cosmological constant

The LTB solution can be expressed in the form [1214]

$$\begin{aligned} \hbox {d}s^2=-\hbox {d}t^2+\frac{(R,_{r})^2 \mathrm{d}r^2}{1+ 2E(r)}+R^2 \hbox {d}\Omega ^2, \end{aligned}$$
(1)

where \(R\) is a function of the time coordinate \(t\) and the radial coordinate \(r\), \(E(r)\) is an arbitrary function of \(r\), and \(R_{,r}=\partial _rR(t,r)\). We get from the Einstein field equations

$$\begin{aligned} \left( {\frac{\dot{R}}{R}}\right) ^2&= \frac{2 E(r)}{R^2}+\frac{2M(r)}{R^3}+\frac{\Lambda }{3}, \end{aligned}$$
(2)
$$\begin{aligned} \rho (t,r)&= \frac{2M,_{r}}{R^2 R,_{r}}, \end{aligned}$$
(3)

where \(M(r)\) is an arbitrary function of \(r\) which arises in the integration of one of the Einstein equations with respect to time, \({\dot{R}}=\partial _tR(t,r)\), and we assume \(c=8\pi G=1\).

The derivation of the analytical solution [15] is based on the introduction of a new coordinate \(\eta =\eta (t,r)\) and a variable \(a\) by

$$\begin{aligned} \left( \frac{\partial \eta }{\partial t}\right) _r=\frac{r}{R}\equiv \frac{1}{a}, \end{aligned}$$
(4)

and new functions by

$$\begin{aligned} \rho _0(r)\equiv \frac{6 M(r)}{r^3},\quad k(r)\equiv -\frac{2E(r)}{r^2}. \end{aligned}$$
(5)

We then express Eq. (2) in the form

$$\begin{aligned} \left( \frac{\partial a}{\partial \eta }\right) ^2 =-k(r) a^2+\frac{\rho _0(r)}{3} a+\frac{\Lambda }{3} a^4, \end{aligned}$$
(6)

where \(a\) is now a function of \(\eta \) and \(r\), \(a=a(\eta ,r)\). The coordinate \(\eta \), which can be considered a generalization of the conformal time in a homogeneous FLRW universe, is defined implicitly by Eq. (4). The relation between \(t\) and \(\eta \) is

$$\begin{aligned} t(\eta ,r)=\int _0^{\eta }{a(x,r)~\hbox {d}x}+t_b(r), \end{aligned}$$
(7)

which can be computed analytically, and which involve elliptic integrals of the third kind [16].

The function \(t_b(r)\) is a constant of integration, also called the bang function, since at time \(t=t_b(r)\) we have \(a(t_b(r),r)=0\). This corresponds to the possibility that the big bang can happen at different times at different positions from the center in a LTB space. Its gradient is related to the decaying modes of an early universe density perturbation, and which CMB observations strongly constrain to be small. In the rest of this paper we will consider a homogeneous big bang, i.e. we will have

$$\begin{aligned} t_b(r)=0, \end{aligned}$$
(8)

which in terms of early universe cosmological perturbations corresponds to growing modes only. The solution is given by

$$\begin{aligned} a(\eta ,r) =\frac{\rho _0(r)}{3\phi \left( \frac{\eta }{2 };g_2(r),g_3(r)\right) +k(r)}, \end{aligned}$$
(9)

where \(\phi (x;g_2,g_3)\) is the Weierstrass elliptic function, which satisfies the differential equation

$$\begin{aligned} \left( \frac{\mathrm{d}\phi }{\mathrm{d}x}\right) ^2=4\phi ^3-g_2\phi -g_3, \end{aligned}$$
(10)

and

$$\begin{aligned} g_2=\frac{4}{3}k(r)^2 ,\quad g_3=\frac{4}{27} \left( 2k(r)^3 -\Lambda \rho _0(r)^2\right) . \end{aligned}$$
(11)

In this paper we will choose the so called FLRW gauge, i.e. the coordinate system in which \(\rho _0(r)\) is constant. It is convenient to write the solution in terms of dimensionless quantities [17]:

$$\begin{aligned} k(r)&= (a_0 H_0)^2 K(r), \end{aligned}$$
(12)
$$\begin{aligned} \eta&= T(a_0 H_0)^{-1},\end{aligned}$$
(13)
$$\begin{aligned} \rho _0(r)&= 3 \Omega ^0_M(r) a_0^3 H_0^2,\end{aligned}$$
(14)
$$\begin{aligned} \Lambda&= 3 \Omega _{\Lambda }H_0^2, \end{aligned}$$
(15)
$$\begin{aligned} a(\eta ,r)&= a(T(a_0 H_0)^{-1},r)=\tilde{a}(T,r), \end{aligned}$$
(16)

to obtain

$$\begin{aligned} \tilde{a}(T,r)&= \frac{3 a_0\Omega ^0_M(r)}{K(r)+12 \tilde{\phi } (T,g_2(r),g_3(r))},\end{aligned}$$
(17)
$$\begin{aligned} g_2(r)&= \frac{K(r)^2}{12},\end{aligned}$$
(18)
$$\begin{aligned} g_3(r)&= \frac{1}{432} (2 K(r)^3-27 \Omega _{\Lambda } (\Omega ^0_M(r))^2). \end{aligned}$$
(19)

We relate the solution expressed in the two different forms by multiplying every term by \((a_0 H_0)^2\) and using the original dimensionful quantities \(\eta ,k(r),\rho _0(r)\):

$$\begin{aligned} a(\eta ,r)&= \frac{\rho _0(r)}{k(r)+12 \phi (\eta ,g_2(r),g_3(r))}=\tilde{a}(T,r),\end{aligned}$$
(20)
$$\begin{aligned} \phi (\eta ,r)&= \tilde{\phi }(\eta (a_0 H_0),r)(a_0 H_0)^2=\tilde{\phi }(T,r)(a_0 H_0)^2. \end{aligned}$$
(21)

In this form \(H_0\) is an arbitrary scale which we set equal to the observed value, which will also coincide with the \(H_0^\mathrm{{LTB}}\) by appropriately setting the value of \(T_0\) as explained in more detail in [17]. Without any loss of generality we can choose a coordinate system in which \(\rho _0(r)=\hbox {const}.\), implying that \(\Omega ^0_M(r)=\hbox {const}.\), which we will simply denote as \(\Omega _M\) in the rest of the paper.

3 Geodesic equations and luminosity distance

We will solve [18] the null geodesic equation written in terms of the coordinates \((\eta ,r)\). We then perform a local expansion of the solution around \(z=0\) corresponding to the point \((t_0,0)\), or equivalently \((\eta _0,0)\), where \(t_0=t(\eta _0,0)\).

The luminosity distance for an observer located at the center of a LTB space-time is given by

$$\begin{aligned} D_\mathrm{L}(z)\!=\!(1\!+\!z)^2 R(t(z),r(z)) \!=\!(1+z)^2 r(z)a(\eta (z),r(z)),\nonumber \\ \end{aligned}$$
(22)

where \((t(z),r(z))\) or \(((\eta (z),r(z))\) is the solution of the null radial geodesic equations as a function of \(z\). The equation for geodesics can easily be obtained in the coordinates \((t,r)\),

$$\begin{aligned} \frac{\mathrm{d}t}{\mathrm{d}r}=-\frac{R_{,r}(t,r)}{\sqrt{1+2E(r)}}, \end{aligned}$$
(23)

where \(t=T(r)\) is the time coordinate along the light-like radial geodesic as a function of the coordinate \(r\). Using the definition of the redshift and by following the evolution of a short time interval along the null geodesic \(T(r)\), from Eq. (23) we get [19]

$$\begin{aligned} {\mathrm{d}r\over \mathrm{d}z}&= {\sqrt{1+2E(r(z))}\over {(1+z){\dot{R}}_{,r}[r(z),t(z)]}},\nonumber \\ {\mathrm{d}t\over \mathrm{d}z}&= -{R_{,r}[r(z),t(z)]\over {(1+z){\dot{R}}_{,r}[r(z),t(z)]}}. \end{aligned}$$
(24)

We now [18] express the above geodesics equations in the coordinates \((\eta ,r)\):

$$\begin{aligned} \frac{\mathrm{d} \eta }{\mathrm{d}z}&= -\frac{\partial _r t(\eta ,r)+F(\eta ,r)}{(1+z)\partial _{\eta }F(\eta ,r)} \equiv p(\eta ,r),\end{aligned}$$
(25)
$$\begin{aligned} \frac{\mathrm{d}r}{\mathrm{d}z}&= \frac{a(\eta ,r)}{(1+z)\partial _{\eta }F(\eta ,r)} \equiv q(\eta ,r), \end{aligned}$$
(26)

where

$$\begin{aligned} F(\eta ,r)\equiv \frac{\ R_{,r}}{\sqrt{1+2E(r)}}=\frac{1}{\sqrt{1-k(r)r^2}} [\partial _r (a(\eta ,r) r)-a^{-1}\partial _{\eta } (a(\eta ,r) r)\, \partial _r t(\eta ,r)]. \end{aligned}$$
(27)

where the functions \(p,q,F\) have explicit analytical forms, making them particularly suitable to derive analytical results.

4 Formula for the luminosity distance

In order to obtain the redshift expansion of the luminosity distance we need to expand the relevant functions:

$$\begin{aligned} k(r)=(a_0 H_0)^2 K(r)=K_0+K_1 r+K_2 r^2+\cdots . \end{aligned}$$
(28)

We will use Eq. (7) to obtain the expansion for \(t(\eta ,r)\) from the exact solution for \(a(\eta ,r)\).

After integration we obtain

$$\begin{aligned}&t(\eta ,r)=\int _0^{{\eta _0}} a(x,r) \, \hbox {d}x+ a(\eta _0,r)(\eta -\eta _0)\\&\quad +\frac{1}{2} a'(\eta _0,r)(\eta -\eta _0)^2 +\frac{1}{6} a''(\eta _0,r)(\eta -\eta _0)^3+\cdots . \end{aligned}$$

Using the expression above we obtain the expansion of \(t(\eta ,r)\) directly from the expansion of \(a(\eta ,r)\), except for the first term which involves the integral of an elliptic function. The expansion with respect to the radial coordinate \(r\) is straightforward and we will not report here all the intermediate results but only the final expression for the solution of the geodesics equations. In this paper we provide the first derivation of the expansion of \(t(\eta ,r)\), while in previous work the coefficients were not evaluated explicitly in terms of \(K_i\). As a consequence the formulas we obtain only depend on \(K_i\), and they do not require any addition calculation.

We now find a local Taylor expansion in redshift for the geodesics equations [9], and we then calculate the luminosity distance. The general expression is rather cumbersome, and is given in the appendix. Here we will report only the result assuming \(K_0=0\), which still shows the general nature of the effect. From a physical point of view fixing \(K_0\) does not affect the value of \(H_0\), but it does affect the age of the Universe as shown in [17]. Yet, using the freedom in the choice of the bang function, it is possible to obtain any age, by appropriately fixing it to a constant value \(t_b(r)=t_0\), while since \(t'_b(r)=0\) there would not be any problem related with the compatibility with early universe perturbations which should not contain decaying modes.

We will expand the solution of the geodesic equations according to

$$\begin{aligned} r(z)&= r_1 z+r_2 z^2+\cdots , \end{aligned}$$
(29)
$$\begin{aligned} \eta (z)&= \eta _1 z+\eta _2 z^2+\cdots , \end{aligned}$$
(30)
$$\begin{aligned} K(z)&= K_1 z+K_2 z^2+\cdots . \end{aligned}$$
(31)

After substituting in the geodesics equation we can map the solution of the system of differential equations into a system of algebraic equations for the coefficients of the above expansions. The general expression is rather long and complicated; therefore, here we will report the much simpler case when \(K_0=0\), while in the appendix we give more general formulas. The motivation for considering the \(K_0\) case is to focus on the effects of the inhomogeneities which are captured by \({K_1,K_2}\), while \(K_0\) corresponds to the homogeneous component of the curvature function, which in the absence of inhomogeneities is simply the curvature of a FLRW model, and as such it is not associated to any physical effect not already known from standard cosmology.

For the geodesics we get

$$\begin{aligned} \eta _1&= -\frac{K_1 (T_0-1) T_0+3 \Omega _M}{3 a_0 H_0 \Omega _M},\end{aligned}$$
(32)
$$\begin{aligned} \eta _2&= \frac{1}{36 a_0 H_0 \Omega _{\Lambda } \Omega _{M}^2)}\!\left[ \!3 \Omega _{\Lambda } \Omega _{M} (9 \Omega _{M}^2 {-} 4 K_2 ({-}1 {+} T_0) T_0)+\, 3 K_1 \Omega _{\Lambda } \Omega _{M} (-4 + (4 - 9 \Omega _{M}) T_0 \right. \nonumber \\&+ (-4 +\, 9 \Omega _{M}) T_0^2) + K_1^2 T_0 (2 \Omega _{\Lambda } (2 + (-4 + 3 \Omega _{M}) T_0 -\, 6 (-1 + \Omega _{M}) T_0^2 + 3 (-1 + \Omega _{M}) T_0^3) \nonumber \\&\left. -\, 4 (-1 {+} T_0) WZ {+} \Omega _{M} (-4 {+} T_0 + 3 T_0 WZ))\right] , \end{aligned}$$
(33)
$$\begin{aligned} r_1&= \frac{1}{a_0 H_0},\end{aligned}$$
(34)
$$\begin{aligned} r_2&= -\frac{1}{12 a_0 H_0 \Omega _{M}}\left[ (9 \Omega _{M}^2 + K_1(-4 + (4 - 6 \Omega _{M}) T_0+\, (-4 + 6 \Omega _{M}) T_0^2)\right] ,\end{aligned}$$
(35)
$$\begin{aligned} r_3&= \frac{K_1^2}{{72 a_0 H_0 \Omega _{\Lambda } \Omega _M^2}}\left[ 2 \Omega _{\Lambda } (6 (3 \Omega _M^2-4 \Omega _M+1) T_0^4-\,12 (3 \Omega _M^2-4\Omega _M +1) T_0^3{+}3 (6 \Omega _M^2{-}13 \Omega _M+4) T_0^2 \right. \nonumber \\&+\, 2 (9 \Omega _M-4)T_0+4) +3 \Omega _M^2 T_0 (3 T_0 \zeta _0+T_0-4) -\,2 \Omega _M (9 T_0^2 \zeta _0+T_0^2-6 T_0 \zeta _0-4 T_0 \nonumber \\&+\,6 \zeta _0-2)+8 (T_0^2-T_0+1)\zeta _0)+\,12 K_1 \Omega _{\Lambda } \Omega _M^2((9 \Omega _M-8) T_0^2+(8-9 \Omega _M) T_0-5) \nonumber \\&+\,3\Omega _{\Lambda } \Omega _M (K_2 ((8-12 \Omega _M) T_0^2\left. +4 (3 \Omega _M-2) T_0+8)+\,3 (9 \Omega _M-4) \Omega _M^2) )\right] , \end{aligned}$$
(36)

where

$$\begin{aligned} T_0{(a_0 H_0)}^{-1}&= \eta _0,\end{aligned}$$
(37)
$$\begin{aligned} \zeta _0&= \zeta (\eta _0,g_2(0),g_3(0)), \end{aligned}$$
(38)

and \(\zeta \) is the Weierstrass zeta function satisfying the equation

$$\begin{aligned} \frac{\mathrm{d}\zeta (z,g_2(r),g_3(r))}{\mathrm{d}z}=-\phi (z,g_2(r),g_3(r)). \end{aligned}$$
(39)

The presence of this last function in the formulas obtained above is due to the fact that the function \(t(\eta ,r)\), which enters the geodesics equation is the integral of \(a(\eta ,r)\) and depends on \(\phi (z)\), has an integral that will depend on \(\zeta (z)\). In the case of a LTB solution without a cosmological constant this integral can be performed without the introduction of a new function, while in this case it requires the introduction of \(\zeta _0\) in the final formula.

The procedure to reduce the analytical formula to this form is rather complicated since it involves the need to express wherever possible all the intermediate expressions in terms of physically meaningful quantities and to use the properties of the elliptic functions. We give more details in the appendix. We see that the effects of inhomogeneities start to show at first and second order, respectively, for \(\eta (z)\) and \(r(z)\). Contrary to the case of a vanishing cosmological constant, \(T_0\) now appears explicitly in the formula. This is due to the fact that in a LTB model without cosmological constant it is possible to express explicitly \(T_0\) in terms of \(K_0\) and \(q_0\), the central value of the deceleration parameter, while in our case we have

$$\begin{aligned} q_0&= -\frac{\ddot{a}(t_0,0)a(t_0,0)}{\dot{a}(t_0,0)^2}, =\frac{3\Omega _M}{2}-K_0-1 \nonumber \\&= -\frac{a_0^6 H_0^6\left( K_0^3-54 \Omega _{\Lambda } \Omega _M^2\right) +9 a_0^4 H_0^4 K_0^2 \phi _0 +27 a_0^2 H_0^2 K_0 \phi _0^2+27 \phi _0^3}{2 a_0^6 H_0^6 \left( 2 K_0^3-27 \Omega _{\Lambda } \Omega _M^2\right) +18 a_0^4 H_0^4 K_0^2 \phi _0 -54 \phi _0^3}, \end{aligned}$$
(40)

where we have used the relations reported in the appendix to simplify the expression, and we have

$$\begin{aligned} t_0&= t(\eta _0,0), \end{aligned}$$
(41)
$$\begin{aligned} \phi _0&= \phi (\eta _0,g_2(0),g_3(0)). \end{aligned}$$
(42)

Such a relation implicitly constrains the value of \(\phi _0\) in terms of cosmological parameters but it is not very useful to explicitly determine \(T_0\), since it would involve to solve a cubic equation first and then to apply the inverse of an elliptic function, while in the vanishing cosmological constant case there exists a simple analytical relation because the Weierstrass function reduces to a trigonometric expression, as shown in [17].

After substituting in the formula for the luminosity distance and expanding we finally get

$$\begin{aligned} D^{\Lambda \mathrm{{LTB}}}_\mathrm{L}(z)&= (1+z)^2r(z)a^{\Lambda \mathrm{{LTB}}}(\eta (z),r(z))=D^{\Lambda \mathrm{{LTB}}}_1 z+D^{\Lambda \mathrm{{LTB}}}_2 z^2+D^{\Lambda \mathrm{{LTB}}}_3 z^3+\cdots \end{aligned}$$
(43)
$$\begin{aligned} D^{\Lambda \mathrm{{LTB}}}_1&= \frac{1}{H_0},\end{aligned}$$
(44)
$$\begin{aligned} D^{\Lambda \mathrm{{LTB}}}_2&= -\frac{1}{4 H_0}(-4 + 3 \Omega _{M} + 2 K_1 (-1 + T_0) T_0), \end{aligned}$$
(45)
$$\begin{aligned} D^{\Lambda \mathrm{{LTB}}}_3&= \frac{1}{24 H_0 \Omega _{\Lambda } \Omega _M}\left[ K_1^2 (2 \Omega _{\Lambda } T_0 ((6 \Omega _M-5) T_0^3\right. -\,2 (6 \Omega _M-5) T_0^2+6 (\Omega _M-1) T_0+2) \nonumber \\&+\,\Omega _M T_0 (3 T_0 \zeta _0+T_0-4)-\,4 (T_0^2 \zeta _0-T_0 \zeta _0+\zeta _0-1)) \nonumber \\&+\,4 K_1 \Omega _{\Lambda } \Omega _M ((9 \Omega _M-8) T_0^2+\,(8-9 \Omega _M)T_0-2) \nonumber \\&+\,3 \Omega _{\Lambda } \Omega _M (-4 K_2 (T_0-1) T_0\left. +\,9 \Omega _M^2-10 \Omega _M)\right] , \end{aligned}$$
(46)

where we used the Einstein equation at the center, \((\eta =\eta _0,r=0)\),

$$\begin{aligned}&1=\Omega _k(0)+\Omega _M+\Omega _{\Lambda }=-K_0+\Omega _M+\Omega _{\Lambda },\end{aligned}$$
(47)
$$\begin{aligned}&\Omega _k(r)=-\frac{k(r)}{H_0^2 a_0^2},\end{aligned}$$
(48)
$$\begin{aligned}&\Omega _M=\frac{\rho _0}{3 H_0^2 a_0^3},\end{aligned}$$
(49)
$$\begin{aligned}&\Omega _{\Lambda }=\frac{\Lambda }{3 H_0^2}. \end{aligned}$$
(50)

and \(T_0=\eta _0(a_0 H_0)\) is determined numerically by imposing the conditions [17]

$$\begin{aligned}&H^\mathrm{{LTB}}=\frac{\partial _t a(t,r)}{a(t,r)}=\frac{\partial _{\eta } a(\eta ,r)}{a(\eta ,r)^2}=(a_0 H_0)\frac{\tilde{a}'(T,r)}{a(T,r)^2}, \end{aligned}$$
(51)
$$\begin{aligned}&a(\eta _0,0)=a_0, \end{aligned}$$
(52)
$$\begin{aligned}&H^\mathrm{{LTB}}(\eta _0,0)=H_0 . \end{aligned}$$
(53)

Finally we observe that all the above formulas reduce to the well known FLRW form in the homogeneous limit limit, i.e. when \(\{K_1=K_2=0\}\).

5 Testing the accuracy of the formula

In order to verify the accuracy of the formula obtained we consider the example of an inhomogeneity described by

$$\begin{aligned} K(r)=\epsilon (1+r+r^2), \end{aligned}$$
(54)

where \(\epsilon \) parameterizes the deviation from a homogeneous cosmological model. We then compute the corresponding luminosity distance by integrating numerically the Einstein equations and the geodesic equations, and we compare the numerical results to the redshift expansion for different values of \(\epsilon \) (Fig. 1).

Fig. 1
figure 1

The percentual error \(\Delta =100 \frac{D^\mathrm{{LTB}}_\mathrm{{num}}-D^\mathrm{{LTB}}_\mathrm{{Taylor}}}{D^\mathrm{{LTB}}_\mathrm{{num}}}\) between the numerically computed \(D^\mathrm{{LTB}}_\mathrm{{Num}}(z)\) and the Taylor third order expansion \(D^\mathrm{{LTB}}_\mathrm{{Taylor}}(z)\) is plotted as a function of the redshift for the LTB solution corresponding to \(K(r)=\epsilon (1+r+r^2)\). The solid line corresponds to \(\epsilon =0.075\), the dot-dashed line to \(\epsilon =0.05\) and the dashed line to \(\epsilon =0.1\)

As can be seen in the figure the formula is quite accurate up to a redshift of \(0.2\), where according to the value of \(\epsilon \) the percentual error is approximately between 0.3 and \(0.7~\%\). The one provided here is only an example to give a preliminary test of the accuracy of the formula, and as such it does not have any direct connection with the actual size of an inhomogeneity which may be surrounding us. We will investigate more extensively in a separate upcoming paper the range of applicability of the formula in relation with observational data fitting. We also report the percentual error of the formula for the radial coordinate \(r(z)\) as a function of the redshift. It is important to observe that \(r(z)\) depends on our choice of coordinates, which is \(\rho _0(r)=\hbox {const}.\), but it is still useful to check its accuracy since it is used in the derivation of the formula for the luminosity distance. This latter one is a physical observable and so its relation with the redshift is independent of our coordinate choice, except for the fact that the coefficients of the Taylor expansion of \(K(r)\) would change if we would choose another coordinate system (Fig. 2).

Fig. 2
figure 2

The percentual error \(\Delta =100 \frac{r^\mathrm{{LTB}}_\mathrm{{num}}-r^\mathrm{{LTB}}_\mathrm{{Taylor}}}{r^\mathrm{{LTB}}_\mathrm{{num}}}\) between the numerically computed \(r^\mathrm{{LTB}}_\mathrm{{Num}}(z)\) and the Taylor third order expansion \(r^\mathrm{{LTB}}_\mathrm{{Taylor}}(z)\) is plotted as a function of the redshift for the LTB solution corresponding to \(K(r)=\epsilon (1+r+r^2)\). The solid line corresponds to \(\epsilon =0.075\), the dot-dashed line to \(\epsilon =0.05\), and the dashed line to \(\epsilon =0.1\)

6 Conclusion

We have derived the analytical low-redshift expansion of the luminosity distance for a central observer at the center of a spherically symmetric matter inhomogeneity in the presence of a cosmological constant. We have first solved the null radial geodesic equation and calculated the local redshift for \(r(z)\) and \(\eta (z)\), and we have then used these to calculate the expansion of the luminosity distance. The formulas obtained take a simpler form in the case in which \(K_0=0\), while in general they are rather long and complicated, but they can be reduced to a more tractable form in the limit in which the deviation from homogeneity can be treated perturbatively.

The formulas we have derived can be used to understand the physical effects of local inhomogeneities in the presence of a cosmological constant. It has the advantage, contrary to previous numerical studies, of not depending on any functional ansatz for the profile of the local inhomogeneity. This makes it particularly useful to study possible low-redshift inhomogeneities in a model independent way in the regime in which perturbation theory cannot be applied.