\(a+b+c=2p\Rightarrow a=2p-b-c\)
Ta có:
\(a^2-b^2-c^2+2bc=a^2-\left(b-c\right)^2=\left(a-b+c\right)\left(a+b-c\right)\)
\(=\left(2p-b-c-b+c\right)\left(2p-b-c+b-c\right)\)
\(=\left(2p-2b\right)\left(2p-2c\right)\)
\(=4\left(p-b\right)\left(p-c\right)\)