Find all pairs (a,b)(a, b)(a,b) of integers a,b≥1a, b \geq 1a,b≥1 that satisfy the equation
ab2=ba.a^{b^2} = b^a.ab2=ba.