Let's take a function $f=sech(x)$ as an example. It is strongly convex in a limited range of $x$.
It is further assumed that:
- $f$ is a "black box", $x$ as input ;
- output is the value of the function $f(x)$ ;
- as well as the gradient $G(x)$ and hessian $H(x)$ ;
How to convert $f(x)$ to a convex one on an infinite interval, i.e. $x=[-\inf;\inf]$, knowing only these 3 output signals.
Clear["Derivative"]
ClearAll["Global`*"]
Plot[{Sech[x], -x^2 + 1}, {x, -1.7, 1.7}, PlotRange -> Full,
PlotPoints -> 100]
The figure shows an example. What is (blue) and what should be (orange).