If A=1-12-1 ,B=a1b-1 and A+B2=A2+B2 , the value of a + b is
A+B2=A2+B2⇒AB+BA=0 ⇒1-12-1a1b-1+a1b-11-12-1=0 ⇒a-b22a-b3+a+2-a-1b-2-b+1=0⇒a=1,b=4⇒a+b=5