f(x)=1x+|x−1|, g(x)=1x+|x+1|
Domain of f is R but domain of g is not R
f(x)=1x+|x−1|x+|x−1|={2x−1,x≥11,x<1
For x≥1, x+|x−1|=0⇒2x−1=0⇒x=12
Since 12<1, this is not possible.
For x<1, x+|x−1|=0⇒1=0 - not possible
⇒x+|x−1|≠0
Hence, Domain of f is R.
g(x)=1x+|x+1|x+|x+1|={2x+1,x≥−1−1,x<1For x≥−1,x+|x+1|=2x+1=0 ⇒x=−12−12>−1 − possible
g(x) is not defined at x=−12
Hence, domain of g is not R.