This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Mass reconstruction in disk like galaxies using strong lensing and rotation curves: The Gallenspy package

Itamar A. López Trilleras [email protected] Leonardo Castañeda [email protected] Observatorio Astronómico Nacional, Universidad Nacional de Colombia, Carrera 30 Calle 45-03, P.A. 111321 Bogotá, Colombia
Abstract

Two methods for mass profile reconstruction in disk-like galaxies are used in this work, the first one is done with the rotation curve’s fit based on the data of circular velocity obtained observationally in a stellar system, while the other method is focused on the Gravitational Lensing Effect (GLE). For these mass reconstructions, two routines developed in the programming language python were used: one of them is Galrotpy [1], which was built by members of the Galaxies, Gravitation and Cosmology group from the Observatorio Astronómico Nacional of the Universidad Nacional de Colombia and whose funtionality is applied in the rotation curves, the second routine is Gallenspy which was created in the development of this work [2], and is focused in the GLE. It should be noted that both routines perform a parametric estimation from Bayesian statistics, which allow to obtain the uncertainties of the estimated values. Finally the great power of combining galactic dynamics and GLE is shown. For this purpose the mass profiles of the galaxies SDSSJ2141-001 and SDSSJ1331+3628 were reconstructed with Galrotpy and Gallenspy, the results obtained are compared with those reported by other authors regarding these systems.
Keywords: Mass reconstructions, GLE, rotational curves, mass profiles, Gallenspy, Galrotpy.

codecodefootnotetext: https://github.com/ialopezt/GalLenspy

1 Introduction

The study of mass distribution in galaxies allows to obtain valuable information about the universe structure on a large scale and the process of stellar evolution. For this reason, the rotation curves and the GLE present in galaxies are relevant, because they allow the analysis of the distribution of baryonic and dark matter in these systems. With this approach we can obtain significant restrictions on values such as cosmological densities, the Hubble constant, and the cosmological constant among others.

The analysis of the rotation curves is done based on the Newtonian gravitation theory, in this case is important to point out that the flatness in the contours of these curves is the cause why dark matter is included by other authors in different mass reconstructions [1, 3, 4, 5]. From this perspective, dark matter reconciles the keplerian decrease with the observations done along the astronomy history, which forces to include the superposition of different mass components in the fitting of the rotation curves with observational data.

In addition to the rotation present in the galaxies, GLE has been evidenced in many of them, an effect related to the deflection that the light coming from a background source presents due to gravitational potential of these stellar systems. Thanks to the achievements of the General Relativity Theory, it is possible to estimate the mass distribution of these galaxies based on the deflector angle of the light beams [6, 7]. For this reason this effect can be complemented with the dynamical analysis of mass reconstruction profiles in galaxies.

Between the types of GLE observations present in galaxies and clusters, the formation of Einstein rings and giant arcs is very common. This is evidenced in this work by the mass reconstructions of the galaxies SDSSJ2141-001 and SDSSJ1331+3628, regarding to the rotational velocity data of this galaxies it is important to clarify that these were obtained from Dutton et.al. [3, 5] hence the mass profiles reconstruction was done with both methods.

Finally it is important to point out that in this work, the advantages of combining GLE and galactic dynamics are presented, showing that both methods are complementary and powerful in mass reconstructions.

2 Galactic Dynamics

In the past years, has been evidenced that the disk-like galaxies have different mass components, these can be classified into four kinds: dark matter halo, stellar halo, disk, and bulge. These components interact in concordance with Newtonian dynamics, where each mass distribution is essential in the understanding of the functional form of the gravitational potential for these stellar systems.

Refer to caption
Figure 1: Scheme of the main mass components of disk-like galaxies.

Since the gravitational force (F\vec{F}) present in galaxies is conservative [8], it can be related to the gravitational potential (Φ\Phi) like:

F=Φ,\vec{F}=-\nabla\Phi, (1)

This implies that to the mass volumetric density (ρ\rho) and Φ\Phi are related by means of the Poisson equation [1]:

2Φ(r,t)=4πGρ(r,t),\nabla^{2}\Phi(\vec{r},t)=4\pi G\rho(\vec{r},t), (2)

where GG is the universal gravitation constant.

Due to the linearity of the Poisson equation [9, 1], in the case of a galaxy with N components and respective volumetric mass densities ρ1\rho_{1}, ρ2\rho_{2}, …ρN\rho_{N}, the total density of this system is:

ρ=i=1Nρi,\rho=\displaystyle\sum_{i=1}^{N}\rho_{i}, (3)

Therefore the total gravitational potential is expressed like Φ=i=1NΦi\Phi=\displaystyle\sum_{i=1}^{N}\Phi_{i}.

As the circular velocity (in the equatorial plane) associated to a gravitational potential Φ(R,z=0)\Phi(R,z=0) in disc-like galaxies is described by:

Vc2(R)=RΦr|r=R,V^{2}_{c}(R)=R\dfrac{\partial\Phi}{\partial r}|_{r=R}, (4)

the total circular velocity of this kind of galaxies is expressed as a superposition of the velocities belonging to each gravitational potential, which is evidenced in the equation 5:

Vc2=i=1NVc(i)2,V_{c}^{2}=\displaystyle\sum_{i=1}^{N}V_{c(i)}^{2}, (5)

and therefore it is possible to make reconstructions of mass profiles in disk-like galaxies through the fitting of rotation curves with the observational values of circular velocity, as shown in figure 2.

Refer to caption
Figure 2: Fitting of rotational velocities with the rotation curve belonging to the galaxy NGC6361 (the observational data are presented with black dots and the fitting curve is the continuous line), in this case the Miyamoto-Nagai profile was used for the bulge (gray dotted line) and the stellar disk (red dotted line), while the Navarro-Frenk-White (green dotted line) belongs to the dark matter halo.

3 Gravitational Lensing Effect

In GLE, the relation between the coordinates of the images θ\vec{\theta} and the source β\vec{\beta} is given by the equation:

β=θθψ(θ),\vec{\beta}=\vec{\theta}-\nabla_{\vec{\theta}}\psi(\vec{\theta}), (6)

where ψ\psi is the deflector potential, which has the information of the lens and the cosmological distances. For the case of mass profiles with spherical symmetry, it is possible to assume that [10]

ψ(θ)=20|θ|θκ(θ)ln(|θ|θ)𝑑θ,\psi(\vec{\theta})=2\int_{0}^{|{\vec{\theta}}|}\theta^{{}^{\prime}}\kappa(\theta^{{}^{\prime}})ln\bigg{(}\dfrac{|{\vec{\theta}|}}{\theta^{{}^{\prime}}}\bigg{)}d\theta^{{}^{\prime}}, (7)

where κ\kappa is the convergence, defined as

κ=ΣΣcrit\kappa=\dfrac{\Sigma}{\Sigma_{crit}} (8)

where Σ\Sigma is the superficial mass density and Σcrit\Sigma_{crit} is given by the relation

Σcrit=c24πGDsDdDds,\Sigma_{crit}=\dfrac{c^{2}}{4\pi G}\dfrac{D_{s}}{D_{d}D_{ds}}, (9)

in this case, cc is the speed of light, DdD_{d}, DsD_{s} and DdsD_{ds} are the angular diameter distances between observer-lens, observer-source and lens-source respectively.

Additionally, the mapping between the planes of the lens and the source is done through the jacobian transformation matrix

Ai,j=βiθj,A_{i,j}=\dfrac{\partial\beta_{i}}{\partial\theta_{j}}, (10)

for i,j=1,2i,j=1,2.

With this transformation matrix, the magnification of the images can be defined as

μ=1|detA|,\mu=\dfrac{1}{|detA|}, (11)

therefore the critical curve is the set of points in the lens plane where |detA|=0{|detA|}=0.

Note: The set of points in the source plane, which through the equation 6 belongs to the critical points is denominated caustic curve.

4 Combining GLE and Galactic Dynamics

Due to the superposition between the different mass distributions in galaxies, there are mass profiles reconstructions done with galactic dynamics and other with lensing where the obtention of parameters does not occur within acceptable reliability regions [3].

A solution proposal for this problem has been proposed by other authors [11, 3], regarding the combination of these mass reconstructions methods, which means taking advantage of the geometry used for each one of them.

For this purpose it must be taken into account, that while the mass projection in the galactic dynamics is done in the equatorial plane of the galaxy, in the case of the GLE the operator Σ\Sigma is projected in the plane (θ1\theta_{1}, θ2\theta_{2}) where the deflected images are formed.

Refer to caption
Figure 3: Illustration of the geometries used in galactic dynamics and GLE for the mass projection in 2-D based on what was stated by Dutton et al [4].

In figure 3, the geometries belonging to the methods of mass reconstruction used in this work are illustrated, wherein the GLE the projection of mass in a cylinder through the line of sight zz and within a radius ReinsR_{eins} restricted by the position of the deflected images is done, which from the formalism of strong lensing is related to the formation of the Einstein ring [3] and is described by the equation 12.

Reins(MeinsπΣcrit)1/2,R_{eins}\approx\Bigg{(}\dfrac{M_{eins}}{\pi\Sigma_{crit}}\Bigg{)}^{1/2}, (12)

with MeinsM_{eins} the mass projected in the cylinder of figure 3.

In the case of mass projection from galactic dynamics, it corresponds to enclosed spheres of differents radius due to the estimated circular velocities in the galaxy. This geometrical approach is optimal, as long as the disc has an inclination, so that the observer can see it from its edges.

Based on the theory previously shown, the combination of GLE and galactic dynamics for this work is proposed around the restrictions in the parameter space that both methods can provide, in such a way that it is possible to distinguish more clearly the gravitational contribution of each mass component in disc-like galaxies.

5 Gallenspy

Gallenspy is an open source code created in python, designed for the mass profiles reconstruction in disk-like galaxies using GLE. It is important to note that this algorithm allows to invert numerically the lens equation (equation 6) for gravitational potentials with spherical symmetry, in addition to the estimation in the position of the source (β1\beta_{1},β2\beta_{2}), given the positions (θ1\theta_{1}, θ2\theta_{2}) of the images produced by the lens.

The main libraries used in this routine are: numpy [12] for the data handling, matplotlib [13] regarding the generation of graphic interfaces, galpy [14] to obtain mass superficial densities, as to the parametric adjust with Markov-Montecarlo chains (MCMC) it was used emcee [15] and for the graphics of reliability regions corner [16] is used.

The deflector potential is obtained numerically in Gallenspy by means of the equation 7, which is very helpful because some mass distribution models do not have analytical solutions for the equations 3, 6 and 7.

Also it is important to note others tasks of Gallenspy like computing of critical and caustic curves and obtaining the Einstein ring. For a more detailed description, it is recommended to see the repository page where the source code 111https://github.com/ialopezt/GalLenspy is available together with its requirements and instructions for its use.

5.1 Tested case with Isotherm Singular Sphere (SIS)

A way by which Gallenspy was tested, was the comparison with the analytical solutions given by Hurtado [10] of the isotherm singular sphere (SIS) under certain specific conditions. In figure 4 some of these comparisons are shown for the obtention of deflection angle, the images formation, and deflector potential in the case of a circular source of radius 1kpc1kpc to a distance of 2kpc2kpc with respect to the observer, this mass profile was modeled with a dispersion velocity of 100km/s100km/s.

Refer to caption
Refer to caption
Refer to caption
Figure 4: Comparison between the results obtained by the analytical solution of Hurtado (left side) and Gallenspy (right side). These results of deflection angle, images formation and deflection angle were evaluated in a grid of 100X100100X100 points.

As it is possible to observe in each comparative graphic, the results obtained numerically with Gallenspy present high reliability where the percentage error is of 0.10.1 due to the grid used in this case.

5.2 Gallenspy input

To use Gallenspy, it is important to give the values of cosmological distances in KpcKpc and critical density in M/Kpc2M_{\odot}/Kpc^{2}, which are introduced by means of a file named Cosmological_distances.txt. On the other hand, the user must introduced the coordinates of the observational images (in radians) in the file coordinates.txt.(Note: for the case of a circular source it is present the file alpha.txt, where the user must introduce angles value belonging to each point of the observational images.)

5.3 Visual fitting with Gallenspy

Gallenspy presents an interactive fitting of parameters through a routine developed in Jupyter Notebook named Interactive_data, in this case the user has the possibility of choose freely the parametric range for each value, however it is suggested a parametric space illustrated in table 1 which is based on the values used by other authors and with the ones used to model dwarf and milky-way type galaxies [1].

Range of values with Gallenspy
Component Range of parameters Units
Bulge I a=0a=0 kpckpc
0.0 <b<<b< 0.5 kpckpc
0.1 <M<<M< 1.0 1010M10^{10}M_{\odot}
Bulge II 0.01 <a<<a< 0.05 kpckpc
0.5 <b<<b< 1.5 kpckpc
1 <M<<M< 5 1010M10^{10}M_{\odot}
Disk thin 1 <a<<a< 10 kpckpc
0.1 <b<<b< 1.0 kpckpc
0.5 <M<<M< 1.5 1011M10^{11}M_{\odot}
Disk thick 1 <a<<a< 10 kpckpc
0.1 <b<<b< 15.0 kpckpc
0.5 <M<<M< 1.5 1011M10^{11}M_{\odot}
Exponential Disk 2 <hr<<h_{r}< 6 kpckpc
1 <Σ0<<\Sigma_{0}< 15 102M/pc210^{2}M_{\odot}/pc^{2}
Halo NFW 0.1 <a<<a< 30 kpckpc
0.1 <M0<<M_{0}< 10 1011M10^{11}M_{\odot}
Halo Burket 2 <a<<a< 38 kpckpc
0.1 <ρ0<<\rho_{0}< 10 106M/kpc310^{6}M_{\odot}/kpc^{3}
Table 1: Parametric space used in Gallenspy

Figure 5 shows the interactive panel, for the fitting of an Exponential Disk lens model and a circular source, this observational data belong to the galaxy J2141 which is analyzed later.

Refer to caption
Figure 5: Interactive panel of Gallenspy, for the Exponential disk lens model and the fitting of a circular source.

5.4 Bayesian statistics with Gallenspy

In mass reconstructions, Gallenspy allows assigning a mass profile to each component of the lens galaxy, where each free parameter has a range of possible values for the obtention of a set of initial values in the parametric exploration.

Also, it is important to point out that for the mass reconstruction of each component of the galaxy, it is possible to choose between different profiles for the parametric fitting with Gallenspy: for example, in the case of galactic disk it is possible choose between the options of Miyamoto-Nagai and Exponential Disk [1] [8], for the dark matter halo between Navarro-Frenk-White (NFW) and Burket [1] [8], while in the bulge is used the Miyamoto-Nagai even though there are two possible ranges of data in this profile.

When the positions (θ1\theta_{1}, θ2\theta_{2}) of the GLE are known, the work with Gallenspy is to find the model and parameters set which can reproduce these provided data, for this reason in this routine the bayesian statistics is not only based on the exploration of all possible positions of the source.

For this parametric exploration, Gallenspy implements the Metropolis-Hasting algorithm through MCMC [17], where it is obtained a posterior probability distribution P(p|D,M)P(p|D,M) for each parameter set of the lens model selected of the table 1, which is given by the relation:

P(p|D,M)=P(D|p,M)P(p|M)P(D|M),P(p|D,M)=\dfrac{P(D|p,M)P(p|M)}{P(D|M)}, (13)

with:

  • 1.

    P(p|D,M)P(p|D,M) the probability that this parameter set pp is appropriate for the model MM and the data DD.

  • 2.

    P(D|p,M)P(D|p,M) the probability that the data DD are obtained with the model MM and the parameter set pp, is known as likelihood [17] and it is denoted with LL.

  • 3.

    P(p|M)P(p|M) the prior which is the reliability that the parameter set is correct for the model.

  • 4.

    P(D|M)P(D|M) is denoted as ZZ, this is the normalization factor and is the probability of obtaining the data DD with the model MM.

It is important to note that in Gallenspy the normalization factor is not considered, hence the fundamental work is the compute of the likelihood (this is because the prior for this parameter set has the same value). From this perspective the method for obtaining the initial values of P(D|p,M)P(D|p,M) is through a visual fitting in the Interactive_data routine from which it is possible to make a first approximation between the data set DD and the model values.

Later in this process, the user must execute the code created in the respective file.py (for the estimation of the source source_lens.py and in the case of mass reconstruction parameters_estimation.py) where Gallenspy requests to introduce the initial values obtained in the visual fitting. Next, Gallenspy lets the user choose the number of steps and walkers, which is enough for the MCMC of this computational routine.

In Gallenspy the minimization function χ2\chi^{2}, for a source with a number nin_{i} of images in the GLE is given by:

χi2=j=1ni|θobsjθj(p)|2σij2,\chi^{2}_{i}=\sum_{j=1}^{n_{i}}\dfrac{|\theta_{obs}^{j}-\theta^{j}(p)|^{2}}{\sigma_{ij}^{2}}, (14)

where in this equation θobsj\theta_{obs}^{j} is the position of observed image j in the data set DD, σij\sigma_{ij} the error in position θobsj\theta_{obs}^{j} due to the noise in the image and θj(p)\theta^{j}(p) the image j predicted by the mass model used with the parameter set.

The index ii appears in the function χ2\chi^{2}, this because in the GLE the formation of images with various sources is possible, for this reason the likelihood for each explored parameter set is expressed through the Gaussian distribution

L=P(D|p,M)=i=1N1jσij2πexp(χi22),L=P(D|p,M)=\prod_{i=1}^{N}\dfrac{1}{\prod_{j}\sigma_{ij}\sqrt{2\pi}}exp\bigg{(}-\dfrac{\chi_{i}^{2}}{2}\bigg{)}, (15)

where N is the number of sources.

Refer to caption
Figure 6: Process flow diagram of the parametric exploration with Gallenspy.

In figure 6, the algorithm of Gallenspy is shown whereas in the next section an example of this with the SIS profile is illustrated.

Finally it is important to note that Gallenspy generates a file.txt with the final parameters obtained: in the case of source estimation parameters_lens_source.txt and parameters_MCMC.txt, these files are then request by Gallenspy for other tasks as compute of Einstein ring and mass estimations.

5.5 Illustrative example with the SIS profile

Although the SIS is not included in the profiles of Gallenspy, it is possible to show an illustration of the mode which this routine performs the parameters exploration with this mass distribution.

Because of the analytical solutions shown by Hurtado [10] to the lens equation in the SIS profile, the formation of images in the GLE are given by the relations:

|θp|=|β|+4πσ2Ddsc2Ds,|{\vec{\theta_{p}}}|=|{\vec{\beta}}|+\dfrac{4\pi\sigma^{2}D_{ds}}{c^{2}D_{s}}, (16)
|θn|=|β|+4πσ2Ddsc2Ds,|{\vec{\theta_{n}}}|=-|{\vec{\beta}}|+\dfrac{4\pi\sigma^{2}D_{ds}}{c^{2}D_{s}}, (17)

with σ\sigma the dispersion velocity, θp\theta_{p} and θn\theta_{n} are the positive and negative solutions respectively where the images are formed.

Figure 7 evidences the images formation, when σ=1X105km/s\sigma=1X10^{5}km/s for a circular source of radius r=1r=1arcs whose center has coordinates (h = 0.8arcs, k = 0.8arc) and where the cosmological distances are Dds=1KpcD_{ds}=1Kpc and Ds=2KpcD_{s}=2Kpc.

Refer to caption
Figure 7: Images formed with the SIS profile for |θn||{\vec{\theta_{n}}}| (left-down image) and |θp||{\vec{\theta_{p}}}| (right-up image) in the case of a circular source (blue image).

If for this specific case the parametric exploration with Gallenspy is applied, then it is necessary to assume that the values of σ\sigma, rr, h y k are not known and that the objective is the obtention of the parameters family which through of GLE can reproduce the images illustrated in figure VI, where in this example only values of |θp||{\vec{\theta_{p}}}| are supposed to be known. This time, the ranges established for the parametric exploration were 104km/s<σ<2X105km/s10^{4}km/s<\sigma<2X10^{5}km/s, 0.10.1arcs<r<2<r<2arcs, -8arcs<h<8arcs and 8arcs<k<8arcs.

With the application of the function χ2\chi^{2} based on the equation 14, and with an error of 0.10.1 in the position of the images, the initial parameters set of the likelihood for the MCMC was obtained. In figure 8(a), the comparison between the images of |θp||{\vec{\theta_{p}}}| with those produced by the parameters obtained of χ2\chi^{2} is evidenced.

Refer to caption
(a) Red Image formed in the GLE for a SIS with dispersion velocity 0.38X105km/s0.38X10^{5}km/s and a circular velocity of radius 22arc, the center of this source is in (2,2)arcseg(2,2)arcseg. Black Image to reproduce by means of Gallenspy.
Refer to caption
(b) MCMC in the exploration of the σ\sigma parameter.
Figure 8: Illustration of the arc belonging to the initial guess and evolution of the MCMC for the σ\sigma parameter, in this case the values converge around the 300th step.

From these values obtained with the multiparametric minimization, the MCMC was executed with Gallenspy. The best result was obtained for a number of 100 walkers and 1000 steps. In figure 8(b) the chain convergence in the obtention of parameter σ\sigma is shown, where it is possible to observe that from the obtained data in step 400 the parameter estimation can be done.

Refer to caption
(a) Results obtained with Gallenspy, in the exploration of parameters for the SIS profile.
Refer to caption
(b) Comparative graph between the produced images by the SIS model and the images of |θp||{\vec{\theta_{p}}}|.
Figure 9: Final results obtained with Gallenspy for the fitting of the arc generated with a SIS model.

The graphs illustrated in figure 9(a) show the reliability regions, under which the parameters family was obtained for the reproduction of the images belonging to |θp||{\vec{\theta_{p}}}|.

Parameter 95%
SIS
σ(105km/s)\sigma\,\left(10^{5}\text{km/s}\right) 0.9990.266+4.456X1060.999_{-0.266}^{+4.456X10^{-6}}
Source
Radio(arcseg)Radio\,\left(\text{arcseg}\right) 1.0000.039+0.9991.000_{-0.039}^{+0.999}
h(arcseg)h\,\left(\text{arcseg}\right) 0.8008.393X105+0.1990.800_{8.393X10^{-5}}^{+0.199}
k(arcseg)k\,\left(\text{arcseg}\right) 0.8005.267X105+0.1990.800_{5.267X10^{-5}}^{+0.199}
Table 2: Parameters obtained with Gallenspy for the SIS model.

In table 2 the parameters obtained are shown with its uncertainties for the quantile of 95%, these values are consistent with those established for the obtention of the images of |θp||{\vec{\theta_{p}}}|, for this reason with this illustrative example it was possible to observe the way in which Gallenspy proceeds and its efficiency in the estimation of the parameters from the GLE.

Finally the figure 9(b) shows the superposition of images, where the reliability of results obtained with Gallenspy becomes evident.

5.6 Critical and caustic curves with Gallenspy

Another process that Gallenspy performs is the obtention of critical and caustic curves for distinct lens model. To understand this method, it is important to remember that detAdetA depends on the convergence κ\kappa and the shear γ\gamma, which are relation to the deflector potential computed by Gallenspy in the fitting of images (θ1,θ2)(\theta_{1},\theta_{2}) [7, 10].

In this way, the first step given by Gallenspy is the obtention of γ1\gamma_{1} and γ2\gamma_{2} with the equation 18 and 19

γ1(θ)=12(2ψ(θ)θ122ψ(θ)θ22),\gamma_{1}\Big{(}\vec{\theta}\Big{)}=\dfrac{1}{2}\Bigg{(}\dfrac{\partial^{2}\psi\Big{(}\vec{\theta}\Big{)}}{\partial\theta^{2}_{1}}-\dfrac{\partial^{2}\psi\Big{(}\vec{\theta}\Big{)}}{\partial\theta^{2}_{2}}\Bigg{)}, (18)
γ2(θ)=2ψ(θ)θ2θ1,\gamma_{2}\Big{(}\vec{\theta}\Big{)}=\dfrac{\partial^{2}\psi\Big{(}\vec{\theta}\Big{)}}{\partial\theta_{2}\partial\theta_{1}}, (19)

and from these results, Gallenspy computes the points of the lens plane where detA=0detA=0 based on the given relation by Hurtado [10]

A=(1κγ1γ2γ21κ+γ1)A=\begin{pmatrix}1-\kappa-\gamma_{1}&-\gamma_{2}\\ -\gamma_{2}&1-\kappa+\gamma_{1}\end{pmatrix} (20)

As the obtention of this critical points is not a trivial process, Gallenspy makes this process with the Bartelmann method [18], in which the critical curve in the lens plane is a border that changes the sign of the determinant (detAdetA) as illustred the figure 10.

Refer to caption
Figure 10: Illustration of the Bartelmann method for the obtention of critical points in Gallenspy, in this case the change in the sign of detAdetA determinant from the critical curve it is taken into account.

As it is shown in this image, there are points of the plane (θ1,θ2)(\theta_{1},\theta_{2}) even though do not belong to the critical curve, can be considered close to it: from this perspective, if S=Sign(detA)S=Sign(detA) then a point S00S_{00} is considered adjacent to the curve in a grid when SS changes between S00S_{00} and any of these neighboring points.

In figure 10 presents the estimation of each point for a grid with dimension NXNNXN based on the sign SS, this means that for positive values Si,j=1S_{i,j}=1 and in the case of negative values Si,j=1S_{i,j}=-1, where ii and jj are in a range of 0 to N1N-1. From this perspective, the established restriction in Gallenspy to know if a point Si,jS_{i,j} is adjacent to the critical curve in the grid is based on the condition:

Si,j(Si1,j+Si+1,j+Si,j1+Si,j+1)<4,S_{i,j}(S_{i-1,j}+S_{i+1,j}+S_{i,j-1}+S_{i,j+1})<4, (21)

This method is very effective to compute the critical curve as the grid is refined since it allows to reduce the range in which each critical point can be.

Figure 11 shows the process flow diagram for the estimation of critical curves with Gallenspy, it is important to highlight that the error range is low due to the grid’s refinement of 100X100100X100 points. From this perspective, the set of critical points with a percentage error of 0.10.1 is estimated as those points Si,jS_{i,j} in which the condition of equation 21 is met.

Refer to caption
Figure 11: Process flow diagram in the computation of critical curves with Gallenspy.

When the critical points are computed by Gallenspy, the obtention of the caustic points is an easy process because the application of the equation 6 is enough.

Going back to the example of SIS profile of the previous section, the critical curve was obtained with Gallenspy. The result is shown in figure 12.

Refer to caption
Figure 12: (Red dots) Critical curve obtained with Gallenspy for the case of the SIS profile developed along this work. (Blue) Plotted circle with the averaged radius of the points obtained with Gallenspy.
Refer to caption
Figure 13: (Right) Caustic curve and circular source (Left) Critical curve and images formed in the SIS model.

This graph evidences that the critical curve belongs to a circle with a radius of 6.2786.278 arcs. In this case, it is important to consider the analytical solution to the SIS profile for detA=0detA=0 [10], where the critical curve is a circumference of radius rr given by the relation

r=4πσ2DLSc2DOS,r=\dfrac{4\pi\sigma^{2}D_{LS}}{c^{2}D_{OS}}, (22)

Based on the data provided above regarding the SIS, the radius obtained from the equation 22 is of 6.2836.283 arcs. This is very close to the obtained result with Gallenspy, where it is possible to check a percentage error of 0.10.1 in this numerical process.

In this way, in the analytical solution of the SIS it it possible to conclude that the caustic curve in this mass profile belongs to a point in the origin of the plane (β1,β2\beta_{1},\beta_{2})[10], this is evidenced in figure 13 where the source is near to this caustic point and for this reason the magnification of the images is significant.

6 GALROTPY

Galrotpy[1] is an interactive tool focused on the visualization and exploration of parameters through MCMC, in such a way that it is possible to make mass reconstructions from the fitting of rotational curves in disk-like galaxies.

The main python packages used in this routine are: matplotlib[13] for the generation of a graphic environment, numpy[12] for data management, astropy[19], which is useful for units assignation, Galpy[14] for the construction of rotational curves with each mass profile, emcee[15] used in the exploration and fitting of data with MCMC, and corner[16] for the reliability regions of the parametric fitting.

The space of parametric exploration in this routine is the same as Gallenspy due to the reasons given in the previous section. On the other hand, the rotational velocity data from which the parametric fitting is done should be consigned in a file denominated rot_curve.txt, in which the units belonging to the radial coordinates must be expressed in KpcKpc and the velocities in Km/sKm/s. Figure 14(a) is shows the panel for the selection of gravitational potentials in Galrotpy, in which the variation parameters is done. Thus the user can do a visual fitting between the rotational curve and the observational data of rotational velocity (this is evidenced in figure 14(b)).

Refer to caption
(a) Panel for the selection of gravitational potentials.
Refer to caption
(b) Rotation curve created from the superposition of distinct mass distributions.
Figure 14: Graphic environment in Galrotpy, wherein the left side the selection of potentials for the curve fitting is possible.

6.1 Bayesian statistics in Galrotpy

In the case of Galrotpy the MCMC has similar characteristics with Gallenspy even in the consideration of the prior and in their approach to evaluation of the likelihood.

However, the process of parametric exploration with Galrotpy presents greater facilities due to the visual fitting that is possible to do with this routine and for this reason, the parametric minimization done with Gallenspy is not necessary.

In this way, with the visual parameter fitting Galrotpy proceeds to run the MCMC where as in Gallenspy the user can choose the number of walkers and steps. It is important to point out that in this routine, the likelihood es given by the relation

L=exp(12i=1N[vobsivmodelivierror]2),L=exp\bigg{(}-\dfrac{1}{2}\sum_{i=1}^{N}\Bigg{[}\dfrac{v_{obs}^{i}-v^{i}_{model}}{v_{i}^{error}}\Bigg{]}^{2}\bigg{)}, (23)

with:

  • 1.

    N the number of observationally obtained data.

  • 2.

    vobsv_{obs} the observed velocity.

  • 3.

    vmodelv_{model} the rotational velocity of the mass model chosen for the fitting.

  • 4.

    verrorv_{error} the error in the velocity observational data.

Once Galrotpy does the parametric exploration, the behavior of the MCMC is illustrated and the values with uncertainties of 68% and 95% are shown. Finally Galrotpy generates two types of graphics, one with the fitting rotation curve and other with the reliability regions.

6.2 Mass reconstruction of galaxy M33 with Galrotpy

M33 is a spiral galaxy without bar structure [1], and its set of rotational velocity data was obtained from Corbelli et al. [20]. For the mass reconstruction with Galrotpy, it is important to point out that the parametric exploration was done with a number of 100 walkers and 3000 steps.

Refer to caption
Figure 15: Behavior of the MCMC in the exploration of parameter hrh_{r}.

In figure 15, is presented the way in which MCMC explores the parameter hrh_{r}, where the convergence is given in a lower number of steps less than Gallenspy, thanks to the visual fitting of Galrotpy.

Refer to caption
Figure 16: Rotation curves and reliability regions of the Galaxy M33 with Galrotpy, where the fitting was done with NFW profile for the dark matter halo and Exponential Disk in the case of baryonic matter.
Parameter 68%68\% 95%95\%
Exponential Disk
hr(Kpc)h_{\text{r}}\,\left(\text{Kpc}\right) 1.520.11+0.101.52_{-0.11}^{+0.10} 1.520.23+0.201.52_{-0.23}^{+0.20}
Σ0(X102 M pc2)\Sigma_{0}\,\left(X10^{2}\text{ M}_{\odot}\text{ pc}^{-2}\right) 2.500.43+0.372.50_{-0.43}^{+0.37} 2.500.99+0.662.50_{-0.99}^{+0.66}
M(X109 M)M_{\star}\,\left(X10^{9}\text{ M}_{\odot}\right) 3.610.91+0.963.61_{-0.91}^{+0.96} 3.611.74+1.893.61_{-1.74}^{+1.89}
NFW
a(X10kpc)a\,\left(\text{X10kpc}\right) 1.460.29+0.421.46_{-0.29}^{+0.42} 1.460.49+1.021.46_{-0.49}^{+1.02}
M0(X1011 M)M_{\text{0}}\,\left(X10^{11}\text{ M}_{\odot}\right) 2.370.55+0.912.37_{-0.55}^{+0.91} 2.370.91+2.452.37_{-0.91}^{+2.45}
ρ0(X106 MKpc3)\rho_{\text{\text{0}}}\,\left(X10^{6}\text{ M}_{\odot}\text{Kpc}^{-3}\right) 6.052.13+2.966.05_{-2.13}^{+2.96} 6.053.55+6.886.05_{-3.55}^{+6.88}
Mh(X1011 M)M_{\text{h}}\,\left(X10^{11}\text{ M}_{\odot}\right) 4.160.72+1.114.16_{-0.72}^{+1.11} 4.161.21+2.864.16_{-1.21}^{+2.86}
Table 3: Estimated parameters with GalRotpy for the galaxy M33.

Figure 16 shows the fitting done with Galrotpy, where the NFW profile was used for the dark matter halo while the contribution of baryonic matter was analyzed with the Exponential Disk profile. The right side of this figure shows the reliability regions, these values are consigned in the table 3.

The obtained values and its uncertainties are in concordance with the results reported by López Fune et.al. [21], where M(X109M)=4.9±1.5M_{\star}\left(X10^{9}M_{\odot}\right)=4.9\pm 1.5 for the Exponential Disk and Mh(X1011M)=5.4±0.6M_{h}\left(X10^{11}M_{\odot}\right)=5.4\pm 0.6 in the case of the dark matter halo. With this example, it was possible to show a set of results with high reliability in the use of this routine, and for this reason in the next section Galrotpy and Gallenspy are combined for the mass reconstructions of two disk-like galaxies.

7 Mass Reconstruction of galaxies J2141 and J1331

The galaxies SDSSJ2141-001(J2141) and SDSSJ1331+3628(J1331) are systems that show strong lensing effect, its rotation velocities data were given by Dutton et.al. [3, 5]; for these mass reconstructions the profiles of Miyamoto-Nagai, Exponential Disk, and NFW were taken into account [8, 1]. Regarding the GLE, in the case of J2141 an extended circular source was modeled considering that the deflected image is an arc, while for J1331 it was considered a punctual source in which four images are produced in the lens plane.

As to the mass distribution of these galaxies, other authors have reported a high contribution of baryonic matter [5, 3] and this coincides with the obtained results in the use of Galrotpy and Gallenspy.

7.1 Galaxy J2141

J2141 is a type S0 spiral galaxy, with a dominant gravitational contribution coming from its disk[5]. This object was initially observed in 2006 by means of the Hubble Spatial Telescope(HST)[5], with an ACS camera in a F814 filter and an exposure time of 420 seconds. In 2009 the Keck telescope took again images of these object with a NIR camera and K filter.

From these images the GLE in this galaxy was evidenced, with the formation of an arc belonging to a source with a redshift different to J2141 (zL=0.3180z_{L}=0.3180,zs=0.7127z_{s}=0.7127)[5], for this reason it was considered important to study the mass distribution of this galaxy.

Refer to caption
Figure 17: Images obtained of J2141 by means of HST and KeckII telescopes with distinct filters.[5]
Refer to caption
(a) Adjusted image by Dutton et.al. of the arc generated by GLE in the J2141 plane. [5]
Refer to caption
(b) Spectral emission lines of HαH_{\alpha} belonging to J2141. [5]
Figure 18: Observational data obtained from the galaxy J2141 in relation with lensing and rotation velocities.

The rotational velocity data of this galaxy was derived from spectral lines Mg b 5177, Fe II5270, Na D 5896, O II 3727 and HαH_{\alpha} 6563, obtained from the Keck telescope. In figure 18(b), the inclination of these emission lines are shown for the case of HαH_{\alpha} 6563.

Table 4 contains the rotational velocity data for different values of galactocentric radius.

Radius(arcsec) Radius(kpc) Velocity(km/s) Error(km/s)
0.000 0.00 3.5 5.3
0.593 1.45 114.1 5.8
1.185 2.89 153.8 2.9
1.778 4.33 212.7 2.6
2.370 5.78 243.8 2.6
2.963 7.22 259.8 2.3
4.148 10.11 254.9 7.5
4.740 11.56 263.4 2.3
5.333 13.00 265.9 3.5
Table 4: Rotational velocity values obtained from Dutton et.al. [5] for J2141.

7.1.1 Data concerning the GLE

For the coordinates of the arc in the lens plane (θ1,θ2\theta_{1},\theta_{2}), a restriction of its contours was made in the way of lower the computational cost in Gallenspy.

This image treatment was made in python, trough a pixel to pixel discrimination based on its position and luminosity, which makes it possible to get the contour showing in figure 19.

Refer to caption
Figure 19: Arc contours generated by GLE in J2141. The scale of this plane is in 1X1061X10^{6} radians.

As it is possible to observe, this obtained contour is incomplete given the noise of image 18(a), even so, the number of obtained coordinates was enough for an appropriate adjustment with a circular source.

In this case the equivalence between arc seconds and pixels was made based on the observed scale of figure 18(a), and in this way it was possible to get each coordinate of the image in radians as observed in figure 19.

For the determination of cosmological distances, the Λ\LambdaCDM model was assumed due to the fact that it has been used by other authors in this galaxy [5]; in this way the current matter density is Λm=0.3\Lambda_{m}=0.3 and the Hubble parameter H0=70kms1Mpc1H_{0}=70kms^{-1}Mpc^{-1}.

With these considerations, the cosmological distances given by Dutton et al. [5] are DOL=497.6MpcD_{OL}=497.6Mpc, DOS=1510.2MpcD_{OS}=1510.2Mpc and DLS=1179.6MpcD_{LS}=1179.6Mpc; which leads to Σcrit=4285.3Mpc2\Sigma_{crit}=4285.3M_{\odot}pc^{-2}.

In relation to the source, its ranges of possible values for the position and the radius are displayed in table 5.

Parameter Range Units
Radius 0.05<r<1.5 arcs
x-center -2.5<h<2.5 arcs
y-center -2.5<k<2.5 arcs
Table 5: Range of values to explore for the source.

7.1.2 Mass reconstruction of J2141.

In this mass reconstruction, the profiles selected in table 1 were Bulge I, Exponential Disk, and NFW. The first parametric exploration was done with Galrotpy, where the more reliable result for the MCMC was obtained for a number of 100 walkers and 1500 steps. The parametric exploration roads are shown in figures 20, 21 and 22.

Refer to caption
Refer to caption
Figure 20: Exploration roads for the parameters of the Miyamoto-Nagai profile.
Refer to caption
Refer to caption
Figure 21: Exploration roads for the parameters of the Exponential Disk profile.
Refer to caption
Refer to caption
Figure 22: Exploration roads for the parameters of the NFW profile.

In these graphics, the initial values of the MCMC are in red lines, whereas for the dark matter halo and bulge is not evidenced a convergence of the values; this is pointed out by Dutton as the problem of degeneracy among the disk and the different mass components of the galaxy.[5]

These authors [5] affirm that the main reason of this degeneracy is the gravitational dominance of the disc in this system, to adress this problem, it is possible to adjust the rotation curve only with the profile of this mass component. Therefore it is very difficult to know with clarity the circular velocity contribution of other components.

Because of this situation, this mass reconstruction was done through the integration of galactic dynamics and GLE, where the restrictions of each method occur in different geometries. Therefore this combination is a powerful tool to break this degeneracy.

In this way and with the arc coordinates, the parameters of the source were estimated as shown in figure 23(a) under a lens model of Exponential Disk, where these values are presented in table 6 with a source radius of 0.03arcsarcs.

Parameter 68%68\% 95%95\%
h(X102arcs)h\,\left(X10^{2}\text{arcs}\right) 3.561.108+1.0823.56_{-1.108}^{+1.082} 3.562.106+2.3953.56_{-2.106}^{+2.395}
k(X103arcs)k\,\left(X10^{3}\text{arcs}\right) 5.9382.470+2.3725.938_{-2.470}^{+2.372} 5.9384.849+4.5465.938_{-4.849}^{+4.546}
Table 6: Source values estimated by Gallenspy in the case of J2141.
Refer to caption
(a) Estimation of circular source with Gallenspy for the galaxy J2141.
Refer to caption
(b) Deflected image and Einstein ring (scale in arcs).
Figure 23: Compute of Gallenspy for source parameters (left side) and Einstein radius (right side).

With the position and size of the source, the mass reconstruction of J2141 based on the GLE was done with the restrictions obtained of the rotation curves in relation with the parametric space. For this specific case, the amplitude of the parametric exploration established was three times of the table 1.

The combination of lensing and Galactic Dynamics was a very efficient process in breaking of the degeneracy between the mass components of J2141, this allowed a lower mass density value for the disc as it is shown in figure 24. Based on the result, it is important to point out how the combination of Galrotpy and Gallenspy is a great alternative for galaxies where the gravitational contribution of each mass component is not easy to distinguish.

Refer to caption
Figure 24: Contours obtained through the combination of restrictions between Galrotpy and Gallenspy for the galaxy J2141.

In table 7 the parameters and its uncertainties are consigned, where the parameters with major dispersion belong to NFW profile, which is related to the degeneracy of this system.

Parameter 68%68\% 95%95\%
NFW
a(kpc)a\,\left(\text{kpc}\right) 47.65316.696+8.78647.653_{-16.696}^{+8.786} 47.6530.036+0.02047.653_{-0.036}^{+0.020}
m0(X1011 M)m_{\text{\text{0}}}\,\left(X10^{11}\text{ M}_{\odot}\right) 2.1711.610+3.182.171_{-1.610}^{+3.18} 2.1712.009+6.8152.171_{-2.009}^{+6.815}
Exponential Disc
hr(Kpc)h_{\text{r}}\,\left(\text{Kpc}\right) 29.3121.111+0.52029.312_{-1.111}^{+0.520} 29.3122.620+0.66329.312_{-2.620}^{+0.663}
Σ0(X109 M pc2)\Sigma_{0}\,\left(X10^{9}\text{ M}_{\odot}\text{ pc}^{-2}\right) 4.3680.012+0.0124.368_{-0.012}^{+0.012} 4.3680.026+0.0314.368_{-0.026}^{+0.031}
Miyamoto-Nagai
b(Kpc)b\,\left(\text{Kpc}\right) 1.7780.296+0.1661.778_{-0.296}^{+0.166} 1.7780.643+0.2121.778_{-0.643}^{+0.212}
M(X109 M)M\,\left(X10^{9}\text{ M}_{\odot}\right) 1.4920.367+0.7811.492_{-0.367}^{+0.781} 1.4920.043+0.4741.492_{-0.043}^{+0.474}
Table 7: Values of parameters obtained in the mass reconstruction for J2141.

Based on the values of these parameters, the Einstein ring and Einstein radius (θEins)(\theta_{Eins}) were computed. In figure 23(b), this curve obtained by Gallenspy is evidenced, where the Einstein radius θEins\theta_{Eins} presented a value of 0.9430.144+0.1280.943_{-0.144}^{+0.128}.

The compute of enclosed mass for J2141, was done taking into account the relation:

M=Σcr2S2ψ(θ1,θ2)d2θ,M=\dfrac{\Sigma_{cr}}{2}\int_{S}\nabla^{2}\psi(\theta_{1},\theta_{2})d^{2}\theta, (24)

Table 8 shows the estimated values.

Parameter Log10(MM)Log_{10}\,\left(\dfrac{\text{M}}{\text{M}_{\odot}}\right)
MEins\text{M}_{Eins} 10.9060.160+0.03010.906_{-0.160}^{+0.030}
MbarEins\text{Mbar}_{Eins} 10.9050.027+0.02310.905_{-0.027}^{+0.023}
Table 8: Enclosed mass with Einstein radius, M being the total mass and Mbar the baryonic matter.

These results are in concordance with the range of values given by Dutton et al. [5], where they reported for J2141 a value of Log10(MbarM)=10.990.25+0.11Log_{10}\,\left(\dfrac{\text{Mbar}}{\text{M}_{\odot}}\right)=10.99_{-0.25}^{+0.11} within the Einstein radius.

The results obtained in this work show separately mass estimation of the bulge and disc, different from results of Dutton et al., where they obtain the stellar mass without discriminating each contribution of these baryonic matter components. These mass values are shown in Table 9, and the fitting made to the rotation curve and arc generated in the GLE with these results is illustrated in images 25(a) and 25(b).

Component of the galaxy log10(MM)log_{10}\bigg{(}\dfrac{M}{M_{\odot}}\bigg{)}
Bulge 8.0040.0009+0.0108.004_{-0.0009}^{+0.010}
Disk 10.9050.028+0.03410.905_{-0.028}^{+0.034}
Dark Matter Halo 7.7400.0027+0.00947.740_{-0.0027}^{+0.0094}
Table 9: Mass values for each component of J2141.
Refer to caption
(a) Comparison of the observational data and lens model data for a circular source in galaxy J2141 with Gallenspy, in this case the lens model choose let us obtain a set of images which overlap the observational images.
Refer to caption
(b) Fitting of rotation curve with the model data.
Figure 25: Fit obtained for lensing and rotation curves through the combination of restrictions between Gallenspy and Galrotpy.

In the rotational curve’s fitting, it is possible to evidence how the dark matter halo is gravitationally dominant in a radius less than 1.5Kpc1.5\text{Kpc}, this observation could be done due to the combination of GLE and galactic dynamics, since the generated arc is in a near radius to this galaxy zone and therefore the combination of restrictions between Gallenspy and Galrotpy is a great option.

7.2 Galaxy J1331

SDSSJ1331+3628 (J1331) is a spiral galaxy with a counter-rotating massive core [3], where just like J2141, the inclination of this galaxy allows to get its rotational velocity values in function of the galactocentric radius.

J1331 is localet in RA = 202.9188 and DEC = 36.469990, and in the observation of this system Treut et.al (2011) [22] observed 2 distinct redshifts within a radius of 1 arcs (zL=0.113,zs=0.254z_{L}=0.113,z_{s}=0.254), given the GLE in this galaxy.

The images of this galaxy, were obtained by means of the SWELLS(Sloan WFC Edge-on late-type lens survey)(WFC-Wide Field Camera)[23]; In figure 26 these images are illustrated with the HST telescope in the F450W and F814W filters, where the high size of its core is evidenced, for this reason in the right side it is evidenced a slit done by Trick et. al [3], where they reconstructed the brightness surfaces.

Refer to caption
Figure 26: Images of J1331 obtained with the HST telescope in F450W and F814W filters.(Image taken from Trick et.al [3])

The images produced for the GLE are shown in figure 27(a), which are labeled with letters A,B,C y D, also it is important to clarify that the other 3 unlabeled images do not belong to this group, since according to what Trick et.al indicate[3] these are part of a stellar formation region.

Regarding dynamical aspect of J1331, Dutton et al.(2013) obtained its rotational velocity values with the use of Keck I telescope by means of a LRIS spectrograph (Low Resolution Imaging Spectrograph)[3], where these data were obtained of the absortion lines Mgb(5177M_{gb}(5177 Å), FeII(5270.5335Fe_{II}(5270.5335 Å) and FeII(5406Fe_{II}(5406 Å), while the gas velocity was estimated with emision lines Hα(6563H_{\alpha}(6563 Å) and NII(6583N_{II}(6583 Å).

Refer to caption
(a) Quadruplet of images formed through the ELG for a point source, in this case G is the galactic center. (Image taken from Trick et.al [3]).
Refer to caption
(b) Rotational velocity values of J1331, where the effective radius is distinguished by Trick et.al with 2.6 arcs, which contains is a supermassive and counter-rotating core [3].
Figure 27: Observational data of lensing and rotational velocities for the galaxy J1331.

An important aspect of J1331 is its supermassive core, according to what is exposed by other authors [3] about half the brightness is enclosed in the effective radius illustrated in figure 27(b). For this reason, this galaxy has been and object of interest in different works [22, 24], where a possible merger event in the past of this system which changes its structure and kinematics is speculated.

7.2.1 Mass reconstruction based on the GLE

Unlike J2141, the mass profiles for J1331 within its core can not be used by Galrotpy, due to the rotational negative velocity values present in this part of the galaxy.

Therefore, the galaxy region enclosed in the effective radius was analyzed totally with lensing, such that the only restrictions applied in Gallenspy are in the parametric ranges used with Galrotpy for the fitting of the rotation curves in close radii to the galaxy periphery.

In this way, other authors note how the breaking of the degeneracy is not an easy task [3, 4], and even if different advances have been obtained this objective has not been achieved yet.

The observational data of the images (A-D) are consigned in table 10, where it was necessary to express these coordinates in arcs for a scale 11 pixel =0.05=0.05 arcs.

Coordinates A B C D G
θ1\theta_{1} 12.1 -8.5 21.7 -3.3 0.5
θ2\theta_{2} 16.6 -10.4 -0.5 19.2 0.5
Table 10: (In pixels) Positions of the images (A-D) and galactocentric center (G) given by Trick et al.[3]. The error in each image is of 0.05, while of the G is 0.07.

For the determination of the cosmological distances, the redshifts were taken into account in the numerical solution to the Dyer-Roeder equation [10], which Gallenspy carries out based on the Jimenez code [25]. For this case, the cosmological model Λ\LambdaCDM was used. The obtained results were DLS=442.7X103D_{LS}=442.7X10^{3}Kpc, DOL=422X103D_{OL}=422X10^{3}Kpc and DOS=817.9X103D_{OS}=817.9X10^{3}Kpc.

The next step in Gallenspy was the estimation of the source position, for which the obtained values are in table 11.

Parameter 68%68\% 95%95\%
β1(X103arcseg)\beta_{1}\,\left(X10^{-3}\text{arcseg}\right) 6.4960.078+0.0856.496_{-0.078}^{+0.085} 6.4960.0787+0.08536.496_{0.0787}^{+0.0853}
β2(X1011arcseg)\beta_{2}\,\left(X10^{11}\text{arcseg}\right) 2.1040.037+0.0382.104_{-0.037}^{+0.038} 2.1040.074+0.0792.104_{-0.074}^{+0.079}
Table 11: Source position obtained with Gallenspy for the case of the GLE in J1331.

In the parameters exploration for the mass reconstruction, the established ranges of the bulges I and II belonging to the table 1 were not enough for the fitting of the observational images, and this is shown in figure 28. For this reason a very massive bulge was considered, where the selected most appropriate profile is of the Miyamoto-Nagai with parametric exploration ranges of thick disc evidenced in table 1.

Refer to caption
Figure 28: Adjustment obtained by Gallenspy with the parametric space of the Bulge II belonging to the table 1.

This process was done in Gallenspy with 100 walkers and 100 steps in the MCMC, and in figure 29 these contours are shown.

Refer to caption
Figure 29: Reliability regions of obtained parameters in the case of J1331.
Refer to caption
(a) Einstein ring obtained with the mass distribution of J1331, the lens plane is in an arcsarcs scale.
Refer to caption
(b) Adjustment obtained with Gallenspy for J1331, where it is important to highlight how the model images are very close to the observational images for the lens model choose.
Figure 30: Comparison of observational images with Einstein ring and lens model images computed in Gallenspy.

Under this estimation, the most appropriate set of parameters for the mass distribution of J1331 obtained with Gallenspy is in table 12, these values allowed to get the fit shown in figure 30(b).

Parameter 95%95\% 68%68\%
NFW
a(Kpc)a\,\left(\text{Kpc}\right) 8.1312.451+2.9828.131_{-2.451}^{+2.982} 8.1313.972+8.9738.131_{-3.972}^{+8.973}
m0(X1011 M)m_{0}\,\left(X10^{11}\text{ M}_{\odot}\right) 5.7342.095+2.7525.734_{-2.095}^{+2.752} 5.7345.066+3.8205.734_{-5.066}^{+3.820}
Exponential Disk
hr(Kpc)h_{\text{r}}\,\left(\text{Kpc}\right) 9.9023.824+5.1409.902_{-3.824}^{+5.140} 9.9025.851+10.9239.902_{-5.851}^{+10.923}
Σ0(109 MKpc2)\Sigma_{\text{0}}\,\left(10^{9}\text{ M}_{\odot}\text{Kpc}^{-2}\right) 7.4870.838+0.9587.487_{-0.838}^{+0.958} 7.4871.645+1.8267.487_{-1.645}^{+1.826}
Miyamoto-Nagai
b(kpc)b\,\left(\text{kpc}\right) 4.6472.968+3.7594.647_{-2.968}^{+3.759} 4.6473.882+8.6074.647_{-3.882}^{+8.607}
a(kpc)a\,\left(\text{kpc}\right) 2.8261.442+1.3242.826_{-1.442}^{+1.324} 2.8262.551+3.7562.826_{-2.551}^{+3.756}
M(1010 M)M\,\left(10^{10}\text{ M}_{\odot}\right) 7.5425.010+4.8717.542_{-5.010}^{+4.871} 7.5427.221+7.0557.542_{-7.221}^{+7.055}
Table 12: Set of parameters obtained with Gallenspy for J1331.

With this mass distribution, the critical and caustic curves and the Einstein ring are presented in figure 31(a),31(b) and 30(a) where the Einstein radius and critical radii have values of 0.915arcseg0.020+0.0130.915\text{arcseg}_{-0.020}^{+0.013}, 1.280arcseg0.001+0.0011.280\text{arcseg}_{-0.001}^{+0.001} and 0.410arcseg0.001+0.0010.410\text{arcseg}_{-0.001}^{+0.001} respectively. It is important to point that with this lens model was possible to estimate the mass within the effective radius under which Trick et al. [3] got restrictions for the mass estimation through the luminosity of J1331.

Refer to caption
(a) Critical curves obtained with the mass distribution of J1331, the lens plane is in an arcsarcs scale.
Refer to caption
(b) Caustic curves obtained with the mass distribution of J1331, the source plane is in a scale of 1X1061X10^{6} radians.
Figure 31: Critical and caustic curves obtained with Gallenspy for the selected lens model.

In table 13 the mass values restricted by the Einsten radius are consigned; the results reported by Trick et al. under the lens model that they assumed [3], the Einstein radius estimated is 0.91±0.02arcseg0.91\pm 0.02\text{arcseg} with an enclosed mass of 7.8±0.3X1010M7.8\pm 0.3\text{X}10^{10}\text{M}_{\odot}. This is in concordance with the results obtained in this work with Gallenspy.

Mass components Mass value (1X1010M)\bigg{(}1\text{X}10^{10}M_{\odot}\bigg{)}
Bulge 0.0520.035+0.0450.052_{-0.035}^{+0.045}
Disk 7.8300.758+1.2107.830_{-0.758}^{+1.210}
Dark matter halo 0.2980.198+0.1610.298_{-0.198}^{+0.161}
Einstein Mass 8.1810.959+1.417\mathbf{8.181_{-0.959}^{+1.417}}
Table 13: Mass Values within Einstein radius.

Regarding the restriction within the critical radius, the values obtained of baryonic and dark matter are 2.1900.403+0.257X1011M2.190_{-0.403}^{+0.257}\text{X}10^{11}\text{M}_{\odot} and 2.1790.399+0.289X1011M2.179_{-0.399}^{+0.289}\text{X}10^{11}\text{M}_{\odot} respectively, these results are also consistent with the reported by Trick et al. [5], where for the effective radius these values are 2.352±0.2X1011M2.352\pm 0.2\text{X}10^{11}\text{M}_{\odot} for the total mass and 1.970±0.39X1011M1.970\pm 0.39\text{X}10^{11}\text{M}_{\odot} of baryonic matter, also it should be clarified that these authors obtain their results with alternative methods to the GLE of J1331[3].

The results obtained with Gallenspy show that this is a very effective tool for the mass reconstructions within the critical curve and Einstein radius. However for J1331, the estimation is not enough with radii greater than 2.62.6 arcs, and therefore in this case Galrotpy was used.

In other works [3, 4] it is evidenced how the mass reconstructions for J1331 from a dynamics analysis have many complications due to the complexity of its rotation curve. This is the reason why Trick et al. [3] restricted this mass reconstruction to the effective radius, while Dutton et al. in 2013 [4] dedicated efforts in studying the periphery of the galaxy. Based on what was previously shown, each routine in this work was applied separately in different galaxy regions.

7.2.2 Mass reconstruction of J1331 with Galrotpy

The best result in the fitting of the rotation curve with Galrotpy was made with 20 walkers and 100 steps, wherein the image 32 the contours of each parameter obtained are presented in figure 33.

Refer to caption
Figure 32: Credibility regions of obtained parameters with Galrotpy for J1331.

In table 14 are presented these values and its uncertainties for each parameter. The estimated mass distribution with these indicated parameters was restricted to 7.56 arcs (in this radius are all data of rotational velocity), and therefore the enclosed mass in this amplitude was estimated in log10(MM)=11.4480.131+0.224log_{10}\bigg{(}\dfrac{M}{M_{\odot}}\bigg{)}=11.448_{-0.131}^{+0.224} where the baryonic matter has a value of log10(MM)=10.8980.164+0.303log_{10}\bigg{(}\dfrac{M}{M_{\odot}}\bigg{)}=10.898_{-0.164}^{+0.303}.

Parameter 95%95\% 68%68\%
NFW
a(Kpc)a\,\left(\text{Kpc}\right) 11.0800.801+0.12911.080_{-0.801}^{+0.129} 11.0800.314+0.41711.080_{-0.314}^{+0.417}
m0(X1011 M)m_{0}\,\left(X10^{11}\text{ M}_{\odot}\right) 1.2770.098+0.1361.277_{-0.098}^{+0.136} 1.2770.055+0.0881.277_{-0.055}^{+0.088}
Exponential Disk
hr(Kpc)h_{\text{r}}\,\left(\text{Kpc}\right) 1.0660.087+0.1141.066_{-0.087}^{+0.114} 1.0660.023+0.0331.066_{-0.023}^{+0.033}
Σ0(102 Mpc2)\Sigma_{\text{0}}\,\left(10^{2}\text{ M}_{\odot}\text{pc}^{-2}\right) 3.4230.327+0.3933.423_{-0.327}^{+0.393} 3.4230.222+0.1853.423_{-0.222}^{+0.185}
Miyamoto Nagai
b(kpc)b\,\left(\text{kpc}\right) 7.8920.648+0.4517.892_{-0.648}^{+0.451} 7.8920.325+0.1677.892_{-0.325}^{+0.167}
a(kpc)a\,\left(\text{kpc}\right) 3.1140.299+0.2283.114_{-0.299}^{+0.228} 3.1140.211+0.1113.114_{-0.211}^{+0.111}
M(1010 M)M\,\left(10^{10}\text{ M}_{\odot}\right) 7.6770.715+0.1127.677_{-0.715}^{+0.112} 7.6770.520+0.2497.677_{-0.520}^{+0.249}
Table 14: Estimated parameters with Galrotpy for J1331 galaxy.

The results given by Dutton et al. in 2013 [4] indicate that the baryonic matter in this radius is of log10(MM)=11.03±0.07log_{10}\bigg{(}\dfrac{M}{M_{\odot}}\bigg{)}=11.03\pm 0.07 which is in concordance with the result obtained through of Galrotpy. Also, it is important to note, the great relation in the estimation of the bulge mass, where they report a value of log10(MM)=10.89±0.10log_{10}\bigg{(}\dfrac{M}{M_{\odot}}\bigg{)}=10.89\pm 0.10 and in this work the obtained value is log10(MM)=10.8850.520+0.249log_{10}\bigg{(}\dfrac{M}{M_{\odot}}\bigg{)}=10.885_{-0.520}^{+0.249}.

Refer to caption
Figure 33: Rotation curve of J1331 obtained with Galrotpy, in this case it is possible to observe how the bulge is dominant gravitationally which is in concordance with the analysis done with Gallenspy from lensing.

7.2.3 Analysis of the mass reconstruction for J1331

From the mass reconstructions performed for this galaxy with Galrotpy and Gallenspy, it follows that about of the 78% of the mass of J1331 is enclosed in the effective radius, this confirmed the presence of a supermassive core, which due to presenting a negative direction in its rotation opens the possibility to think that this galaxy is the result of a merger process between two stellar systems, with angular momentum oriented in distinct orientations.[3]

Also it is important to mention the high effectiveness of Galrotpy in this process, where the obtained results for radii close to the galaxy periphery were very successful in comparison with the results of Dutton et al. in 2013 [4], all this taking into account that these estimations were done with the fitting from just 3 values of rotational velocity.

Besides, it is important to remember that the degeneracy between the disc and halo is still a research topic [3, 4], and for this reason, the possibility of adjusting Galrotpy for negative values of the rotational velocity is open, since this would allow to combine lensing and galactic dynamics for similar galaxies to J1331.

8 HE 0435-1223 test case

An additional case of tested for Gallenspy was the Quasar HE 0435-1223, in which the GLE is evidenced through a quadruply imaged belonging to a background source [26]. HE 0435-1223 was discovered by Wisotzki et al. (2000) and since then it has been a research object in distinct works[26].

Refer to caption
Figure 34: Quadruply imaged formed through the GLE in the case of quasar 0435-1223. (Image taken from Courbin et.al.(2011)[26].

Figure 34 shows these formed images by means of GLE, where the redshifts of the lens and source are zs=1.689z_{s}=1.689 and zL=1.4546z_{L}=1.4546 respectively, with a value of 6.666Kpc6.666Kpc for the Einstein radius.

Based on these redshifts value, the cosmological distances estimated by Gallenspy are Dds=1070.3MpcD_{ds}=1070.3Mpc, Dd=1163.3MpcD_{d}=1163.3Mpc and Ds=1700.4MpcD_{s}=1700.4Mpc. Also it is important to point out that the positions of the images formed in the GLE were obtained from Courbin et al.(2011) [26], and in this way it was possible to perform the mass reconstruction for this quasar with the Exponential Disk and NFW profiles, where the estimated parameters are presented in table 15.

Parameter 95%95\% 68%68\%
NFW
a(Kpc)a\,\left(\text{Kpc}\right) 52.79227.014+0.13352.792_{-27.014}^{+0.133} 52.7920.122+0.07352.792_{-0.122}^{+0.073}
m0(X1011 M)m_{0}\,\left(X10^{11}\text{ M}_{\odot}\right) 19.96113.156+0.03719.961_{-13.156}^{+0.037} 19.9610.054+0.03019.961_{-0.054}^{+0.030}
Exponential Disk
hr(Kpc)h_{\text{r}}\,\left(\text{Kpc}\right) 11.9990.007+0.000511.999_{-0.007}^{+0.0005} 11.9990.001+0.000311.999_{-0.001}^{+0.0003}
Σ0(102 Mpc2)\Sigma_{\text{0}}\,\left(10^{2}\text{ M}_{\odot}\text{pc}^{-2}\right) 2.9990.0025+0.000042.999_{-0.0025}^{+0.00004} 2.9990.0007+0.00032.999_{-0.0007}^{+0.0003}
Table 15: Values of the obtained parameters with Gallenspy

With these parameters, the obtained images are illustrated in figure 35, where the values of baryonic and dark matter are consigned in table 16. The results given by Courbin et al.(2011) for this system, reveal that the total mass of this quasar is of 3.16±0.31X1011M3.16\pm 0.31X10^{11}M_{\odot} which is very close to the obtained value in this work, other important aspect is the baryonic matter fraction which in this work is of 0.764±0.150.764\pm 0.15 while Courbin et al.(2011) reported 0.650.10+0.130.65^{+0.13}_{-0.10} with the Sapelter IMF; in this way it is possible to confirm that Gallenspy is an efficient tool.

Mass Value (1X1011M)\bigg{(}1\text{X}10^{11}M_{\odot}\bigg{)}
Baryonic 2.3950.0031+0.00032.395_{-0.0031}^{+0.0003}
Dark 0.6180.066+0.0010.618_{-0.066}^{+0.001}
Einstein Mass 3.0140.069+0.006\mathbf{3.014_{-0.069}^{+0.006}}
Table 16: Mass Values within Einstein radius.
Refer to caption
Figure 35: Comparison between model and observational images formed through the GLE.

9 Conclusions

In this work the Gallenspy code was presented, which is very useful in mass reconstructions based on GLE; in this way it is important to highlight, the way in which this routine allows to obtain the mass distribution of bulge and disc separately unlike to the methods of reconstruction applied by other authors [5, 3, 4].

Also, the advantages of combining Lensing and Galactic Dynamics were illustrated with the use of Galrotpy and Gallenspy, in this case, with the restrictions given by each routine, it was possible to have significant progress in breaking the degeneracy in J1331 and J2141. Additionally, Gallenspy was used for J1331 in the mass reconstruction within the critic radius, while with Galrotpy the peripheral region was analyzed and although this degeneracy could not be broken completely, the estimated parameters have concordance with the obtained results of other authors [3, 4]. This gives reliability to the constructed routines.

On the other hand, it is important to highlight the use of mass models with spherical symmetry, the ones are used by distinct authors [27] [26], and which allows to get results as in mass reconstructions as in estimations of Hubble parameter.

Regarding future improvements for Gallenspy, the increase in the number of mass profiles used in this routine is considered, besides there is the possibility of extending this code for reconstructions of superficial brightness functions in lens galaxies, like the estimation of temporary cosmological delays for the study of the universe expansion.

Finally it is important to mention the advantages of performing visuals fitting with Galrotpy and Gallenspy for rotation curves and GLE, since through this process it is possible get the initial set of values for the MCMC in both routines.

References

  • Granados et al. [2021] A. Granados, D. Torres, L. Castañeda, L. Henao, S. Vanegas, Galrotpy: a tool to parametrize the gravitational potential of disc-like galaxies, New Astronomy 82 (2021) 101456.
  • López [2020] I. López, Reconstruction of mass profiles in disc like galaxies based on its properties of lensing and rotation curves, Master Thesis, Universidad Nacional de Colombia (2020).
  • Trick et al. [2016] W. H. Trick, G. van de Ven, A. A. Dutton, A spiral galaxy’s mass distribution uncovered through lensing and dynamics, Monthly Notices of the Royal Astronomical Society 463 (2016) 3151–3168.
  • Dutton et al. [2013] A. A. Dutton, T. Treu, B. J. Brewer, P. J. Marshall, M. Auger, M. Barnabè, D. C. Koo, A. S. Bolton, L. V. Koopmans, The swells survey–v. a salpeter stellar initial mass function in the bulges of massive spiral galaxies, Monthly Notices of the Royal Astronomical Society 428 (2013) 3183–3195.
  • Dutton et al. [2011] A. A. Dutton, B. J. Brewer, P. J. Marshall, M. W. Auger, T. Treu, D. C. Koo, A. S. Bolton, B. P. Holden, L. V. Koopmans, The swells survey–ii. breaking the disc–halo degeneracy in the spiral galaxy gravitational lens sdss j2141- 0001, Monthly Notices of the Royal Astronomical Society 417 (2011) 1621–1642.
  • Castañeda [2003] L. Castañeda, Efecto de la constante cosmológica en la probabilidad de lentes gravitacionales., Master Thesis, Universidad Nacional de Colombia (2003).
  • Schneider P. [1999] F. Schneider P., Ehlers J., Gravitational Lenses., volume 1, Springer Science+Business Media, 1999.
  • Binney and Tremaine [2011] J. Binney, S. Tremaine, Galactic dynamics, Princeton university press, 2011.
  • Binney and Tremaine [1994] J. Binney, S. Tremaine, Galactic dynamics, volume 20, Princeton university press, 1994.
  • Hurtado [2014] R. Hurtado, Perfil de masa de abell 370 a partir de sus propiedades como lente gravitacional., 2014.
  • Koopmans L. V. E. [1998] J. N. Koopmans L. V. E., de Bruyn A. G., The edge-on spiral gravitational lens b1600+434, MNRAS 447 (1998) 295–534.
  • Van Der Walt et al. [2011] S. Van Der Walt, S. C. Colbert, G. Varoquaux, The numpy array: a structure for efficient numerical computation, Computing in science & engineering 13 (2011) 22–30.
  • Barrett et al. [2005] P. Barrett, J. Hunter, J. T. Miller, J.-C. Hsu, P. Greenfield, matplotlib–a portable python plotting package, in: Astronomical data analysis software and systems XIV, volume 347, 2005, p. 91.
  • Bovy [2015] J. Bovy, galpy: A python library for galactic dynamics, The Astrophysical Journal Supplement Series 216 (2015) 29.
  • Foreman-Mackey et al. [2019] D. Foreman-Mackey, W. Farr, M. Sinha, A. Archibald, D. Hogg, J. Sanders, J. Zuntz, P. Williams, A. Nelson, M. de Val-Borro, T. Erhardt, I. Pashchenko, O. Pla, emcee v3: A Python ensemble sampling toolkit for affine-invariant MCMC, The Journal of Open Source Software 4 (2019) 1864. doi:10.21105/joss.01864. arXiv:1911.07688.
  • Foreman-Mackey [2016] D. Foreman-Mackey, corner.py: Scatterplot matrices in Python, The Journal of Open Source Software 1 (2016) 24. doi:10.21105/joss.00024.
  • Huijser et al. [2020] D. Huijser, R. MEYER, B. BREWER, G. LEWIS, Bayesian Statistics in Astronomy, Ph.D. thesis, University of Auckland, 2020.
  • Bartelmann [2003] M. Bartelmann, Numerical methods in gravitational lensing, arXiv preprint astro-ph/0304162 (2003).
  • Robitaille et al. [2013] T. P. Robitaille, E. J. Tollerud, P. Greenfield, M. Droettboom, E. Bray, T. Aldcroft, M. Davis, A. Ginsburg, A. M. Price-Whelan, W. E. Kerzendorf, et al., Astropy: A community python package for astronomy, Astronomy & Astrophysics 558 (2013) A33.
  • Corbelli et al. [2014] E. Corbelli, D. Thilker, S. Zibetti, C. Giovanardi, P. Salucci, Dynamical signatures of a λ\lambdacdm-halo and the distribution of the baryons in m 33, Astronomy & Astrophysics 572 (2014) A23.
  • López Fune et al. [2017] E. López Fune, P. Salucci, E. Corbelli, Radial dependence of the dark matter distribution in m33, Monthly Notices of the Royal Astronomical Society 468 (2017) 147–153.
  • Treu et al. [2011] T. Treu, A. A. Dutton, M. W. Auger, P. J. Marshall, A. S. Bolton, B. J. Brewer, D. C. Koo, L. V. Koopmans, The swells survey–i. a large spectroscopically selected sample of edge-on late-type lens galaxies, Monthly Notices of the Royal Astronomical Society 417 (2011) 1601–1620.
  • Brewer et al. [2012a] B. J. Brewer, A. A. Dutton, T. Treu, M. W. Auger, P. J. Marshall, M. Barnabè, A. S. Bolton, D. C. Koo, L. V. Koopmans, The swells survey–iii. disfavouring ‘heavy’initial mass functions for spiral lens galaxies, Monthly Notices of the Royal Astronomical Society 422 (2012a) 3574–3590.
  • Brewer et al. [2012b] B. J. Brewer, A. A. Dutton, T. Treu, M. W. Auger, P. J. Marshall, M. Barnabè, A. S. Bolton, D. C. Koo, L. V. Koopmans, The swells survey–iii. disfavouring ‘heavy’initial mass functions for spiral lens galaxies, Monthly Notices of the Royal Astronomical Society 422 (2012b) 3574–3590.
  • Orlando [2020] J. C. J. Orlando, Retardo cosmológico temporal en modelos de energía oscura., 2020.
  • Vuissoz et al. [2008] C. Vuissoz, F. Courbin, D. Sluse, G. Meylan, V. Chantry, E. Eulaers, C. Morgan, M. Eyler, C. Kochanek, J. Coles, et al., Cosmograil: the cosmological monitoring of gravitational lenses-vii. time delays and the hubble constant from wfi j2033–4723, Astronomy & Astrophysics 488 (2008) 481–490.
  • Schneider and Sluse [2013] P. Schneider, D. Sluse, Mass-sheet degeneracy, power-law models and external convergence: Impact on the determination of the hubble constant from gravitational lensing, Astronomy & Astrophysics 559 (2013) A37.