Top input=Aˉ(via NOT gate)
Bottom input=A⋅B(via AND gate)
Y=Aˉ+(A⋅B)
Using the distributive law of Boolean algebra (X+(Xˉ⋅Y)=X+Y):
Y=(Aˉ+A)⋅(Aˉ+B)
⟹Y=1⋅(Aˉ+B)=Aˉ+B
For A=0,B=0⟹Y=0ˉ+0=1+0=1For A=0,B=1⟹Y=0ˉ+1=1+1=1For A=1,B=0⟹Y=1ˉ+0=0+0=0For A=1,B=1⟹Y=1ˉ+1=0+1=1