# What is the name of this curve (figure inside)?

A can be written as... $y = a$

B can be written as... $y = bx + a$

C can be written as... $y = cx^2 + bx + a$

1) How can I write D? I was looking at implementing bezier curves into some code but is there something similar which could be computed much quicker?

2) C is a quadratic... what is the name for D?

Edit:

Perhaps if I explain what I'm doing.... I am trying to build a decent servo controller. I have a servo which will move from servo position 30 to 0. I want it to move in a more elegant way than B (above)... ideally like in the picture. I will come up with a way of defining the movement between 2 positions when I send a command to the controller. Perhaps this is a quadratic equation which could be calculated easily for each x (time) between y (servo angles)... this would mean I would only need to pass a, b and c to the controller along with the time (length) and both positions.

I figured it would be better to have it able to be more irregular... but still super quick to compute. I considered bezier curves as a definition for the line, but they seem overcomplicated and slow to compute... if there anything else I could use?

-

It's hard to tell. There are a lot of curves that locally look like that. If you want it to look like a rotated parabola, for example, that's pretty easy to do. – Potato Aug 21 '12 at 4:14
If you fix the two endpoints of curve $D$, and you know the slope of the curve at those endpoints, you can build the Hermite interpolating polynomial that more or less looks like curve $D$. – J. M. Aug 21 '12 at 4:14
I googled hermite interpolation. looks promising.  seems fairly heavy on computation, though. – Beakie Aug 21 '12 at 4:41
@J.M.   i think u answered my question.... please add it as answer and i will mark it as such – Beakie Aug 21 '12 at 4:44
For a rotated parabola, $y$ would not be a function of $x$ (globally). – Robert Israel Aug 21 '12 at 4:45
show 1 more comment

## 2 Answers

One can find a cubic, $y=ax^3+bx^2+cx+d$, looking like $D$.

EDIT: If you want a curve that looks like the blue curve in the edited version of the question, you can pick a few points you want the curve to go through and then join them up with cubic splines. There is a lot of info about these on the web and in the more applied Linear Algebra textbooks and elsewhere, and while some of the formulas may look complicated, there's really nothing there that a computer can't handle quickly and efficiently.

-

please see above edit – Beakie Aug 21 '12 at 4:30
Well, part of it will look like $D$.  Then somewhere outside the picture, the graph will turn down. – Robert Israel Aug 21 '12 at 4:47

To me, $D$ looks more like a branch of a hyperbola, which could have an equation $y = c x + \sqrt{a^2 x^2 + b}$ with $b > 0$, $|c| < a$. This is asymptotic to $y = (a+c) x$ as $x \to +\infty$ and $y = (-a+c) x$ as $x \to -\infty$.

-
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 18, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9651498794555664, "perplexity_flag": "middle"}