Let O be the origin and →a,→b,→c and →d be the position vector of A,B,C and D.
−−→AB⋅−−→CD=(→b−→a)⋅(→d−→c)
⇒−−→AB⋅−−→CD=→b⋅→d+→c⋅→a−→b⋅→c−→d⋅→a ⋯(i)
⇒((−−→AD)2+(−−→BC)2−(−−→AC)2−(−−→BD)2)=(→d−→a)2+(→c−→b)2−(→c−→a)2−(→d−→b)2
=|→d|2+|→a|2−2→d⋅→a+|→c|2+|→b|2−2→c⋅→b−|→c|2−|→a|2+2→c⋅→a−|→d|2−|→b|2+2→d⋅→b
=2(→b⋅→d+→c⋅→a−→b⋅→c−→d⋅→a)
Using (i), we have
λ=2