0
$\begingroup$

I have two sets of points and i want draw an parabolic arc between two points and also to find the intermediate points which the parabolic path is drawn....

enter image description here

In the above image you can see the curve path on two sides....since it is an image,i can't trace out the exact curve..i can get the starting,middle and end point of the one side of the curve.Is it possible to draw the curve and also get the each points of the curve...

  • 0
    Maybe you should have just updated your [previous questio$n$](http://math.stacke$x$change.com/questions/62870) instead.2011-09-09

2 Answers 2

2

From the diagram it looks as if you may be looking for a parabola with a horizontal line of symmetry and vertical directrix. This would have equation $(y-b)^2 = 4a(x-c)$. If you know three points, this gives you three equations in three unknowns ($a$, $b$ and $c$ being required - or $a$,$b$ and $d$ if you put $ac=d$).

The orientation would be an important extra piece of information, which is why many of the comments are asking you to be precise and specific about what you require, rather than leaving us to assume things which you have not stated. If the orientation is not known, then you will find a family of possible solutions - the comments already given point the direction to seeing this.

1

I will assume that the drawing is symmetric around the horizontal axis y and the vertical axis x.

enter image description here

The points $A(x_1, y_1), C(x_0, y_0)$ and $B$ are known, $x_0 = 0$. The equation of the parabola is $y(x) = a x^2 + c$ From $y(0) = y_0$ $y(x_1) = a x_1^2 + c$ we get the coefficients $a, c$ and hence the equation of the parabola is $y(x) = \frac{y_1 - y_0}{x_1^2} x^2 + y_0$ I draw this parabola in red and the parabola reflected at the x-axis in green, using the open source program Octave, which corresponds to Matlab:

% parabola equation y = a * x^2 + y0 x0 = 0;  y0 = 0.1; x1 = 10; y1 = 1; a = (y1 - y0) / (x1 * x1)  % because y is horizontal axis and x is vertical axis % draw like this: x = [-x1 : 0.1 : x1]';  % draw range of x y = a * x.^2 + y0; % equation of parabola plot(y, x, 'r')    % draw red parabola hold on plot(-y, x, 'g')   % draw green parabola hold off