已知f(x)为偶函数,g(x)为奇函数且满足f(x)+g(x)=1/(x+1),求f(x),g(x)的解析式.