Ta có
\(B=\frac{\left(x-b\right)\left(x-c\right)}{\left(a-b\right)\left(a-c\right)}+\frac{\left(x-c\right)\left(x-a\right)}{\left(b-c\right)\left(b-a\right)}+\frac{\left(x-a\right)\left(x-b\right)}{\left(c-a\right)\left(c-b\right)}\)
\(=\frac{\left(x-b\right)\left(x-c\right)}{\left(a-b\right)\left(a-c\right)}+\frac{\left(x-c\right)\left(x-a\right)}{\left(b-c\right)\left(c-a\right)}+\frac{\left(x-c\right)\left(x-a\right)}{\left(a-c\right)\left(b-a\right)}+\frac{\left(x-a\right)\left(x-b\right)}{\left(c-a\right)\left(c-b\right)}\)
\(=\frac{\left(x-b\right)\left(x-c\right)}{\left(a-b\right)\left(a-c\right)}+\frac{\left(x-c\right)\left(x-a\right)}{\left(b-c\right)\left(c-a\right)}-\frac{\left(x-c\right)\left(x-a\right)}{\left(a-c\right)\left(a-b\right)}+\frac{\left(x-a\right)\left(x-b\right)}{\left(a-c\right)\left(c-b\right)}\)
\(=\frac{\left(x-b\right)\left(x-c\right)-\left(x-c\right)\left(x-a\right)}{\left(a-b\right)\left(a-c\right)}+\frac{\left(x-c\right)\left(x-a\right)-\left(x-b\right)\left(x-a\right)}{\left(b-c\right)\left(c-a\right)}\)
\(=\frac{\left(x-c\right)\left(a-b\right)}{\left(a-b\right)\left(a-c\right)}+\frac{\left(x-a\right)\left(b-c\right)}{\left(a-b\right)\left(a-c\right)}\).
\(=\frac{x-c}{a-c}-\frac{x-a}{a-c}=\frac{x-c-x+a}{a-c}\)
\(=1\)