Introduction

Gamma-ray bursts (GRBs) are the most energetic explosions known in the Universe and are also known to have the most relativistic jets, with initial expansion Lorentz factors of 100 < Γi < 10001,2,3. One of the most puzzling results in the study of GRBs is the existence of a long plateau in the early X-ray light curve (up to thousands of seconds)4,5,6,7 of a significant fraction of GRBs (43% until 20098 and 56% until 20197). This plateau, not predicted theoretically9, was first detected by the Neil Gehrels Swift Observatory10 in 2005, and despite the long time passed since its discovery, its origin is still highly debated in the literature, with many authors suggesting various extensions to the classical fireball model9 in order to explain it. Within the classical GRB fireball model9,11,12, the huge amount of energy (1051–1054 ergs) released in a compact region results in the creation of an optically thick fireball. The fireball, made of baryons, e± and photons, is accelerated by its own radiative pressure to highly relativistic speeds. Following an initial acceleration phase, the plasma coasts, cools and collects material from the circumstellar medium (CSM) which causes it to gradually slow. The observed signal is mainly due to synchrotron radiation from particles heated by the strong shocks that exist above the photosphere, and is predicted to gradually decay as the ejecta slows down in time, as is indeed observed (the so called afterglow).

To explain the plateau, the first and most commonly used idea is the continuous energy injection from a central compact object which can be a newly formed black hole4,6,13 or a millisecond magnetar14. Other notable ideas include two components15,16,17 or multi component18 jet models; forward shock emission in homogeneous media18; scattering by dust/modification of ambient density by gamma-ray trigger19,20; dominant reverse shock emission21,22; evolving micro-physical parameters19; and viewing angle effects in which jets are viewed off-axis18,23,24. While each of these ideas is capable of explaining the observed plateau under certain conditions, they all require an external addition to the basic fireball model scenario, and in some cases they cannot address the full set of properties of the plateau phase (such as the flux, slope or duration). A thorough discussion on the advantages and weaknesses of each of these ideas appear in Ref. 25. We provide a short comparison with some of the recent proposed ideas in Supplementary Discussion, Comparison with other models aimed at explaining the X-ray plateau.

Plateaus are seen in the X-ray light curves of both short (2 s) and long (2 s) GRBs26, and may be associated with the properties of the progenitors. While it is widely believed that short GRBs originate from compact binary merger27, the progenitors of long GRBs are thought to be the explosion of (very) massive stars (10 M) emitting strong stellar winds28,29. This idea is strongly supported by GRB-SN associations30,31, suggesting that Wolf-Rayet stars are the most likely progenitors of long-duration GRBs32. Additional supporting evidence are host galaxy studies33 and relatively low metalicity34. The low metalicity implies the expected mass-loss rates to be smaller than those in typical Wolf-Rayet stars in our galaxy35, \(\dot{M}=1{0}^{-5}{M}_{\odot }{{{{{{{{\rm{yr}}}}}}}}}^{-1}\). This implies wind velocity of vw = 108 cm s−1 as a characteristics of a GRB progenitor. Indeed, multiple spectral components from the GRBs and SNe at the optical band are seen with speeds of 5 × 107 cm s−1 and 3 × 108 cm s−132. These properties characterize the wind strength of the progenitor, therefore, affect the observed properties of the GRBs. As we show in this work, they may strongly affect the afterglow emission, and specifically the plateau emission.

Here we study in detail 13 GRBs with plateau phase seen in both X-ray and optical bands, selected from a sample of 222 GRBs with known redshifts and plateau phases defined in Ref. 7, see in methods subsection Sample Selection below. We consider a much simpler idea than previously discussed, which does not require any modification of the classical GRB fireball model. Rather, we simply look at a different region of the parameter space: a flow having an initial Lorentz factor of the order of a few tens, propagating into a wind (decaying density) ambient medium, with a typical density of up to two orders of magnitude below the expectation from a wind produced by a Wolf-Rayet star. We compute the physical parameters assuming synchrotron emission from a power-law distribution of electrons accelerated at the forward shock. As we show, this model provides a natural explanation to the observed signals. We discuss the implication of the results on the properties of GRB progenitors and the resulting jets, and show how they provide a novel tool to infer the physical properties inside the jet.

Results

Sample selection and data analysis

We selected 13 GRBs based on the criteria defined in methods subsection Sample Selection below. In analyzing the optical and X-ray light curves (see Supplementary Method 1, Sample and data analysis), we identified two achromatic temporal breaks6: one during the transition from the plateau to the decaying light curve, which we interpret as transition from the coasting to the self-similar expansion (this break marks the end of the plateau and denoted by Ta); and a second, later break, which is identified as a jet-break, marked as Tb. In some bursts a second break could not be detected due to poor data sampling at very late times. The temporal slopes during the plateau phase, self-similar phase and after the jet break are marked as αp, αA1 and αA2 respectively and are given in Supplementary Tables 13.

Theoretical regions

The optical and X-ray light curves do not necessarily follow the same power-law decay in either of the dynamical phases (plateau or self-similar). This can easily be understood in the framework of synchrotron emission from forward-shock accelerated electrons. The injected electrons assume a power-law distribution with power-law index p, namely Nel(γ)dγγp above a minimum value γm; below this value, one can assume the electrons to have a Maxwellian (or quasi-Maxwellian) energy distribution9,36. This assumption leads to a broken power-law spectra and light curves, whose shapes, in the relevant observed bands, depend on whether the peak frequency, νm (corresponding Lorentz factor γm) is above or below the cooling frequency, νc (corresponding Lorentz factor γc, for which the rate of energy lost by synchrotron emission is equal to the rate of energy lost by adiabatic cooling). For a given observed frequency (optical [typically the U-band]: νU or X-rays: νX), different possibilities of the expected light curve and spectra exist. These possibilities are listed in Supplementary Table 7 and are displayed in Supplementary Fig. 17. The parameter space defined by the fast cooling regime (νm > νc) is split in three regions marked as A, B, C; while the parameter space for slow cooling regime (νm < νc) contains the regions marked as D, E, F, respectively. At low frequencies, one needs to consider synchrotron self-absorption, which can safely be neglected being below the optical frequency at all observed times (see details, methods subsection Theoretical model).

Sample classification

After analyzing the data, we split the sample into 3 classes based on the X-ray and optical light curves during the plateau phase (corresponding to Supplementary Tables 13). These classes match very well the theoretical predictions. Class I is characterized by a flat X-ray light curve (\({F}_{\nu }\propto {t}_{{{{{{{{\rm{obs.}}}}}}}}}^{0.0..-0.2}\)), corresponding to regions C and F in Supplementary Table 7 and a decaying optical light curve (\({F}_{\nu }\propto {t}_{{{{{{{{\rm{obs.}}}}}}}}}^{-0.5..-0.7}\)), region E in Supplementary Table 7. Theoretically, this class corresponds to GRBs having their cooling frequency between the optical and the X-ray bands, namely νU < νc < νX. In class II, both the X-ray and the optical light curves are flat. Theoretically, this is expected for a low cooling frequency, νc < νU < νX. In class III, both X-ray and optical light curves are decaying. This is expected when the cooling frequency is high, νU < νX < νc. Interestingly, after excluding faint flares, all GRBs in our sample fall into one of these three classes. Furthermore, even tough the selection criteria for the different classes is based only on X-ray and optical light curves, there seems to be a connection between the energy of a burst, the duration of its plateau, and the its class. This is shown in Fig. 1.

Fig. 1: Total Isotropic Energy, Eiso as a function of the time at the end of the plateau phase, Ta,X in the X-ray band.
figure 1

Purple, black and blue points represent GRBs in the three different classes I, II, III respectively (see Supplementary Tables 13). The errors correspond to a significance of one sigma. Note that these three classes, selected only based on the temporal indices of their X-ray and optical afterglow light curves, are correlated with the prompt phase energy as well as the break time: each class occupies a different region in the Eiso - Ta,X parameter space. This fact provides a further, independent tool that increases our confidence in the selection criteria we use for these classes. The source data to reproduce this figure are provided as a Source Data file.

Closure relations and determination of the electron power-law indices

The theoretical model used herein imposes a relation between the spectral and the temporal slopes. These so-called closure relations are unique to each class and each observational band (optical and X-rays). Therefore, they can be used to assess the validity of our model. For each GRB, the X-ray spectral slopes (βp for the plateau phase, βA1 for the self-similar phase, βA2 for the spectral slope after the jet break) were obtained from the online Swift repository for the same time range as the temporal slopes, and optical spectral slopes were retrieved from the literature (the relevant references are given in Supplementary Table 13). We used the spectral and temporal slopes in each phase (plateau and self-similar) independently to further confront our theory to the data. Specifically, we checked that the closure relations relevant for regimes (C, E, F) for each band, each phase and each class are satisfied independently. The results are presented in Supplementary Figs. 15 and 16 for the plateau phase and the self-similar phase respectively. From these figures, it is clear that all the data––spectral and temporal, both in X-ray and optical - are consistent with the theoretical closure relations of the model.

Furthermore, from the closure relation, we deduced the power-law index p of the accelerated electrons by using 8 independent measurements, namely the temporal and spectral indices of both the optical and X-ray data during both the plateau and self-similar phases. This was done for both regions E and F. As we demonstrate in Fig. 2, we find that the power-law index of the accelerated electrons does not change in between the dynamical phases. We find that for all GRBs in our sample, the power-law index, p is in the range 1.8 p 2.5. For those bursts whose X-ray light curve is identified as being in region E, the electron power-law index is narrowly clustered around p 2, while a larger spread is found for other GRBs. In 3 cases, namely GRBs 060614, 060729 and 110213A, we find that the values derived from the optical spectral slopes are inconsistent with the other measurements (see caption of Table 1), in which case we use 6 out of 8 independent measurements in determining the region and the power-law index. The results are summarized in Table 1.

Fig. 2: An example demonstrating how we determine the relevant region for a given source as well as the electron power-law index (p) shown in Table 1.
figure 2

For each burst (in the cases presented here, GRB 091029), we consider eight independent indicators, namely the temporal (purple) and spectral (black) slopes of both the X-ray and optical data during both the plateau (dot) and self-similar (star) phases. These eight independent measurements are inserted into the theoretical predictions given in Supplementary Table 7 to calculate the values of the electron power-law index, under the assumption that the data is in region F (left side) or E (right side). The obtained eight independent measurements (for each region, F and E), are then displayed side by side. The vertical green dash-dot line separates the analysis carried under the assumption that the emission is in region F (left) and E (right), the vertical red lines separates X-ray and optical data and the dashed horizontal line marks p = 2. The errors correspond to a significance of one sigma. For X-ray data, the independent calculations converge in region F to a single value of p 2.15 while the assumption that the outflow is in region E leads to a diverging result. Similarly, for optical data, the assumption that the emission is in region F leads to a divergence, while the assumption that it is in region E provides a consistent value of p 1.85. We therefore conclude that the X-ray emission of GRB 091029 is in region F, and the optical emission is in region E. Therefore, this burst is classified as being in class I. The source data necessary to reproduce this Figure are provided as a Source Data file.

Table 1 Region and electron power-law index (p) in both X-ray and optical bands using both temporal and spectral indices

We find that the optical data of 6 GRBs out of 13 in our sample (listed in Supplementary Table 2) are compatible with being in region F, implying that the cooling frequency at the end of the plateau phase is below the observed optical band, νc < νU. For another 4 GRBs out of 13 (listed in Supplementary Table 1), the optical light curve decays (corresponding to region E), while the X-ray light curve is flat, namely for these bursts νU < νc < νX. For the remaining 3 GRBs out of 13 (listed in Supplementary Table 3) both the optical and X-ray light curves decay, and are therefore compatible with the cooling frequency being above the observed X-ray band νX < νc.

The derived values of the physical parameters

We use here a simple theoretical model for the afterglow: the emission is produced by synchrotron radiation from electrons accelerated to a power law distribution at the forward shock, generated by the propagation of the ejecta into a wind medium, characterized by a decaying density: ρ(r) = 5 × 1011Ar−2 g cm−3. Here, the normalisation is obtained by assuming a wind mass-loss rate of \(\dot{M}=1{0}^{-5}{M}_{\odot }{{{{{{{{\rm{yr}}}}}}}}}^{-1}\) and a wind velocity of vw = 108 cm s−1 characteristics of a GRB progenitor (see, Supplementary Method 2, Theoretical model, Equation (9)). The excellent agreement between the data and the theory enables us to determine or constrain the parameters of the outflow and the wind, in particular the proportionality constant A of the wind density, the initial jet Lorentz factor, Γi, the fraction of energy in the electrons, ϵe and the magnetization, ϵB. All relevant parameters used in the analysis are given in Table 2 (see, Supplementary Method 1c, Flux Ratio for details). For the 10 GRBs in Supplementary Tables 1 and 2, the X-ray flux and the transition time that marks the end of the plateau phase enable a direct deduction of ϵe, while for the 3 GRBs in Supplementary Table 3, only a lower limit is available. For the 4 GRBs in Supplementary Table 1 we can directly infer the combined value of \({A}_{\star }{{{\Gamma }}}_{i}^{4}\). For a given value of A, the value of ϵB is solely determined. Thus, an independent estimate of ϵB enables to break the degeneracy.

Table 2 Some key parameters of the 13 GRBs in our sample

In Fig. 3 we use known limits (10−5ϵB ≤ 0.1)37,38 to constrain the values of A and Γi. The lower values of ϵB are obtained from fitting the optical-to-X-ray light curves of bursts within the framework of the decaying afterglow model37 as well as the analysis of bright LAT GRBs39,40. Such a low value of ϵB = 10−5 would not be obtained from the faint GRBs in class II due to the physical limitation on the Lorentz factor (Γ > 1). Therefore, we find that for GRBs in class II, ϵB cannot be smaller than 10−3. However, for the GRBs in classes I and III, such a restriction is not necessary, and ϵB can be as small as 10−5. Correspondingly, if indeed ϵB obtain such a low value, the density would be large. Assuming the value ϵB = 10−5, we show the micro physical parameters of GRBs in classes I and III in Fig. 3 in orange.

Fig. 3: The initial GRB jet Lorentz factor, Γi and the ambient density, A.
figure 3

They are marked by lines, each corresponds to a different GRB. From top to bottom: GRBs 080607, 110213A, 060714, 080310, 061121, 060605, 130831A, 091029, 050319, 060729, 060614, 100418A, and 171205A. Purple, black and blue lines represent the GRBs in classes I, II and III respectively. For a given A, we determine the value of Γi by using Supplementary Equation (20) and knowing the burst energy and transition time Ta,X. This gives the lines. In order to further constrain the values of these parameters, we assume knowledge of magnetization, ϵB, and use Supplementary Equation (21) to deduce direct values of A and Γi (squares) for class I. For classes II and III, we instead use Supplementary Equations (24) and (25) to compute the lower (upper) and upper (lower) limits of Ai) respectively. These limites are represented by arrows. In all classes, the constraint put by the magnetization (ϵB) is inversely proportional to the ambient density. We mark on the plot the values obtained for ϵB = 0.1, 10−2, 10−3 and 10−5 which are associated to the blue, green, red and orange colors, respectively. The lowest value of Lorentz factor (4, blue arrow) is obtained for GRB 171205A. Due to its low luminosity, Liso = 5.6 × 1046 erg/s, the prompt emission radius is above the photospheric radius, as shown in Fig. 4. In addition, this GRB is found to exhibit a black-body emission with a low temperature in the X-ray spectra, later on this component cooling into the UV and optical range over time70,71. The source data to reproduce this figure are provided as a Source Data file.

A tighter constraint on the minimum value of the coasting Lorentz factor Γi, thereby on the value of the magnetization of GRBs in class II can be put using the requirement that the prompt emission radius, \({R}_{{{{{{{{\rm{E}}}}}}}}}=2{{{\Gamma }}}_{i}^{2}c{{\Delta }}{t}_{\min }\) be above the photospheric radius, \({R}_{{{{{{{{\rm{ph}}}}}}}}}= {L}_{{{{{{{{\rm{iso}}}}}}}}}{\sigma }_{T}/(8\pi {m}_{p}{c}^{3}{{{\Gamma }}}_{i}^{3})\)41. Here, \({{\Delta }}{{{{{{{{\rm{t}}}}}}}}}_{\min }\) is the minimum observed variability timescale during the prompt phase, Liso is the isotropic luminosity, σT is the Thomson cross section, mp is proton mass and c is the speed of light. For typical GRB parameters (including sub-second variability, \({{\Delta }}{t}_{\min }=0.1\) s and isotropic luminosity, Liso = 1050.5 erg/s), the requirement RE ≥ Rph results in a minimum Lorentz factor Γi 3041,42. A few GRBs in our sample, mainly in class II have an estimated Lorentz factor lower than this limiting value. However, all these GRBs are low luminosity GRBs, implying relatively low signal-to-noise ratio (S/N≤10) during the prompt phase43. Only in one case (GRB 060729) a reliable variability is measured, giving \({{\Delta }}{t}_{\min }=4.99\) s43, although the general trend of low luminosity GRBs having \({{\Delta }}{t}_{\min } \, > \, 1.0\) s is clearly observed43,44. Using the Swift-BAT light curves of all other low Γi GRBs in our sample we estimate that the observed variability of these GRBs is much longer, and we choose as a conservative estimate \({{\Delta }}t\ge {{\Delta }}{t}_{\min }=5\) s. Most importantly, given the degeneracy between Γi − A, for the GRBs with the lowest Lorentz factor, namely GRBs 060614, 060729, 100418A and GRB 171205A the required criteria is achieved for value of ϵB≥0.1, which enforces (relatively) high Γi and low A (the left hand side in Fig. 3). We therefore mark the value ϵB = 0.1 by blue arrows only for these GRBs in Fig. 3. The derived Lorentz factors for these bursts are ≈10, while the density is characterized by A = 10−2. The ratio of prompt emission radius to photospheric radius of all GRBs in our sample are plotted in Fig. 4, demonstrating that despite the low values of the Lorentz factors we obtain, the prompt emission radius is always above the photospheric radius.

Fig. 4: Ratio of the prompt emission radius, RE and the photospheric radius, Rph versus total isotropic energy Eiso.
figure 4

Purple, black and blue points represent GRBs in the three different classes I, II, III respectively (see Supplementary Tables 13). The errors correspond to a significance of one sigma. The low luminous GRBs with lowest Lorentz factor (GRBs 060614, 060729, 100418A and 171205A) are marked by their names. For these GRBs we consider ϵB = 0.1, leading to typical initial jet Lorentz factor Γi ≈ 10 and ratio RE/Rph ~ 5 − 25, but for GRB 100418A, which is marginally consistent with RE/Rph ~ 1. For all other GRBs, we assume ϵB = 10−3 when making this plot, and a variability time \({{\Delta }}{t}_{\min }\) taken from Refs. 43, 44, except for GRB 060714, where Δt = 5 s is assumed based on data from the Swift-BAT light-curve. We point out that a higher value of ϵB increases this ratio. The vertical green lines associated to each GRB illustrate the possible ratios of RE/Rph obtained for magnetization in the range 10−3ϵB≤0.7. The horizontal red line indicates RE/Rph = 1. It shows that in all cases, sufficiently high value of ϵB within the examined range leads to RE > Rph. The source data to reproduce this figure are provided as a Source Data file.

For the 6 GRBs in Supplementary Table 2, only a lower limit on the value of ϵB can be deduced. This is still highly valuable, as physically ϵB < 1.0. For the 3 GRBs in Supplementary Table 3, only an upper limit on ϵB is obtained. We use these limits to constrain the combination of \({A}_{\star }{{{\Gamma }}}_{i}^{4}\). They are presented in Table 3 and Fig. 3. In the figure, the values of Γi and A are marked by lines, each correspond to a different GRB. These are, from top to bottom: GRBs 080607, 110213A, 060714, 080310, 061121, 060605, 130831A, 091029, 050319, 060729, 060614, 100418A and 171205A. While directly deduced values are marked by squares, upper and lower values are marked by arrows.

Table 3 Model parameters of the outflow and wind

Discussion

A histogram of the initial Lorentz factor Γi for the 13 GRBs in our sample is shown in Fig. 5. The average value of the Lorentz factor deduced is 〈Γi〉 ≈ 51 (the median is 32), although the range span is between 2  Γi ≤ 218. These values may initially seem at odds with the typical values discussed in the literature, of Γi 100 of GRB jets. However, a closer look reveals that in fact there is no contradiction.

Fig. 5: Histogram of the initial jet Lorentz factors for the 13 GRBs in our sample.
figure 5

These values are obtained by assuming that the fraction of energy in the magnetic field is ϵB = 10−3. The purple bars represent values deduced directly from the data (class I), the black bars are upper limits (class II) and the blue bars are lower limits (class III). Upper and lower limits are also marked by arrows. The average value of the initial GRB jet Lorentz factor is 〈Γi〉 ≈ 51 (median is 32), although the range span is between 1.7  Γi ≤ 218 (see Table 3). We point out that GRB 080607 which has the highest value of Γi has a large gap in its X-ray LC between the plateau and self-similar phases. Furthermore, GRB 171205A which has the lowest value of Γi is associated with SN 2017iuk, therefore, both the optical plateau and self-similar slopes of this burst are effected by the SN bump (see, Supplementary Method 1b, Optical data and fitting process for further discussion). The source data to reproduce this figure are provided as a Source Data file.

There are several ways of inferring the value of the Lorentz factor in GRB jets. The most widely used method is the opacity argument1,2, which is commonly used in deducing that observed GeV photons by Fermi-Large Area Telescope (LAT) must originate from a region expanding with a Lorentz factor \({{{\Gamma }}}_{i}\,\gtrsim\, 100^{\prime} s\). This argument, though, is only valid when > MeV photons are observed. A previous search45 of GRBs observed from 2008 until May 2016 by Fermi-LAT that appeared in the 2nd catalogue46 and are (1) fitted with a broken power-law, (2) have the Test Statistic, TS > 64 and (3) have known redshift (in total 13 GRBs) demonstrates that although 3 GRBs out of the thirteen show evidence for a shallow decay phase in the LAT data, only one (the hard-short GRB 090510) show any evidence for a decaying plateau in the Swift-XRT data. For this specific burst, the shallowest decay segment in its X-ray afterglow light-curve can only marginally be associated to a plateau, having an X-ray slope of \(-0.6{9}_{-0.06}^{+0.05}\), to be compared to the −0.7 limit used in this study. These arguments are consistent with earlier findings by Ref. 47 for 23 GRBs triggered by Swift-BAT and subsequently detected by Fermi-LAT46.

The second method relies on identifying an early optical flash and interpreting it as originating from the reverse shock3,48,49. Since the reverse shock exists during the transition from the coasting to the decaying (self-similar) phase, identifying its emission constrains the transition time, from which, assuming the energy and ambient density are known, the initial Lorentz factor can be deduced. However, a clear signature of a reverse shock emission is nearly never identified50,51 as opposed to flares common to both the X-ray and optical data52,53,54,55 and does not exist in any of the bursts in our sample.

When a strong thermal component exists during the prompt phase, it is possible to use it to infer the Lorentz factor at the initial phase of the expansion56. We therefore searched (i) all bursts with known strong thermal component as appeared in Refs. 57,58,59. None of those showed any evidence for an X-ray plateau. (ii) Similarly, none of the bursts in our sample show any evidence for a thermal emission.

To conclude, we find that in all cases where there is any evidence for an initial Lorentz factor Γi a few hundreds, no X-ray plateau exists, and vice versa: for all bursts that show a plateau, no significant indication for high Lorentz factor exist, neither at high energy, thermal or optical photons. We further emphasis that GRBs with plateau phase which have very low Lorentz factor (namely, GRBs in class II) lack any evidence of MeV emission, implying that the opacity argument cannot be used at all in these bursts.

One may argue that such a difference in the Lorentz factor cannot only manifest itself in the afterglow phase, but should be manifested in the prompt emission spectra as well. To further test this hypothesis, we therefore compared the peak energy of the 13 bursts in our sample to a reference sample of selected 12 GRB without plateau phase, as presented in table 6 of Ref. 51. In that work, the authors estimated the Lorentz factor of these bursts using X-ray onset bump or early peak in the optical data and found that the Lorentz factor is of the order of few hundreds in all cases. We therefore concluded that this is a good reference for comparing the distribution of observed peak energies, Epk. In order to ensure consistency, we did not use the values of Epk as given in Ref. 51 (measured from different instruments e.g. Konus-WIND). Rather, we calculated Epk directly from the Swift-BAT data. This ensures that there are no biases between the samples. In the calculation, we used the correlation between the peak energy and spectral index derived from fitting a single power-law to a large Fermi-GBM and Swift-BAT data as parameterized by Ref. 60 as such a method is commonly used in the literature61,62. The method gives consistent results (Epk) with the deduced value from the Fermi-GBM data. In Fig. 6, we compare the peak energy distribution of these two samples. A clear separation is found: those GRBs which have a higher Lorentz factor indeed have a consistently higher Epk than the GRBs in our sample. In addition to the clear differences between the peak energy distribution of plateau and without plateau, we also found clear differences between the high energy spectral indices (presented in the Fermi-GBM GRB catalog63) of bursts in these samples.

Fig. 6: Distributions of peak energy, Epk.
figure 6

The black bars represent the 13 GRBs with plateau phases in our sample, the red bars represent 12 GRBs without plateau phases presented in Table 6 of Ref. 51. Note that GRBs 050319, 061021 as well as early GRBs observed before the launch of Swift-BAT in Ref. 51 were discarded. In the panel the right-hand ordinate is the number of burst in each histogram bin and the left-hand ordinate is the value of the kernel density estimation (KDE), which is shown by the black and red curves for each sample respectively. Clearly, plateau bursts have a lower peak energy than other bursts. This result is consistent with the idea that jets in these bursts have a lower initial jet Lorentz factor. We also performed a Kolmogorov-Smirnov test (KS test: D = 0.60 and p = 0.014) which can clearly show if these two samples originate from the same population. The KS test result shows that there is only 1.4% chance for these samples to have originated from the same population and they differ with 60%. We view this as another hint towards understanding the difference between GRBs that do show a plateau and those do not. The source data to reproduce this figure are provided as a Source Data file.

Furthermore, it is known that short GRBs have, on the average, higher Epk than long GRBs59, while it was argued by Ref. 7 that 43/222 short GRBs do show a plateau. However, we point out that the criteria used by Ref. 7 for a plateau, namely a break in the X-ray light curve, is much less restrictive than the one used here (namely, X-ray temporal index >−0.7). Using the criteria in this work, none of the short GRB light curves considered by Ref. 7 would be classified as having a flat X-ray light curve (considered as class II, with low Lorentz factor of  few), or was observed in the MeV range by Fermi-GBM63. Therefore, the compactness argument does not apply for these bursts.

The results we have here, therefore, complement and extend the known range of Lorentz factors in GRBs. The values of A we find are typically up to 2 orders of magnitude lower than the fiducial value of A = 1 (pending on the exact value of the magnetization parameter, ϵB; see Fig. 3). We therefore conclude that the expansion occurs into a low-density wind, having density which may be somewhat lower than the expectation from a Wolf-Rayet star (A 0.5 − 1.0)64,65. This result therefore implies that either Wolf-Rayet stars are not the progenitors of GRBs with plateau, or that the properties of the wind ejected by the star prior to its final collapse are different than in earlier stages of its life.

Indeed, we cannot consider this as an evidence against Wolf-Rayet progenitor stars, as very little is known about the final stages of the evolution of the most massive stars (luminous blue variables and Wolf-Rayet stars), of which some lead to an evolutionary channel which end up as GRBs. Rapid evolutionary stages of such stars are expected during the last 10’s of centuries of their life, which will have profound affect on the circumstellar wind profiles. Instabilities will cause elevation of the outer envelope potentially leading to occasional giant eruption events, with major mass ejections in several consecutive periods. These mass ejections lead to circumstellar nebulae and wind blown bubbles66,67. Observations of galactic Wolf-Rayet stars indicate shell structures and nebulae at 1-10 pc scales, and in some cases, reveals the existence of low density cavities within these nebulae67. We thus view one of the merits of this work as providing further information that could potentially help understanding the nature of these objects.

Clearly, the fact that a substantial fraction of GRBs have a Lorentz factor of tens rather than hundreds bridges an important observational gap. Other astronomical objects known to have jets such as X-ray binaries or active-galactic nuclei (AGNs) have mildly relativistic jets, with Γi 20, while earlier estimates of the initial Lorentz factor in GRB jets are in the hundreds. Our result, therefore implies that the range of initial jet velocities that exist in nature does not have a ’gap’ in the range Γi of tens, but is rather continuous from mildly relativistic to  1000. This is shown by the histogram presented in Fig. 7.

Fig. 7: Histogram of the initial jet Lorentz factors.
figure 7

Black represents the GRBs in our sample, as they appear in Fig. 5. Yellow represents GRBs observed by the Fermi-LAT instrument, taken from Ref. 3, whose jet Lorentz factor is deduced from the opacity argument (GRBs 090926A, 090902B, 090510, 080916C; see Ref. 3, figure 11) and other GRBs that do not show a plateau phase (except GRBs 050319 and 061021), taken from Ref. 51 (table 6 therein). Green represents the inferred lower limit to the Lorentz factor of BL Lac objects (Blazars), taken from Ref. 72 (see their table 2A). The values of the Lorentz factor we found, of few tens, fills the gap that previously existed in the range of initial jet velocities. The source data to reproduce this figure are provided as a Source Data file.

Here, we consider a simple model in explaining the X-ray plateau in GRB afterglows, which does not require any modification of the classical GRB fireball model. Rather, we simply look at a different region of the parameter space: we consider an outflow having an initial Lorentz factor of the order of few tens, propagating into a wind environment, with a typical density of up to two orders of magnitude below the expectation from a wind produced by a Wolf-Rayet star. We follow a similar idea that was proposed by Ref. 68, but did not gain popularity, as (i) the deduced values of the Lorentz factor are lower than the fiducial values, Γi 100; and (ii) it was mistakenly claimed that this model can only account for achromatic afterglow, and can therefore explain only a sub-sample of the GRB population25. As we showed here, (i) there is no contradiction in the deduced value of the Lorentz factor, and (ii) the claim for an achromatic afterglow break is incorrect, as the optical and X-ray bands are not necessarily in the same regimes.

In our work, we considerably extended this simple idea theoretically and thoroughly confronted it to observations. We show that whenever there is enough data to perform a fit in both X-ray and optical bands, the break time in between these two bands is compatible and data in both bands can be interpreted within the single theoretical model presented here. We further carried out a more careful analysis on a much larger data set, allowing for a larger freedom (with more than a single break) and removal of flares on both the X-ray and optical data. We extended the theory to include all possible regimes. We showed that all observed light-curves can be explained by at least one of these regimes. We then showed how the confrontation of our model to the data can be used to infer the values of the density, Lorentz factor, magnetization and fraction of energy carried by the electrons. Moreover, our model provides several testable predictions about bursts with long plateau. Such bursts (i) are not expected to show high energy (  GeV) emission; (ii) are not expected to show strong thermal component; and (iii) the typical variability time during the prompt phase is expected to be long, of the order of few seconds. Exact constraints can be put on a case-by-case basis, using the equations we provide below (see, methods subsection Theoretical model).

While the idea presented in this work is very simple, clearly it has very far reaching consequences: [a] On the nature of long GRB progenitors, which can either (i) not be a Wolf-Rayet star, or (ii) imply that the properties of the wind ejected by these stars prior to their final explosion is very different than the properties of the wind ejected at earlier times. [b] On our understanding of the nature of the explosion itself, which produce a much wider range of initial jet Lorentz factor, which in many cases are in the range of tens and in others are in the hundreds.

Methods

Sample selection

To study the properties of the plateau, we use the sample of 222 GRBs with known redshifts and plateau phases defined in Ref. 7. These GRBs were detected by the Neil Gehrels Swift Observatory from January 2005 until August 2019. They represent 56% of all GRBs with known redshifts observed by the Swift satellite in this period.

In order to make our analysis as reliable as possible, we limit the bursts used to the ones having the best quality observations. Therefore, we added three criteria to the ones used by Ref. 7. We require (i) a long lasting (from 102 to 105 s) plateau phase with a temporal X-ray slope larger than −0.7, followed by a power-law decay phase at later times (interpreted here as the self-similar phase). (ii) Sufficient number of data points (5) during the plateau and self-similar phases to enable the fits to give well constrained parameter (see, Supplementary Method 1a, X-ray data and fitting process). For the analysis to be valid, we excluded all X-ray flares from the analyzed data. We found 130 GRBs matching these two criteria. (iii) Finally, we require an optical counterpart at around the same time as the X-ray data. We searched the optical catalogue of Ref. 69 and found that 24 GRBs in our sample have an optical counterpart. Out of these, we had full access to the optical data of 13 GRBs, which are listed in Supplementary Tables 13. The analysis of X-ray and optical light curves of these 13 GRBs is detailed in Supplementary Method 1, Sample and data analysis.

Theoretical model

The key to understanding the observations in the framework of our model is the realization that the end of the plateau corresponds to the transition from a coasting phase (steady state in which all the energy has been converted to kinetic energy) to a self-similar expansion phase (decaying phase in which the kinetic energy is being converted back to radiation by the shocks) of the expanding plasma. In this model, the emission originates entirely from ambient electrons collected and heated by the forward shock wave, propagating at relativistic speeds inside a wind (decaying density) ambient medium. As we show (see, Supplementary Method 2, Theoretical model) this assumption about the decay of the ambient density is crucial in explaining the observations. During the transition from the coasting phase to the decaying phase a reverse shock crosses the expanding plasma. However, the contribution from electrons heated by the reverse shock is suppressed due to (i) the declining ambient density, which implies that the ratio of plasma density to ambient density remains constant (under the assumption of a conical expansion), and (ii) its slower speed, which translates into less energetic electrons that emit at much lower frequencies than forward shock heated electrons, implying that the contribution to the optical and X-ray bands is negligible. A detailed derivation of the theoretical model is provided in Supplementary Method 2, Theoretical model.