A population of faint, old, and massive quiescent galaxies at \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$3

Here we present a sample of 12 massive quiescent galaxy candidates at \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$z\sim 3-4$$\end{document}z∼3-4 observed with the James Webb Space Telescope (JWST) Near Infrared Spectrograph (NIRSpec). These galaxies were pre-selected from the Hubble Space Telescope imaging and 10 of our sources were unable to be spectroscopically confirmed by ground based spectroscopy. By combining spectroscopic data from NIRSpec with multi-wavelength imaging data from the JWST Near Infrared Camera (NIRCam), we analyse their stellar populations and their formation histories. We find that all of our galaxies classify as quiescent based on the reconstruction of their star formation histories but show a variety of quenching timescales and ages. All our galaxies are massive (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\sim 0.1-1.2\times 10^{11}$$\end{document}∼0.1-1.2×1011 M⊙), with masses comparable to massive galaxies in the local Universe. We find that the oldest galaxy in our sample formed \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\sim 1.0\times 10^{11}$$\end{document}∼1.0×1011 M⊙ of mass within the first few hundred million years of the Universe and has been quenched for more than a billion years by the time of observation at \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$z\sim 3.2$$\end{document}z∼3.2 (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\sim 2$$\end{document}∼2 billion years after the Big Bang). Our results point to very early formation of massive galaxies requiring a high conversion rate of baryons to stars in the early Universe.


Introduction
The confirmation of the presence of massive ( ∼ > 10 10 M ⊙ ) quiescent galaxies at epochs only 1-2 Gyr after the Big Bang [1][2][3][4][5][6][7][8] has challenged models of cosmology and galaxy formation [9].These sources likely had extreme starformation levels to build up the ∼ 10 11 stellar masses within the first billion years of the Universe.They further require mechanisms that led to cessation of star-formation within very short timescales, while most of other galaxies were actively forming stars contributing to the growth of the cosmic star-formation rate density [10].Therefore, producing sufficient numbers of these requires abundant numbers of the host dark matter halos to have been assembled and sufficient time for star formation to proceed extremely quickly and then cease just as rapidly.Currently, the mechanisms that led to the rapid mass buildup and abrupt quenching of star-formation is an outstanding question.
The extremely rapid formation makes massive quiescent galaxies ideal laboratories to probe the most extreme galaxy formation scenarios in the early Universe and mechanisms that shut down star-formation.Ground-based spectroscopy has suggested ages of 200-300 Myr [3] at redshifts 3 < z < 4. The true number and ages of these objects have however been highly uncertain as ground-based spectra has been limited to the brightest of them [e.g.3,5], at wavelengths ∼ 2 µm , which introduces a significant potential bias towards younger objects [7].Additionally, Balmer or D4000 breaks often fall between atmospheric transmission windows at < 2 µm, limiting constraints to age/formation timescales of these galaxies [e.g . 11].
Short lived extreme star-formation episodes required to produce these galaxies may have implications for cosmological and chemical evolution models.Massive stars prominent in low metallicity environments [12], such as in the early Universe, would drive galaxy chemical enrichment through core-collapse supernovae [13] leading to an enhancement of α− elements in the inter stellar medium and stars [e.g.14].α−enhanced stars are likely to be more massive (leading to a top-heavy IMF), have less Fe blanketing, and weaker stellar winds [15].These effects lead to an enhancement of ionizing photons per unit star-formation rate.Additionally, core collapse supernovae leads to stronger feedback in galaxies, creating low column density channels for ionizing photons to escape.Therefore, these sources could have played a dominant role in the reionization of the Universe [16].Stronger feedback would also contribute to shut down star-formation [17].These two effects could lead to changes in the reionization timescales posing newer challenges in cosmology and supernovae chemical enrichment.Thus, it is imperative to explore new mechanisms that should be considered to efficiently build up mass and cease star-formation in this very short time window.
Constraining the abundance of massive quiescent galaxies at z > 3 and the nature of their stellar population is important to provide constraints for galaxy evolution models.Many simulations currently investigate possible impacts of modified Active Galactic Nucleus (AGN) feedback.[e.g., Illustris-TNG, Magneticum, SHARKS & Eagle 18-20] and different depletion timescales and star formation models [21] on the star formation and quenched properties of high redshift galaxies.With current observations, we have a very limited understanding on the formation pathways of these galaxies, thus, observations of z > 3 massive quiescent galaxies are crucial to refining our understanding of the complex balance of physical processes that play a key role in the early epochs of galaxy formation.While it is crucial to determine the nature of AGN in the z > 3 massive quiescent galaxies, at z > 3 rest-optical AGN diagnostics [e.g.22] cannot be obtained due to atmospheric cutoff at ∼ > 2.5 µm from ground based spectroscopy.
The launch of the James Webb Space Telescope (JWST) enables dramatically more sensitive and constraining spectroscopic observations due to the very low sky background, sharp image quality, and access to wavelengths beyond 2 µm.The first observations have already revealed new photometric candidates for massive quiescent galaxies at z > 3 [e.g.23,24] and even their possible progenitors at z ∼ 9 [25].
Here we report JWST NIRSpec [26] (0.6-5.3 µm) observations of 12 quiescent galaxy candidates at z ≈ 3 − 4, out of which 10 were beyond the limit of previous ground-based spectroscopy.Our objects were selected from the sample of Schreiber+2018 [henceforth S18 27] who compiled a deep complete spectroscopic analysis of massive quiescent galaxy candidates at z > 3.These were obtained using rest-frame U − V vs V − J color selection techniques with pre-JWST data [28].The prior ground-based spectra covered wavelengths 1.5-2.3µm and were taken with the MOSFIRE spectrograph on the 10 m Keck telescope [29] with up to 14 hours on-target exposures.Out of the 24 massive galaxy candidates observed by S18, spectroscopic redshifts were obtained for only 12 of the galaxies.The majority of the confirmed objects were found to have redshifts z > 3, where only two were low-redshift interlopers.The spectroscopically confirmed z > 3 galaxies were all typically brighter than K = 23, as the observations are limited by the bright terrestrial K-band background.This potentially introduces a significant age bias.At these redshifts the observed Kband probes the rest frame B-band.At fixed mass, younger objects will have smaller B band mass to light (M/L) ratios, hence be brighter; older objects, conversely, will be fainter, being dominated by older stellar populations, with higher M/L ratios.These older objects, having formed earlier, would be more constraining on theoretical models [7].

Results
On 1 st of Aug, 2022 using JWST NIRSpec we obtained spectra of eight massive quiescent galaxy candidates from S18 that had eluded ground-based spectroscopic confirmation over the UKIDSS Ultra-Deep Survey field [UDS, 30,31].Additionally, due to close clustering we were able to include ZF-UDS-8197, a galaxy that was confirmed by S18 in one of our configurable microshutter array (MSA) configurations [32].On the 11 st the of April, 2023 we further obtained spectroscopy for 2 massive quiescent galaxy candidates from S18 over the All-Wavelength Extended Growth Strip International Survey field [EGS,30].Similar to UDS, due to close clustering we were able to include 3D-EGS-18996 which was previously confirmed by S18.
Our observations used the MSA to form programmable slits and the lowresolution (50 < R < 500) prism disperser with the CLEAR filter covering wavelengths 0.6-5.3µm.Here we present results from four MSA configurations (obs6, obs100, obs200, obs300; these configurations are selected because most of the sources overlap with JWST PRIMER-UDS imaging (GO-1837, PI Dunlop) and JWST CEERS imaging [DD-ERS-1345, PI Finkelstein 33]).We used 5 slitlet shutters with 3 dither positions.Each dither position was observed for 657 s.In Figure 1 we show the 2D raw and reduced frames of one of our MSA configurations, obs100.Three primary targets fall in this mask and the continua of these objects are clearly visible in the ramp-fitted raw frames.
The absolute flux calibration accuracy of data reduced with post launch calibration files is expected to be at ∼ < 5% level (STScI, private communication).However, the STScI pipeline currently does not account for slit loss functions accurately for NIRSpec MOS extended sources.Therefore we used multi-band NIRCam imaging from the PRIMER survey to apply an empirical scaling to the data as follows.For each object, we selected all photometric bands within 1.0 µm − 5.0 µm detected with a signal-to-noise ratio (S/N) of > 20 and computed the offset between the flux measured from the NIRSpec spectrum and broadband/medium-band photometry.We then fit a 2nd order polynomial to the offset as a function of wavelength to obtain a spectrophotometric scaling factor for each galaxy.The order of the polynomial was chosen carefully via visual inspection for each object, to verify no artificial structure or colour term would be introduced to the spectra as a result of this process.We multiplied the observed spectra by this calibration function to obtain NIRSpec spectra which are consistent with the PRIMER photometric data. 2 galaxies, 3D-UDS-39102 and 3D-UDS-41232 fall outside the PRIMER imaging area, thus, photometric data with a S/N > 10 from the 3D-HST survey [30] is used instead.More details on the scaling process and associated tests performed to verify the calibration accuracy of the STScI pipeline are provided in the Methods Section 5.1.
In Figures 2 and 3 we show the calibrated NIRSpec spectra for our galaxies observed over the UDS and EGS fields.11 galaxies show a strong Balmer break confirming their post-starburst nature.The Balmer and D4000 break of a galaxy is indicative of the nature of stellar populations dominating the continuum [e.g.34].Once the young O stars move off the main sequence, the galaxy continuum is dominated by late-B and main sequence A stars which gives rise to a Balmer break.The strength of this feature will reduced after a few hundred million years from the most recent star-formation episode due to A type stars moving away from the main sequence.Thus, at older ages, absorption from ionized metals from old late type stars' atmospheres will dominate the absorption features at ∼ 4000 Å.In the early Universe, due to the limited lifetime for galaxy evolution, Balmer break galaxies will dominate over D4000 break galaxies.JWST NIRSpec/Prism observations are expected to uncover large populations of Balmer break galaxies in the early Universe [e.g.35].
One of our galaxies, ZF-UDS-8197, shows very prominent emission lines.Based on its log 10 ([Oiii]λ5007/Hβ) flux ratio of 1.4, we conclude that an AGN is powering the emission lines of this galaxy [36].There are further 7 galaxies which either show [O iii]λ5007 or Hβ flux detections with a S/N> 3 for which we can obtain limits to their log 10 ([Oiii]λ5007/Hβ) flux ratios.At their respective stellar masses they lie in the AGN or AGN and star-forming composite region based on the Mass Excitation (MEx) diagram [36].However, at z > 2 the evolution of the ionization parameter [e.g.37] adds further complexity to the interpretation of this diagram, specially for sources in the AGN and starforming composite region.Thus, we cannot rule out underlying star-formation contributing to the emission lines of these 7 sources.At NIRSpec/Prism resolutions, Hα emission is blended with the [N ii] doublet, thus we obtain lower limit of SFR< 13 M ⊙ /yr for the remaining four sources.
With the exception of 3D-EGS-18996, the continua of all galaxies are detected at a median S/N of > 18.While the resolution of NIRSpec/Prism observations is too low to constrain detailed element abundant patterns through absorption lines, some galaxies such as ZF-UDS-4347 show spectral signatures of hydrogen absorption such as Hβ and Hγ.Dusty interlopes at z ∼ 2 can contaminate photometric selection of quiescent galaxies [38], however, with our NIRSpec/Prism observations we can confirm that none of our photometrically selected galaxies are z ∼ 2 dusty interlopers.
In Figure 2 we also show the ground based Keck/MOSFIRE [39] spectra obtained for two of the galaxies to compare with our new JWST observations.The native resolution of MOSFIRE is R ∼ 3000.S18 binned the spectra to ∼ 10 resolution elements to increase the continuum S/N.Given our NIRSpec/Prism observations have a much lower resolution of R ∼ < 100 at λ obs ∼ 2 µm (where the Balmer break falls), we rebin the MOSFIRE spectra to 250 Å bins to accurately compare with our NIRSpec observations.ZF-UDS-8197 has strong [Oiii]λ4959λ5007 doublet detection that falls within the MOSFIRE-K band.Thus, S18 obtained a confident redshift confirmation with an on-source exposure time of ∼ 7 h reaching an emission line S/N of ∼ 12.Even though MOSFIRE observations reached a continuum S/N of ∼ 16 with 70 Å spectral binning, it was not possible to obtain signatures of absorption lines.Given the Balmer break largely falls within the atmospheric cutoff between H and K bands, it was not possible to confirm the post-starburst nature of this galaxy.However, with our new NIRSpec observations we are able to observe the Balmer break and other strong emission lines such as Hα and [S ii]λ6717λ6731.
ZF-UDS-7329 was observed for ∼ 10 h in K-band with MOSFIRE reaching a continuum S/N of ∼ 17.However, S18 was unable to obtain a spectroscopic redshift confirmation for this source due to the limited wavelength coverage.Our NIRSpec observations show the clear spectral shape of this object and our slinefit (https://github.com/cschreib/slinefit)redshift estimate puts it at z = 3.207 +0.002 −0.001 .The Balmer break of this galaxy is smoother compared to the other galaxies in our sample and the spectral features have transitioned to a D4000 break suggesting a much older underlying stellar population [40].However, degeneracies between dust and star formation history (SFH) can make the interpretation difficult.Thus, we use FAST++ [3] to perform full spectral fitting of our galaxies to constrain their SFHs.
We simultaneously fit NIRCam photometric data (data from the 3D-HST survey is used for 3D-UDS-39102 and 3D-UDS-41232) with NIRSpec spectra together in FAST++ keeping redshifts fixed at their new spectroscopic values.We use BC03 [41] stellar population models with a Chabrier [42] IMF and follow a Calzetti [43] dust prescription model.We allow the metallicity to vary between 20% to 250% Z ⊙ .We mask out strong emission lines in the observed spectra and follow the same prescription as defined by S18 to parameterize the SFHs.To account for the low and non-linear spectral resolution and dispersion of the NIRSpec/Prism mode observations, we compute empirical line spread functions (LSF) for our galaxies based on the PRIMER NIRCam images.As outlined in [44,Section 2.3], for each galaxy we compute the 1D slit profile across each of the 7 PRIMER NIRCam bands and multiply with the NIR-Spec/Prism dispersion function to obtain a measure of the LSF.This profile is input into FAST++ as the SPEC LSF FILE option, which is used by FAST++ to convolve the BC03 models to match with the observed NIRSpec resolution.The errors of all parameters are computed as the 1-σ distribution of the best-fit values of 1000 Monte-Carlo iterations.More details of the spectrophotometric fitting process is outlined in methods Section 5.2 and in [44].The FAST++ best-fit results are presented in Table 1.
With the exception of 3D-EGS-34322, all other galaxies show FAST++ SFRs 10 of < 1.5 M ⊙ /yr and the stellar masses range between ∼ 0.1 − 1.2 × 10 11 M ⊙ .This can be compared with a characteristic stellar mass of ∼ 0.5 × 10 11 M ⊙ expected at z ∼ 3 [45].A majority of our galaxies have relatively low levels of dust attenuation (A v ∼ < 0.4).3D-EGS-34322 and 3D-UDS-39102 show the highest amount of dust with A v = 1.8 suggesting a non-negligible amount of dust in some of these early massive systems.In Figures 2 and 3 we also show the best-fit (lowest-χ 2 ) spectrum for our galaxies.All galaxies are well constrained by the parameters used in our fitting.We have extensively worked with the data reduction to constrain wiggles in the observed spectra and determine features that are not well reproduced by stellar populations models.This is further detailed in [44] and a full analysis of the our GO-2565 sample will be presented in Nanayakkara et al. (in prep) once the wider COSMOS-WEB Cycle 1 GO program is concluded.
Before JWST/NIRSpec was available, the limited spectral coverage from ground based spectroscopy and uncertain redshifts purely based on photometric data made it challenging to constrain the formation timescales.With spectroscopy we are able to obtain a redshift measurement and to accurately constrain the shape of the SEDs for galaxies without a very sharp Balmer break, (i.e., the more evolved objects).Furthermore, we are able to quantify any emission line contamination to the photometry (which can produce larger rest-frame optical breaks than the stellar continuum) which could result in an overestimate of the stellar masses.Therefore, with joint spectrophotometric fitting with FAST++ we are able to tightly constrain galaxy formation and quenching timescales.
Figure 4 shows the reconstructed SFHs based on FAST++ best fitting results.To be consistent with [44], we have trimmed the spectra to rest-frame ∼ 0.7 µm in FAST++ fitting for this purpose.10 of our sources have updated JWST/NIR-Cam based photometry.This combined with the rest-frame optical spectral coverage from NIRSpec provide more accurate constraints to the reconstruction of the SFH for our sources compared to what was possible in S18.At the redshift of observation 3D-UDS-39102 is the youngest galaxy in our sample reaching 50% of the stellar mass only in the last ∼ 50 million years.At the opposite end ZF-UDS-7329 reached its 50% of the stellar mass ∼ 1.5 billion years before it is observed redshift of z ∼ 3.2.While all galaxies classify as quenched based on the S18 definition, it is clear that there is a large variety in quenching timescales.3D-EGS-34322 has only reached the 0.1 × ⟨SF R⟩ main quenching definition very recently in the last 20 million years, while ZF-UDS-7329 has been quenched for ∼ > 1Gyr.Once rest U − V and V − J colors are recomputed for our sample at their spectroscopic redshifts with strong emission line contributions removed [38], we find that all galaxies lie inside or relatively near the border of the quiescent region.ZF-8197 was previously observed in S18 and was ruled out as a star-forming galaxy based on rest U − V and V − J colors, however with newer constraints from JWST, we confirm its balmer break and find that it falls at the boundary between star-forming and quiescent.
Are such high numbers of massive quiescent galaxies plausible at z ∼ 3 − 4? As shown by several studies ([e.g 46-48]) cosmological simulations found it challenging to reproduce observed number densities of massive quiescent galaxies at z > 3.With our current observing program we have targeted sources selected in the pre-JWST era which eluded ground based spectroscopic confirmations and confirmed seven new quiescent galaxies.
S18 reported 20 z ∼ 3 − 4 massive quiescent galaxies in the full ZFOURGE field.This was based on an accuracy of 80% (5/24 galaxies were reported as non-quiescent) for non-spectroscopically confirmed candidates.We observe 10 new galaxies and spectroscopically confirm seven to be quiescent.3D-EGS-34322, ZF-UDS-7542, and 3D-UDS-39102 only reached the quiescent definition in the ∼ < 100 Myrs, so to be conservative, we don't consider them to be quiescent in our calculations.We find that ZF-UDS-8197 which was ruled out by S18 to be quiescent.Additionally, 3D-UDS-39102 while quiescent, has a stellar mass < 3 × 10 10 M ⊙ .So we remove this also as an outlier since it doesn't satisfy the massive criteria imposed by S18.Thus our updated number density of massive quiescent sources is ∼ 1.1 (±0.3) × 10 −5 Mpc −3 .
On average, cosmological simulations have been able to reproduce observed number densities of quiescent galaxies up to z ∼ 3 [8,47,48], and depending on environment even up to z = 4 [49].For example our values can be compared with 0.6 − 3.6 × 10 −5 Mpc −3 obtained respectively at z = 3.7 and z = 3 with Illustris-TNG 100 [8].SHARK simulations also find a similar number density evolution for quiescent galaxies at z ∼ 3 − 4 [47].Additionally, at z ∼ 4, the local environment of galaxies has also shown to play a role in determining the quiescence of galaxies [49].
In order to reconcile observed number densities of massive quiescent galaxies at z ∼ 3 − 4, simulations have explored how supermassive black hole feedback regulate galaxy growth and star-formation quenching in galaxies in the first 1 − 2 billion years of the Universe and effects of revising gas/dust depletion timescales and star burst properties of the early Universe [17,[19][20][21]50].Observations such as those presented in this analysis will be critical to refining our understanding of the complex balance of physical processes that play the key role in the early epochs of galaxy formation.
Recent results from TNG300 show that with modified AGN feedback models that kick in at z < 6, currently observed number densities of massive quiescent galaxies can be reproduced [50].Similarly, SHARK v2.0 semi-analytical model is also able to reproduce number densities largely in agreement with observed values at z < 5 [19].However, details such as ages are still in tension and under investigation from several simulation approaches.For example, TNG300 forms the first quiescent galaxies at z < 4.2 and as shown by [44], the early formation of ZF-UDS-7329 is still a challenge for TNG300.In contrast to TNG300, the higher simulation box size and the greater time resolution of the Magneticum Pathfinder Simulations is attributed to Magneticum simulations being able to produce massive quenched galaxies at a higher redshift [from z ∼ 7 onward 17,20] At the end of our program we will provide tighter constraints to the abundance and formation epochs of massive quiescent galaxies in the early Universe.These constraints will then be robustly compared to simulations, as they will form a complete K-band selected sample.The statistics will enable to provide tighter constraints to galaxy formation and mass buildup mechanisms at z > 6, going beyond what has been possible in the pre-JWST era [e.g., 7, 51, 52].Additionally, early results from JWST Early Release Science imaging have shown evidence for more massive quiescent galaxy candidates at z > 3 [23] that were not selected by ground-based surveys.Spectroscopic confirmation of these sources along with constraints to their formation mechanisms would build up a picture of the early mass buildup of the Universe which can be tested with updated galaxy evolution models utilized by the new generation of simulations [e.g.17].
Prominent broad [Oiii]λ5007 and Hα emission lines are visible in our galaxies which could be indicative of AGN activity.The [Oiii]λ5007/Hβ vs stellar mass diagnostic from [36] suggests that these emission lines could be powered by an AGN.Given the low resolution of the NIRSpec/Prism mode observations, we are unable to separate the broad and narrow components of these emission lines.Thus, we cannot rule out secondary contribution from starformation to these lines.Recent results have shown evidence for AGN to play a prominent role in the evolution of massive quiescent galaxies at z ∼ 3 − 5.For example, NIRSpec medium resolution spectroscopy of a z ∼ 4.6 quiescent galaxy candidate [53] show clear evidence for broad outflows likely driven by an AGN.Similarly, the most massive galaxies spectroscopically confirmed at higher redshifts also allude to presence of accreting black holes [54].In our sample, most of the younger quiescent galaxies do show strong emission line ratios consistent with powered through AGN activity.While the post-starburst nature of low mass galaxies at z > 5 [55,56] could be driven by the prominence of strong star-bursts, our massive galaxies would likely require more intense feedback mechanisms to shut down star-formation.Future work is needed to disentangle the contribution of AGN feedback from the contribution of intense star formation within the context of the new generation of large cosmological simulations to test efficient quenching mechanisms of early massive galaxies [e.g.17, 57].
Our understanding of the formation of these early quiescent systems will improve rapidly due to the new capabilities of JWST.The new data presented here are only 33 minute integrations of HST selected samples at relatively low spectral resolution with a median S/N of ∼ 10 − 70 and are only a first look.Future higher spectral and spatial resolution JWST/NIRSpec observations of these galaxies have the capability to strengthen our understanding of the stellar populations, initial mass functions [58], and mass buildup mechanisms and timescales through measurements of their kinematic properties and abundance measurements of multiple elements [11].These massive quiescent galaxies provide a fossil record of star-formation in the Universe prior to z = 4, in systems where nature has helpfully formed an abundance of stars in one place where detailed high S/N spectral analysis with JWST will be possible.
This work is currently limited to presenting a first JWST/NIRSpec view of a HST selected population of massive quiescent galaxy candidates.The work mirrors the approach taken by S18 to provide a view of the transformative capabilities of JWST.A thorough analysis of ZF-UDS-7329 is presented in [44] with advanced modelling of parametric and non-parametric star-formation histories.Morphological analysis based on 1 − 5 µm PRIMER and CEERS imaging of our galaxies rule out any secondary reddened components for our sources (e.g.[59,60]).A detailed JWST/NIRcam morphological analysis of the S18 sources will be presented by Kawinwanichakij et al. (in prep).Nanayakkara et al. (in prep) will present the full S18 sample observed by GO-2565 program upon completion of data acquisition (imaging and spectra) and analysis with complex star-formation modelling including detailed contributions from AGN using BEAGLE [61] and Prospector [62].The lookback time for when the galaxy is considered quenched. d The lookback time for when the galaxy formed 50% of its total stellar mass. e The length of time where 68% of the total integrated SFR of the galaxy took place.This window surrounds the peak SFR of the galaxy.Fig. 2 The top and bottom panels present JWST/NIRSpec spectra of two quiescent galaxy candidates, ZF-UDS-7329 and ZF-UDS-8197 respectively, observed over the ZFOURGE-UDS field.ZF-UDS-7329 is one of the oldest known quiescent galaxies in the z > 3 Universe [44].ZF-UDS-8197 is a quiescent galaxy in our sample that exhibits strong [O iii]λ5007 and Hα EWs, possibly driven by an AGN.The spectra were optimally extracted [63] and flux-calibrated using PRIMER photometry.Grey bands highlight the KECK/MOS-FIRE Y , J, H, K bands (from left to right).To improve clarity, spectra are trimmed at < 1.1 µm.For each galaxy, we also display the PRIMER total photometry in two bins based on the S/N.The best-fit FAST++ template and the best-fit model photometry for the observed filters used in FAST++ are shown in the panels.Commonly observed rest-frame emission and absorption features are marked in the spectra.Insets in each panel display the ground-based K-band MOSFIRE spectra presented in S18.The thin cyan lines represent the MOSFIRE spectra at its native resolution of R ∼ 3000, while the thick blue lines correspond to the MOSFIRE spectra at a resolution similar to that of the JWST/NIRSpec Prism observations at λ obs ∼ 2 µm (R ∼ 100).The best-fit redshift and the reduced χ 2 of the FAST++ fits are labelled in each panel.z ∼ 3 − 4 Quiescent galaxies with JWST

Redshift
Fig. 4 The best-fit SFHs of our galaxies.The blue vertical lines indicate the time at which each galaxy formed 50% of its stellar mass, with the associated 3σ error parameterized by 1000 MCMC iterations is depicted by the blue shaded region.We show the quenching time, as defined by S18 (the time at which the galaxy's Star Formation Rate (SFR) falls below 10% of its primary SFR episode, as detailed in Section 4.1 of S18), by orange vertical lines.The associated error is shaded in orange.The black vertical line represents the age of the Universe when the galaxy is being observed.For each galaxy, the top panels depict the improved constraints acquired through our JWST/NIRSpec observations.The lower panels (below the dotted lines) present constraints reported in S18.For clarity, we use vertical dashed lines to represent the best-fit S18 values.

Spectrophotometric Calibration
The data were reduced using the publicly available pipeline jwst v1.12.5 with stages 1, 2, and 3 executed under theJ WST Calibration Reference Data System (CRDS) context jwst 1149.pmapprovided by STScI [64].The end products of this pipeline are 2D rectified, background-subtracted, and wavelength-and flux-calibrated spectral images, as well as a box car extraction from the 2D product.A significant limitation of the existing JWST/NIRSpec pipeline arises from the computation of the light pathloss function, which accounts for light loss due to the Multi-Shutter Assembly's (MSA) finite slit size (geometrical losses including those due to the PSF width) and the light dispersion stemming from the instrument's finite pupil size (diffraction loss) [65].The JWST flight calibration uses observations of slit-centred standard stars whose reference spectrum is known.Thus centred point sources receive an empirical absolute spectrophotometric calibration accounting for these geometric and diffraction losses.
For more complex sources the pipeline uses a theoretical optical model [65] to calculate the relative pathloss compared to a centred point source.However the pipeline only has models for non-centred point sources and for sources that uniformly fill a slit.Considering that our galaxy sample primarily consists of compact galaxies (Kawinwanichakij et al., in prep), neither scenario accurately represents their morphology.Estimating a correction based solely on morphological parameters is complicated and necessitates a model that accounts for the spatial light distribution of the object as a function of wavelength, including PSF effects.
Our first goal is to empirically verify that the absolute spectrophotometry though the slit, including PSF effects, is accurate.Our logic is that JWST NIRCam images should have a very similar PSF to that seen by NIRSpec as to first order the PSF represents the telescope optics diffraction with the different backend instrument optics creating only secondary modifications.Therefore we can add pseudo-slit apertures to NIRCAM images and compare fluxes in these apertures to the NIRSpec spectra.We use the NIRcam Primer images (data obtained from https://dawn-cph.github.io/dja/v7 data release) in the F115W, F150W, F200W, F277W, F356W, F410M, F444W bands and superimpose artificial slits in a 5-slit pattern over 3 dither position on all these images (Kawinwanichakij et al., in prep) to calculate the total flux falling within the slit aperture.
To obtain our NIRSpec spectrophotometry we take advantage of the fact that by definition the uniform pathloss correction file is simply the inverse of the pathloss correction for a centered point source ( [65], p.10).This arises because a uniform source has zero absolute pathloss.Thus by applying the uniform pathloss one simply gets the flux through the slit, regardless of image morphology.To achieve this we reduce all our spectroscopic data data forcing the NIRSpec pipeline to assume them as point sources for calibration.We further remove the pathloss step in the stage 2 pipeline that would correct for de-centering.Then we optimally extract 1D spectra and correct these using the uniform pathloss reference file.At each dither position we approximated our sources to be illuminated following a 3-slitlet pattern, given currently there are no JWST reference files for a 5-slitlet slit.We predict the result of this process to agree closely with the PRIMER photometry.
In Figure 5 we show this comparison, both before and after uniform pathloss correction is applied for ZF-UDS-3651.This is an ideal test case as this is an extended galaxy that sits near the edge of its slit.For all our sources, the RMS between slit vs uniform pathloss photometry is ∼ 5.8×10 −21 erg/s/cm 2 /)].Note this does not mean it represents the true flux on sky within the aperture because both NIRCam and NIRSpec data now include slit losses from PSF wings that will increase with wavelength.Any non-uniform source, even one with a uniform colour, will see a small chromatic shift due to the wavelength dependent PSF when viewed through a slit aperture.However the fact that NIRCam and NIRSpec agree means we have an understanding of the spectrophotometry of complex sources and validates our assumption that two instruments have very similar PSFs.
We next determine the correction to total spectrophotometry using the PRIMER photometry.First we investigate the degree of any spectral shift introduced by this by using the F 150W − F 444W colour as a proxy (as it straddles the Balmer breaks in our objects).We find the median shift in colour between slit and total to be at the ∼ 0.05 ± 0.2 mag level for all our sources, which we attribute to the relatively homogeneous colours of the quiescent galaxies.
We then used the photometry computed using the spectra to derive an empirical polynomial calibration function to match the total photometric magnitude of the objects.For this purpose we use all PRIMER photometry with a S/N> 20.We fit a 2nd order polynomial to the line flux difference and apply that correction to the observed uniform pathloss corrected spectra.Similar to before, we further validate that this process does not introduce an extra color bias to the spectra.We find the offset to be at the ∼ 0.05 ± 0.1 mag level.This scaled spectra is then used in spectral fitting using FAST++.

Spectrophotometric Fitting with FAST++
The galaxies studied in this work were selected from S18 for spectroscopic confirmation, and our FAST++ analysis closely mirrors the SFH analysis of S18.However, we allow the stellar metallicity to vary between 20-250% Z ⊙ and make minor adjustments to step sizes of the parameters that define the SFH as outlined in Table 2.
S18 tailored the analytical form of the SFH to specifically suite quiescent galaxies at z ∼ 3 − 4. The elaborate functional form developed by S18 allows the star-forming phase of the galaxies to be broken into two separate epochs.z ∼ 3 − 4 Quiescent galaxies with JWST The primary phase of the SFH comprise of an exponentially increasing and decreasing window and is expressed as follows: SF R Base (t) ∝ e (t burst −t)/τrise for t > t burst , e (t−t burst )/τ decl for t ≤ t burst , where SF R Base (t) is the base SFR at lookback time t, and t burst defines the boundary between e-folding times of the exponentially increasing (τ rise ) and decreasing (τ decl ) parts of the SFH.
Additionally, a scaling factor (R SF R ) is introduced during the last 10-300 Myr (t f ree ) of the galaxy SFH to momentarily increase the SFH near the observation time as follows: SF R(t) = SF R Base (t) × 1 for t > t free , R SF R for t ≤ t free .
where SF R(t) is the final SFR of the source at lookback time t.This adjustment is crucial for accounting for recent SFHs in otherwise quenched galaxies, especially when considering star formation rate (SFR) measurements derived from FIR observations.We refer the readers to [3,27] for further information on the SFH.
NIRSpec/Prism mode has a non-linear spectral resolution and dispersion.Thus, for accurate spectral fitting we need to convolve the model spectra with an accurate dispersion based on the source profile on the slit.We use the 1 − 5 µm NIRCam images from PRIMER to compute an empirical function on how the FWHM of the source image vary on the slit as a function of wavelength.This is well approximated by a linear function for our sources.We then multiply this function by the NIRSpec/Prism dispersion provided by STScI (https://jwst-docs.stsci.edu/jwstnear-infrared-spectrograph/nirspec-instrumentation/nirspecdispersers-and-filters#NIRSpecDispersersandFilters-DispersioncurvesfortheNIRSpecdispersers;also [26]) to obtain the LSF of the galaxies.This is then used by FAST++ to convolve the model spectra to match with the observations.The spectral resolution computed for our sources are shown by Figure 6 and more details are presented in [44].For the two galaxies with no NIRCam imaging, we use the LSF of a uniformly illuminated slit, as provided by STScI.The observed NIRSpec/Prism mode spectral resolution for our sample.These are empirically computed by modelling the image size on the NIRSpec MSA slit using PRIMER NIRCam imaging.The spectral resolution of the NIRSpec/Prism mode for a uniformly illuminated slit is shown by the black dashed line for comparison.Given our objects do not fill the full slit width, the observed resolution is higher than the values presented by STScI.

f 4347 Fig. 1
Fig.1An example of raw and reduced data obtained by our program.The lower panels show the first exposure of our ZFOURGE UDS mask obs100.The data has been processed through the calwebb detector1 pipeline which has combined the raw frames of the exposure (ramp fitted).This was a 657 s exposure (similar to all exposures carried out by our program) and three of our quiescent candidates: ZF-UDS-4347, ZF-UDS-3651, and ZF-UDS-6496 were covered by this pointing.We have highlighted the positions of these three galaxies in the detector using white boxes.The continuum traces from our z > 3 galaxies can be clearly seen in this exposure.In the middle panel we have zoomed into the region in the detector which covers ZF-UDS-3651.The continuum of the object and the bar shadows from the MSA can be seen here.The upper panel shows the final reduced 2D image of ZF-UDS-3651.Three exposures of 657 s in three dither positions have been combined to produced the positive trace of this object which is optimally extracted and shown in Figure3.

Fig. 3
Fig. 3 JWST/NIRSpec spectra of the other quiescent galaxy candidates presented in this work.The format of this figure mirrors that of Figure 2, with the exception of the MOSFIRE insets.

Fig. 5 Fig. 6
Fig. 5 An example demonstrating our total flux scaling process for ZF-UDS-3651.In the upper panel we show the NIRCam images of the galaxy.From left to right: [F 115W , F 200W , F 444W ] colour composite image covering rest frame optical bands.The next seven panels are the NIRCam [F 115W , F 150W , F 200W , F 277W , F 356W , F 410m, F 444W ] images.In each panel, the slit at dither position 1 is overlaid on the image.Flux through the slit is computed using the segmentation image of the source at all three dither positions.In the lower panel we show the 1D optimally extracted spectra of ZF-UDS-3651.In blue we show the 1D optimally extracted spectrum from the final 2D result from the JWST calibration pipeline.The spectrum after a uniform pathloss correction is applied is shown in purple.Photometry from the spectrum are shown by the purple triangles and the photometry computed through the slit images of the respective NIRCam bands are shown by the green stars.In grey we show the spectrum scaled to total NIRCam photometry (green squares) and its corresponding photometry in the filter by black circles.

Table 1
Galaxy spectroscopic redshifts, b SFR of the galaxy computed over a lookback time of 10 Myrs.c

Table 2
The SFH parameters used in FAST++.