Given points are,
A(2,−1,1),B(1,2,1),C(3,1,2)
Let the given points be
x1=0,y1=0,z1=0x2=2,y2=−1,z2=1x3=3,y3=1,z3=2
Then ,
equation of plane passing through O,A,C is
∣∣
∣∣x−x1y−y1z−z1x2−x1y2−y1z2−z1x3−x1y3−y1z3−z1∣∣
∣∣=0∣∣
∣∣xyz2−11312∣∣
∣∣=0x(−2−1)−y(4−3)+z(2+3)=03x+y−5z=0
Now,
Shortest distance between point B(1,2,1) and plane OAC is
d=∣∣
∣
∣∣3×1+2×1−5×1√32+12+(−5)2∣∣
∣
∣∣=0
So, the point B is at no distance from the plane and hence it lies on the plane.