Q. If $\int \left(\frac{x^{2} - x + 1}{x^{2} + 1}\right)\cdot e^{\left(cot\right)^{- 1} x}dx$ $=A\left(x\right)\cdot e^{\left(cot\right)^{- 1} x}+C$ , where $C$ is constant of integration, then $A\left(x\right)$ is equal to
NTA AbhyasNTA Abhyas 2022
Solution: