1: \begin{abstract}
2: %In this paper, a new discrete fractional Gr{\"o}nwall inequality for convolution quadrature generated by the generalized Newton-Gregory (gNG) formulas up to order $p=2$ is established. We illustrate its use by outlining the stability and convergence estimates of gNG-spectral Legendre Galerkin methods for the linear time-fractional subdiffusion equations. Based on the discrete fractional Gr{\"o}nwall inequality and the temporal-spatial error splitting argument, we also prove the unconditionally convergent gNG-spectral Legendre Galerkin methods for the nonlinear time-fractional subdiffusion equations, without any time-step size condition.
3: In this paper, a new type of the discrete fractional Gr{\"o}nwall inequality is developed, which
4: is applied to analyze the stability and convergence of a Galerkin spectral method
5: for a linear time-fractional subdiffusion equation.
6: Based on the temporal-spatial error splitting argument technique,
7: the discrete fractional Gr{\"o}nwall inequality is also
8: applied to prove the unconditional convergence of a semi-implicit Galerkin spectral method for a nonlinear time-fractional subdiffusion equation.
9: %
10: %and the temporal-spatial error splitting argument,
11: %we also prove the unconditionally convergent gNG-spectral Legendre Galerkin methods for the nonlinear time-fractional subdiffusion equations, without any time-step size condition.
12: \end{abstract}