I am looking to find a function $g:\mathbb{R}^2\rightarrow\mathbb{R}^2$ and its inverse $g^{-1}$, such that $g$ and $g^{-1}$ are continuous, smooth, and bijective, such that:
$$ g(x,0)=\begin{pmatrix}2a(1-x)x+x^2 \\ 2b(1-x)x \end{pmatrix} $$
So the problem is to find an expression for a function $g(x, y)$ and its inverse $g^{-1}(x, y)$, which satisfies the criteria above in general when $y\ne0$. I realise there are probably infinitely many solutions to this problem, so any specific solution would be appreciated.
To give some background to the problem, I'm trying to find a general method for finding a function which can transform one quadratic Bezier curve to another one using an invertible transformation of 2D space. I intuitively feel that it should be possible to solve this problem, and I think this problem can be reduced to finding an invertible transformation from one specific Bezier curve to another, in which both Bezier curves start at $(0,0)$ and end at $(1,0)$, the "input" Bezier curve to the function $g$ has a central control point at $(0.5,0)$, and the output Bezier curve has a control point at $(a,b)$. I believe this more general problem can be solved using the answer to this question and simple affine transformations which are easily found.
(Sorry if this problem is overly open-ended or under-constrained. I initially tried a solution of the form $g(x,0)=\begin{pmatrix}2a(1-x)x+x^2 \\ 2b(1-x)x+y \end{pmatrix}$, but this in general is not bijective: see the image and code shown below for lines of $g(x,y)$ in the case $a=1,b=1$ with $x\in[-1,2],y\in[-1,1]$ with $y$ constant along each line. A specific function that satisfies the criteria stated in the problem would be great, but the problem is I'm not entirely sure how to go about finding a valid solution to this problem, so even a suggestion of how to get started would be useful. I'm also not 100% sure that there is a solution to this problem, so if this is the case then a proof that there is no solution would obviously be valuable instead).
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(-1, 2)
for y in np.arange(-1, 1.1, 0.2):
plt.plot(2 * (1-x) * x + x*x, 2 * (1-x) * x + y, "g--")
Background
A linear Bezier curve interpolates between two points $P_0$ and $P_1$, parameterised by a continuous variable $t \in [0, 1]$:
$$ B(t) = (1 - t) P_0 + t P_1 $$
A quadratic Bezier curve defined by three points $P_0$, $P_1$ and $P_2$ interpolates between two linear Bezier curves, one from $P_0$ to $P_1$, and one from $P_1$ to $P_2$:
$$ \begin{align} B(t) &= (1 - t) \Bigl( (1 - t) P_0 + t P_1 \Bigr) + t \Bigl( (1 - t) P_1 + t P_2 \Bigr) \\ &= (1 - t)^2 P_0 + 2t(1 - t)P_1 + t^2 P_2 \end{align} $$
If we set $P_0 = \begin{pmatrix} 0 & 0 \end{pmatrix}^T, P_1 = \begin{pmatrix} a & b \end{pmatrix}^T, P_0 = \begin{pmatrix} 1 & 0 \end{pmatrix}^T $, we get the following parametric curve:
$$ \begin{align} B(t) &= (1 - t)^2 \begin{pmatrix} 0 \\ 0 \end{pmatrix} + 2t(1 - t) \begin{pmatrix} a \\ b \end{pmatrix} + t^2 \begin{pmatrix} 1 \\ 0 \end{pmatrix} \\ &= \begin{pmatrix} 2a(1-t)t+t^2 \\ 2b(1-t)t \end{pmatrix} \end{align} $$
We can view this curve as a transformation of 2D space, denoted by $g(x, y)$, along a line of constant $y = 0$:
$$ \begin{align} g(x,0) &= B(x) \\ &= \begin{pmatrix}2a(1-x)x+x^2 \\ 2b(1-x)x \end{pmatrix} \end{align} $$
The question now is how to define $g(x, y)$ for $y \ne 0$ such that $g$ is bijective.

Here is $\frac{3}{4}$ of a solution:
$$ \eqalign{ g(x,y)&=g(x,0)+\alpha y\begin{pmatrix}0&-1\\1&0\end{pmatrix}\frac{\partial g(x,0)}{\partial x} \cr g(x,0)&=\begin{pmatrix}2a(1-x)x+x^2 \\ 2b(1-x)x \end{pmatrix} \cr \Rightarrow \frac{\partial g(x,0)}{\partial x}&=\begin{pmatrix}2a(1-2x)+2x \\ 2b(1-2x) \end{pmatrix} \cr \Rightarrow g(x,y)&=\begin{pmatrix}2a(1-x)x+x^2 \\ 2b(1-x)x \end{pmatrix}+\alpha y\begin{pmatrix}0&-1\\1&0\end{pmatrix}\begin{pmatrix}2a(1-2x)+2x \\ 2b(1-2x) \end{pmatrix} \cr &=\begin{pmatrix}2a(1-x)x+x^2 \\ 2b(1-x)x \end{pmatrix}+\alpha y\begin{pmatrix}-2b(1-2x) \\ 2a(1-2x)+2x \end{pmatrix} \cr } $$
The scaling constant $\alpha$ can be chosen arbitrarily, EG $\alpha=\frac{1}{\left|\frac{\partial g(x,0)}{\partial x}\right|}$ to preserve certain distances, or $\alpha=1$ for simplicity. This function takes an $x$ coordinate, transforms it as if $y=0$, and then adds a vector which is perpendicular to the curve at $g(x,0)$, and is proportional to $y$.
Taking the example stated at the end of the question above with $a=b=1$, this function is $\frac{3}{4}$ of a solution in the sense that $g:\mathbb{R}^2\rightarrow\mathbb{R}^2$ is surjective, and the map of the upper half of the plane $g:(-\infty,\infty)\times[0, \infty)\rightarrow\mathbb{R}^2$ is injective, but the map $g:\mathbb{R}^2\rightarrow\mathbb{R}^2$ is not injective, see below for a visual demonstration:
With $\alpha=\frac{1}{\left|\frac{\partial g(x,0)}{\partial x}\right|}$:
With $\alpha=1$:
Here is the code for plotting the above graphics (change the default argument
normaliseto the functiongfromTruetoFalseto alternate between the cases above):Here is another cool looking graphic with
afixed at 0.5 (and not varying between frames):