The short answer to your question (as stated elsewhere) is that
there is no single mathematical definition of a U-shape. The comment by @whuber is the
best general definition that I have seen.
I do research on tests of U-shapes and for my presentation I have a slide with the title
"What does a U mean to you?", meaning that it is subjective what people mean by
the term "U-shape". The most important thing is that when you use the term
"U-shape", you define exactly what you mean by it, without assuming that
others will know what you mean.
Since you specified the case of only one regressor, I'll focus on that. I've
seen the following definitions used in various articles:
- A U-shape is a quadratic.
- A U-shape means convexity (for an application along these lines, see Van Landeghem's 2012 "A test for the convexity of human well-being over the life cycle: Longitudinal evidence from a 20-year panel").
- A U-shape is a function with weighted average derivative negative until a point, and weighted average derivative positive after that point (see Uri Simonsohn's Two-Lines: The First Valid Test of U-Shaped Relationships).
- A U-shape is a function with exactly one turning point. This corresponds to a function that is quasi-convex but not monotone.
One complication that comes up is what if the turning point is close to the
ends of the range of the x variable? Should we still consider such a function a
U-shape? In my opinion, such a discussion should be had when you define what a
U-shape means to you for your application, and when you specify your null
hypothesis.
The definition I use in my paper, Non-Parametric Testing of U-Shaped Relationships, is the following:
Let $m(x)$ be the regression function and let $S\left(X\right)$ be the support of $X$. For a specified set $A_{0}\subset S\left(X\right)$, we are interested in testing the following:
$$\begin{align*}
H_{0}\colon & \exists a\in A_{0}\mbox{ st }\forall x\in S\left(X\right)\\
& m^{'}\left(x\right)\left(x-a\right)\ge0\\
\text{versus}\\H_{A}\colon & \forall a\in A_{0},\,\exists x\in S\left(X\right)\mbox{ st}\\
& m^{'}\left(x\right)\left(x-a\right)<0
\end{align*}$$
For example, in an application I test for a U-shape of life satisfaction in age
from age 20 to 70, where the turning point is between ages 30 and 60. Arbitrary
decisions are necessary with this proposed framework. The important thing is to be open
about them and check how sensitive results are to changes (and to challenge others to do the same).
In addition to stating the null hypothesis, as always you should state the
assumptions you rely on. For example, a common assumption is that the
regression function is either U-shaped on monotone. See, for example, Lind and
Mehlum's 2009 "With or Without U? The Appropriate Test for a U-Shaped
Relationship", where they propose an improvement on the vanilla OLS quadratic test by testing that the derivative of a specified functional
form is negative at the beginning of the range, and positive at the end.
An additional point to consider is: Do you want a test that rejects the null hypothesis because of a small violation of U-shapedness? If yes, consider the R package qmutest, which implements a non-parametric tests based on splines of the null hypotheses that the regression function is quasi-convex, and separately that it is monotone. If you do not want a test that gives inference against a U-shape because of a small violation, Uri's two lines test might be best if you want to test that a regression function is mostly decreasing and then mostly increasing.
Since your question was about the use of the term "U-shape" and the
definition, I find it relevant to list some terms here that are used often to
refer to the same thing that "U-shape" and "inverted U-shape" are used to refer
to: "valley-shaped", "trough-shaped", "hill-shaped", "unimodal",
"single-peaked", and "bell-shaped". There is no inherent reason why "U-shape"
is a better term than the others, but its use seems to have caught on.
I'm working on a general R package that will just be an interface to
specific R packages (such as qmutest) that test for U-shaped relationships however they choose to
define them. The goal will be to help users compare different tests and to
think hard about the exact null hypothesis they want to test, and which
assumptions they are prepared to make.