TeX source:
q_r(t)= \left\{ \begin{array}{ll} D_ct, & iT_R ≤ t ≤ (i+1)T_R  \\ p_mT_s nD_r - d_ct, & (n+1)T_R ≤ t ≤ T \end{array} \right.