I have try some code like this:
\begin{align*}
Q(R)&=\bi(R,R)\\
&=\bi(R_I+R_{\Rico}+R_W,R_I+R_{\Rico}+R_W)\\
&=\bi(R_I,R_I)+2\bi(R_I,R_{\Rico})+2\bi(R_I,R_W)\\
&+\bi(R_{\Rico},R_{\Rico})+2\bi(R_{\Rico},R_w)\\
&+\bi(R_W,R_W).
\end{align*}
where
\newcommand{\Rico}{\Ric_o}
\newcommand{\bi}{\mathrm{bi}\,}
The problem is I would like to set the last three lines aligned right, did there has any solutions instead to type several \quad or \qquad?

