See this simple example :
$$\frac{x+1}{(x-1)(x-2)}\equiv \frac{A}{(x-1)}+\frac{B}{(x-2)}$$
Then we can get
$x+1 \equiv A(x-2)+B(x-1)$ for $x \neq 1 ,2$
My Question :
Is it correct to put $x=1$ to find $A$ ,
Is it correct to put $x=2$ to find $B$, other than comparing coefficients ?
Both methods give the same answer. But we get $x+1 \equiv A(x-2)+B(x-1)$ for $x \neq 1 ,2$ . So is it okay if I use $x=1$ to find $A$ ?
Yes it's okay! You can either substitute by a value (here 1 and 2 are called two poles) or you can identify the coefficients or even take the limit etc...