So the way I was taught to decompose into partial fractions was something like this:
Say I begin with a fraction like $\frac{1}{x^2-1}$ that I want to decompose that into two fractions with linear denominators.
I would do $$\frac{1}{x^2-1}=\frac{A}{x-1}+\frac{B}{x+1},$$
which then gives $1=A(x+1)+B(x-1)$.
Then to solve quickly, you can set $x=1$, and solve for $A$, then $x=-1$ and solve for $B$.
My question is, why can you let $x=1$ and $x=-1$? Aren't those excluded values? Isn't the equation $$\frac{1}{x^2-1}=\frac{A}{x-1}+\frac{B}{x+1}$$ only valid for all $x$ other than $1$ and $-1$?