We have, f:(−∞,−A8)∪(−A8,−B8)→R such that
f(x)=log|x−1|−|x+1|−12(x2−x+12)x2−3x+2
Let P=|x−1|−|x+1|−12 and Q=(x2−x−12)x2−3x+2
For the function f(x) to be defined,
P≠1, P>0 and Q>0
P=⎧⎪
⎪
⎪⎨⎪
⎪
⎪⎩−(x−1)−[−(x+1)]−12;x≤−1x−1−[−(x+1)]−12;−1<x<1(x−1)−(x+1)−12;x≥1
P=⎧⎪
⎪
⎪⎨⎪
⎪
⎪⎩32;x≤−12x−12;−1<x<1−52;x≥1
Now, f(x) has a valid base for x≤−1 and
for −1<x<1,−2x−12>0 and −2x−12≠0⇒x<−14 and x≠−34∴x∈(−∞,−14)−{−34}
Q>0⇒(x2−x+12)x2−3x+2>0⇒(x−12)2+14>0, which is true for all x∈R
Therefore, the domain of function f(x) is (−∞,−14)−{−34}
∴A=6 and B=2A+B=8