Find all pairs (a,b)(a, b) of integers a,b1a, b \geq 1 that satisfy the equation

ab2=ba.a^{b^2} = b^a.