How to construct a smooth function with compact support satisfying $$ f(x)+f(x^{-1})=1 $$
For example, let $$ g(x)=\left\{\begin{array}{ll} 0,&\mbox{if $x\leq 0$},\\ \frac{1}{1+e^{\frac{1}{x}-\frac{1}{1-x}}},&\mbox{if $0<x<1$},\\ 1,&\mbox{if $x\geq 1$}, \end{array} \right. $$ Then $$ G(x)=g\left(\frac{x-a}{b-a}\right)g\left(\frac{d-x}{d-c}\right) $$ is a smooth function which equals 1 on [b,c] and vanishes outside (a,d). However, I don't know how to modify it to satisfy $$ G(x)+G(x^{-1})=1 $$