If the primitive of 1ex−12 is
f(x)−log|g(x)|+C then
domf=R
g(x)=1−ex
domf=R~{0}
f(x)=1−e−x
∫1ex−12dx=∫exdxexex−12=∫dtt(t−1)2
t=ex
=∫1t−11t−1−1tdt=∫1(t−1)2−1t−1+1tdt=11−t−log|t−1|+log|t|+C=1−ex−1−log1−e−x+C
Hence f(x)=1−ex−1 and g(x)=1−e−x
The domain of f=R~{0}