What is the operation principle of differential relay?

A differential relay operates when the phasor difference of two or more similar electrical quantities exceeds a pre-determined amount.