Step 1: King property:
Write $I=\int_{-a}^a f(x)dx$ and also $I=\int_{-a}^a f(-x)dx$. Adding, $2I=\int_{-a}^a x^2\cos x\left[\frac1{1+e^x}+\frac{1}{1+e^{-x}}\right]dx$.
Step 2: Bracket:
The bracket equals $\dfrac{1}{1+e^x}+\dfrac{e^x}{e^x+1}=1$. So $2I=\int_{-\pi/2}^{\pi/2}x^2\cos x\,dx=2\int_0^{\pi/2}x^2\cos x\,dx$.
Step 3: Result:
$I=\dfrac{\pi^2}{4}-2$. Hence $A=4$, $B=2$, $A/B=2$.
Final Answer:
Both methods give I = pi^2/4 - 2.
\[ \boxed{B} \]