1: \begin{abstract}
2: Starting with the asymptotic expansion of the error equation
3: of the shifted Gr\"{u}nwald--Letnikov formula,
4: we derive a new modified weighted shifted Gr\"{u}nwald--Letnikov (WSGL) formula by introducing appropriate correction terms.
5: %we derive the
6: %second-order weighted shifted Gr\"{u}nwald--Letnikov formula.
7: %By introducing correction terms of Lubich, we obtain a modified
8: %second-order formula and present its error bound.
9: We then apply one special case of the modified WSGL formula to solve multi-term fractional
10: ordinary and partial differential equations, and we prove the linear stability and
11: second-order convergence for both smooth and non-smooth solutions.
12: We show theoretically and numerically that
13: numerical solutions up to certain accuracy can be obtained with only a few correction terms.
14: Moreover, the correction terms can be tuned according to the fractional derivative orders without explicitly knowing
15: the analytical solutions.
16: Numerical simulations verify the theoretical results and demonstrate that the new
17: formula leads to better performance
18: compared to other known numerical approximations with similar resolution.
19: \end{abstract}