I am trying to find the equation of a parabola with the two tangent equations to two points.
I found this post (Find the equation of the parabola given the tangent to a point and another point.) but it did not really help me so I tried to do the math on my own.
First:
- I have two points whose coordinates I know,
- I have two lines passing through these points whose slope I know because of their angles of inclination.
Let's say that these lines are tangents to a parabola in these two points.
How can I find the equation of this parabola given the two tangent equations and the two points ?
Here is a picture of my calculations:
According to the picture I drew I am suppose to get the following equation:
$f(x) =\dfrac{\tan(\alpha)-\tan(\beta)}{2 \cdot x_1}\cdot x^2 + \tan(\beta)\cdot x + y_2$
When I plot $f(x) =\dfrac{\tan(60)-\tan(30)}{-2 \cdot 10}\cdot x^2 + \tan(30)\cdot x + 10$ I get the following graph:
As you can see I do not get the graphic drawn in the first picture, and if I set the window to $x\in\left[x_1,0\right]$ and $y\in\left[0,y_2\right]$ I get an empty window:
What am I doing wrong ?
I hope my explanations are good enough. Please tell me if I was not clear so that I can modify my post for you and others.