With the following codes
\documentclass[12pt,a4paper]{report}
\usepackage{amsfonts,amsmath,amssymb,graphicx,amsthm,xcolor,tikz}
\usetikzlibrary{calc,matrix}
\begin{document}
\begin{tikzpicture}[
strip/.style = {
draw=#1,%color
line width=1em, opacity=0.2,
shorten <=-2mm,shorten >=-2mm,
},
]
\matrix (mtrx) [matrix of math nodes,
column sep=1em,
nodes={text height=1ex,text width=2ex}]
{
|[red]|+
& |[red]|+
& \color{red}+\color{blue}-
& |[blue]|-
& |[blue]|- \[3.3mm,between origins]
a_1 & b_1 & c_1 & a_1 & a_2 \
a_2 & b_2 & c_2 & a_2 & b_2 \
a_3 & b_3 & c_3 & a_3 & b_3 \
};
\draw[thick] (mtrx-2-1.north) -| (mtrx-4-1.south west)
-- (mtrx-4-1.south);
\draw[thick] (mtrx-2-3.north) -| (mtrx-4-3.south east)
-- (mtrx-4-3.south);
\path[draw,strip=blue]
(mtrx-4-1.center) edge (mtrx-2-3.center)
(mtrx-4-2.center) edge (mtrx-2-4.center)
(mtrx-4-3.center) -- (mtrx-2-5.center);
\path[draw,strip=red]
(mtrx-2-1.center) edge (mtrx-4-3.center)
(mtrx-2-2.center) edge (mtrx-4-4.center)
(mtrx-2-3.center) -- (mtrx-4-5.center);
\end{tikzpicture}
\end{document}
I get
Howerver I want to replace
[]by||and chage the place of the minus-. Also I want to add them in equations as the picture shows
I tried with \begin{align*} .. & = \\ &= \end{align*} but it does not work.


