I'm working on an engineering project, using CAD software.
I can write simple parametric functions to draw an ellipse, with $\theta$ ranging from $0$ to $2\pi$ radians:$$x=3.75\cos\theta$$$$y=1.25\sin\theta$$
But now I'm at a point where I need to bend the ellipse over a parabolic curve.
Here's a diagram demonstrating the curved space I'd like to bend/stretch my ellipse into.
The white bottom-most curve is the parabolic curve, defined by the function:
$$y=-\frac{x(x+30)}{45}$$
The other two green curves are defined as parallel (equidistant) to the parabola at all points, matching the flat rectangles above.
As you can see from the diagram, the vertical minor axis for the ellipse becomes slanted, making the top of the ellipse "longer" than the bottom of the ellipse - which follows the stretching of the enclosing space.
But the ellipse should still touch the top and bottom of the slanted minor axis, as well as touching the left-hand end of the center green curve, which is the transformed major axis for the ellipse.
So the question is, how do I transpose my simple ellipse functions to stretch the ellipse into this curved space?
In your answers, feel free to place the origin wherever is most convenient for your solution. I'll have to translate the solutions anyway, to move them into their proper place in my engineering diagrams. :)
Edit: I've been asked whether polar coordinates would be acceptable, rather than Cartesian. My CAD software does support polar coordinates, so for anyone considering answering this question, feel free to build your answers with polar coordinates if that would make things easier for you.





%2F(15%2F4))%5E2%2B((y-5%2Bx%5E2%2F45)%2F(5%2F4))%5E2%3D1+from+x%3D0+to+15,+y%3D0+to+7).](https://i.stack.imgur.com/lIAhq.gif)

Others have mentioned that parameterizing a parabola by arc length is not possible with elementary functions. This is true, but it's not necessary.
First, we write the function for an ellipse centered at $(a,b)$ with semi-axes $a$ and $b$, respectively. $$\frac{(x-a)^2}{a^2} + \frac{(y-b)^2}{b^2} = 1$$ $$y = b \pm |b|\sqrt{1-\frac{(x-a)^2}{a^2}}.$$ Instead of $x$ and $y$, we want the perpendicular height above the parabola, $h$, in terms of the distance along the parabola, $s$. $$h = b \pm |b|\sqrt{1-\frac{(s-a)^2}{a^2}}.$$
The arc length of the parabola $y = kx^2$ as a function of $x$ is given by $$s(x) = \int_0^x\sqrt{1 + 4k^2x'^2}dx' = \frac{1}{2}x\sqrt{1+4k^2x^2} + \frac{1}{4k}\ln\left(\sqrt{1+4k^2x^2}+2kx\right).$$
Next, we need the unit vector perpendicular to the tangent of the parabola (kindly provided by @Wouter), $$\vec{n} = \frac{(-2kx, 1)}{\sqrt{4k^2 x^2 + 1}}.$$ This will allow us to parameterize the ellipse as $$(x_e, y_e) = (t, kt^2) + \vec{n}(t)h(t).$$ The first part $(t, kt^2)$, is a point on the parabola. Adding the second part $\vec{n}(t)h(t)$ results in a point on the upper or lower half of the ellipse. I've switched $x$ for $t$ for clarity. Even though $x(t) = t$ in the parabola, the corresponding $x$-coordinate on the ellipse will be different.
So, the transformed ellipse is parameterized by $$(x_e, y_e) = (t, kt^2) + \frac{(-2kt, 1)}{\sqrt{1+4k^2t^2}}\left(b \pm |b|\sqrt{1-\frac{(s(t)-a)^2}{a^2}}\right).$$
For the full ugliness, let's substitute in $s(x)$: $$(x_e, y_e) = (t, kt^2) + (-2kt, 1)\frac{1}{\sqrt{1+4k^2t^2}}\left(b \pm |b|\sqrt{1-\frac{\left(\frac{1}{2}t\sqrt{1+4k^2t^2} + \frac{1}{4k}\ln\left(\sqrt{1+4k^2t^2}+2kt\right)-a\right)^2}{a^2}}\right)$$ with $t \in [0, \text{~}7.4]$ The value 7.4 comes from a guess-and-check numerical approximation that solves for $t$ so that the part inside the parentheses is non-negative (i.e., $0 \leq s(t) \leq 2a$).
Slightly easier to read (maybe): $$x(t) = t + \frac{-2kt}{\sqrt{1+4k^2t^2}}\left(b \pm |b|\sqrt{1-\frac{\left(\frac{1}{2}t\sqrt{1+4k^2t^2} + \frac{1}{4k}\ln\left(\sqrt{1+4k^2t^2}+2kt\right)-a\right)^2}{a^2}}\right)$$
$$y(t) = kt^2 + \frac{1}{\sqrt{1+4k^2t^2}}\left(b \pm |b|\sqrt{1-\frac{\left(\frac{1}{2}t\sqrt{1+4k^2t^2} + \frac{1}{4k}\ln\left(\sqrt{1+4k^2t^2}+2kt\right)-a\right)^2}{a^2}}\right)$$
With $a = 3.75$, $b = 1.25$, and $k = -\frac{1}{45}$ (moving the vertex of the parabola to the origin), the graph looks like this: https://www.desmos.com/calculator/m8kxmdzbao