Distinguish between complements/substitutes in utility function or production function
Hello everyone,
I would like to know if there exists some utility function $U(x)$ for $n$ goods that is able to distinguish between complements/substitutes at the same time. The reason is that in reality a consumer can consider good $A$ to be a complement (to some extent) to a good $B$ but the good $B$ can be a substitute (to some extent) to a good $C$.
I am interested in a case of imperfect complements/substitutes rather than in their perfect variant since the perfect one is boring. That would be just something like: $U(x) = min\{x_1; x_2\} + x_3$.
What I strive to find out is some generalization of CES function for pairs of goods that would provide the different elasticity of substitution for two chosen goods based on 1 parameter. Something which would work in a following way:
$$ \{x_1; x_2 \}^{\rho_{1,2}}; \{x_1; x_3 \}^{\rho_{1,3}}; \{x_3; x_5 \}^{\rho_{3,5}} $$
- If $\rho_{1,2} > 0$ goods $x_1$ and $x_2$ are substitutes (meaning their elasticity of substitution $\sigma_{1,2} > 1$).
- If $\rho_{3,5} < 0$ goods $x_3$ and $x_5$ are complements ($\sigma_{3,5} < 1$)
- etc...
In a functional form it could work for example as this:
$$ U(x) = g \left[f_1(x_1;x_2)^{\rho_{1,2}}; f_2(x_1;x_3)^{\rho_{1,3}}; \dots; f_m(x_3;x_5)^{\rho_{3,5}} \right] $$
Do you know some kind of elegant utility function (or production function) $U(x, \rho)$ with such property? Or whether some research of this topic is in process?
Illustration: I am searching for a simple and flexible function $y = f(x_1; x_2; x_3)$ which would satisfy (at least to some extent, meaning it does not have to be exact) the following property per pairs of variables:
Thank you very much!