Parabola always through two points.












7












$begingroup$


I need to draw parabola through two points, but also need to be able to change the width of the parabola.
In more details let's say I have parabola:



$f ( x ) = - frac { ( x - 1 ) ^ { 2 } } { W } + 1$



And no matter what $W$ I define I want my parabola goes through points (0,0) and (1,1) which for that case happens only if $W=1$.



I suppose I need to rotate the parabola or move whole parabola in some way. But don't know how to do that.



My aim is to increase $W$ to infinity until I get straight line (infinity almost straight) through mentioned points. And in the future of course I want to be able to manipulate those points.



For any help thanks in advance.










share|cite|improve this question









$endgroup$












  • $begingroup$
    I edited my answer, now I derived the equation in terms of W. It's slightly different form than you expected, but it's very similar.
    $endgroup$
    – KKZiomek
    Nov 24 '18 at 16:14






  • 3




    $begingroup$
    You've already accepted an answer, but I want to point out that in your equation, you were also forcing your parabola to be centered around the $y$-axis. That, along with requiring that it pass through $(0,0)$ and $(1,1)$ takes alway all three degrees of freedom in an upward-opening parabola. That is why you had nothing left to adjust the width with. The two solutions drop the "centered around the $y$-axis" requirement, leaving them a degree of freedom to adjust the width.
    $endgroup$
    – Paul Sinclair
    Nov 24 '18 at 18:02
















7












$begingroup$


I need to draw parabola through two points, but also need to be able to change the width of the parabola.
In more details let's say I have parabola:



$f ( x ) = - frac { ( x - 1 ) ^ { 2 } } { W } + 1$



And no matter what $W$ I define I want my parabola goes through points (0,0) and (1,1) which for that case happens only if $W=1$.



I suppose I need to rotate the parabola or move whole parabola in some way. But don't know how to do that.



My aim is to increase $W$ to infinity until I get straight line (infinity almost straight) through mentioned points. And in the future of course I want to be able to manipulate those points.



For any help thanks in advance.










share|cite|improve this question









$endgroup$












  • $begingroup$
    I edited my answer, now I derived the equation in terms of W. It's slightly different form than you expected, but it's very similar.
    $endgroup$
    – KKZiomek
    Nov 24 '18 at 16:14






  • 3




    $begingroup$
    You've already accepted an answer, but I want to point out that in your equation, you were also forcing your parabola to be centered around the $y$-axis. That, along with requiring that it pass through $(0,0)$ and $(1,1)$ takes alway all three degrees of freedom in an upward-opening parabola. That is why you had nothing left to adjust the width with. The two solutions drop the "centered around the $y$-axis" requirement, leaving them a degree of freedom to adjust the width.
    $endgroup$
    – Paul Sinclair
    Nov 24 '18 at 18:02














7












7








7





$begingroup$


I need to draw parabola through two points, but also need to be able to change the width of the parabola.
In more details let's say I have parabola:



$f ( x ) = - frac { ( x - 1 ) ^ { 2 } } { W } + 1$



And no matter what $W$ I define I want my parabola goes through points (0,0) and (1,1) which for that case happens only if $W=1$.



I suppose I need to rotate the parabola or move whole parabola in some way. But don't know how to do that.



My aim is to increase $W$ to infinity until I get straight line (infinity almost straight) through mentioned points. And in the future of course I want to be able to manipulate those points.



For any help thanks in advance.










share|cite|improve this question









$endgroup$




I need to draw parabola through two points, but also need to be able to change the width of the parabola.
In more details let's say I have parabola:



$f ( x ) = - frac { ( x - 1 ) ^ { 2 } } { W } + 1$



And no matter what $W$ I define I want my parabola goes through points (0,0) and (1,1) which for that case happens only if $W=1$.



I suppose I need to rotate the parabola or move whole parabola in some way. But don't know how to do that.



My aim is to increase $W$ to infinity until I get straight line (infinity almost straight) through mentioned points. And in the future of course I want to be able to manipulate those points.



For any help thanks in advance.







conic-sections fixedpoints






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Nov 24 '18 at 15:39









pajczurpajczur

854




854












  • $begingroup$
    I edited my answer, now I derived the equation in terms of W. It's slightly different form than you expected, but it's very similar.
    $endgroup$
    – KKZiomek
    Nov 24 '18 at 16:14






  • 3




    $begingroup$
    You've already accepted an answer, but I want to point out that in your equation, you were also forcing your parabola to be centered around the $y$-axis. That, along with requiring that it pass through $(0,0)$ and $(1,1)$ takes alway all three degrees of freedom in an upward-opening parabola. That is why you had nothing left to adjust the width with. The two solutions drop the "centered around the $y$-axis" requirement, leaving them a degree of freedom to adjust the width.
    $endgroup$
    – Paul Sinclair
    Nov 24 '18 at 18:02


















  • $begingroup$
    I edited my answer, now I derived the equation in terms of W. It's slightly different form than you expected, but it's very similar.
    $endgroup$
    – KKZiomek
    Nov 24 '18 at 16:14






  • 3




    $begingroup$
    You've already accepted an answer, but I want to point out that in your equation, you were also forcing your parabola to be centered around the $y$-axis. That, along with requiring that it pass through $(0,0)$ and $(1,1)$ takes alway all three degrees of freedom in an upward-opening parabola. That is why you had nothing left to adjust the width with. The two solutions drop the "centered around the $y$-axis" requirement, leaving them a degree of freedom to adjust the width.
    $endgroup$
    – Paul Sinclair
    Nov 24 '18 at 18:02
















$begingroup$
I edited my answer, now I derived the equation in terms of W. It's slightly different form than you expected, but it's very similar.
$endgroup$
– KKZiomek
Nov 24 '18 at 16:14




$begingroup$
I edited my answer, now I derived the equation in terms of W. It's slightly different form than you expected, but it's very similar.
$endgroup$
– KKZiomek
Nov 24 '18 at 16:14




3




3




$begingroup$
You've already accepted an answer, but I want to point out that in your equation, you were also forcing your parabola to be centered around the $y$-axis. That, along with requiring that it pass through $(0,0)$ and $(1,1)$ takes alway all three degrees of freedom in an upward-opening parabola. That is why you had nothing left to adjust the width with. The two solutions drop the "centered around the $y$-axis" requirement, leaving them a degree of freedom to adjust the width.
$endgroup$
– Paul Sinclair
Nov 24 '18 at 18:02




$begingroup$
You've already accepted an answer, but I want to point out that in your equation, you were also forcing your parabola to be centered around the $y$-axis. That, along with requiring that it pass through $(0,0)$ and $(1,1)$ takes alway all three degrees of freedom in an upward-opening parabola. That is why you had nothing left to adjust the width with. The two solutions drop the "centered around the $y$-axis" requirement, leaving them a degree of freedom to adjust the width.
$endgroup$
– Paul Sinclair
Nov 24 '18 at 18:02










2 Answers
2






active

oldest

votes


















10












$begingroup$

You can simply set up a system of equations in the quadratic form:



$$y=ax^2+bx+c$$



So plugging in $x$ and $y$ from your points $(0,0)$ and $(1,1)$, you make two equations:



$$0=a(0)^2+b(0)+c$$
$$1=a(1)^2+b(1)+c$$



The equations simplify to:



$$c=0$$
$$1=a+b$$



So the $c$ of your quadratic equation will be always 0. $a$ is your "width" of the parabola. The lower the value, the wider it is, the higher the value, the narrower it is. Just remember that whatever $a$ you chose, you have to chose $b$ so that $a+b=1$ as can be seen in the second equation.



To get the equation in terms of $W$ simply complete the square and manipulate the standard quadratic form (note that $c$ is $0$, so we exclude $c$):



$$y=ax^2+bx$$
$$y=aBig(x^2+frac{b}{a}xBig)$$
$$y=aBig(x+frac{b}{2a}Big)^2-frac{b^2}{4a}$$



Now, since $a+b=1$ then $b=1-a$:



$$y=aBig(x+frac{1-a}{2a}Big)^2-frac{(1-a)^2}{4a}$$



Now, simply define $W=frac{1}{a}$ and the equation will change into:



$$y=frac{big(x+frac{W-1}{2}big)^2}{W}-frac{(W-1)^2}{4W}$$



Then, combine the two fractions into one and expand exponent:



$$y=frac{4Big(x^2+(W-1)x+frac{(W-1)^2}{4}Big)-(W-1)^2}{4W}$$
$$y=frac{4x^2+4(W-1)x}{4W}$$
$$y=frac{x^2+(W-1)x}{W}$$
$$y=frac{x^2}{W}+frac{(W-1)}{W}x$$



And that's it! We derived the equation in terms of $W$. Now, simply to change the width of the parabola, you change $W$. The bigger $W$, the wider the parabola, the lower $W$, the narrower the parabola. (Opposite of what happens if you change $a$ because we defined $W=frac{1}{a}$). The parabola will rest on the points $(0,0)$ and $(1,1)$ as expected.



Also, notice what happens when you increase $W$ to infinity. With some further analysis, and taking $lim_{Wtoinfty} y$, you can see that the equation slowly becomes the line $y=x$, which is exactly what you predicted and wanted!



Note: If you would ever need three points instead of two, you won't be able to change the width of the parabola because three points describe exactly one parabola. With two points you have infinite parabolas, hence the ability to change width.





EDIT: I was answering it fast, and now I realized, that you don't have to complete the square at all! You simply need to start with:



$$y=ax^2+bx$$



Then just plug in $b=1-a$, and then $a=frac{1}{W}$:



$$y=ax^2+(1-a)x$$
$$y=frac{x^2}{W}+Big(1-frac{1}{W}Big)x$$
$$y=frac{x^2}{W}+frac{(W-1)}{W}x$$



Sorry for making it more complicated than it should be.






share|cite|improve this answer











$endgroup$









  • 1




    $begingroup$
    Great it works. Thanks :) it seems to be very simple that I am embarased that I asked :)
    $endgroup$
    – pajczur
    Nov 24 '18 at 16:54






  • 2




    $begingroup$
    It's fine, that's what this site is for :)
    $endgroup$
    – KKZiomek
    Nov 24 '18 at 17:00



















4












$begingroup$

I think
$$
f(x) = frac{x(x-1)}{W} + x
$$

will do what you want.



For large $W$ this will be nearly straight between the two points you specified. For very large $x$ (positive or negative) it will grow without bound.



(This is what happens if you finish the algebra that @KKZiomek started.)






share|cite|improve this answer









$endgroup$













  • $begingroup$
    This is the answer KKZiomek would eventually get, but it's easier to see this as (A) all quadratics with roots 0 and 1 plus (B) a polynomial of degree ≤2 through (0,0) and (1,1).
    $endgroup$
    – Teepeemm
    Nov 25 '18 at 1:34











Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3011693%2fparabola-always-through-two-points%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









10












$begingroup$

You can simply set up a system of equations in the quadratic form:



$$y=ax^2+bx+c$$



So plugging in $x$ and $y$ from your points $(0,0)$ and $(1,1)$, you make two equations:



$$0=a(0)^2+b(0)+c$$
$$1=a(1)^2+b(1)+c$$



The equations simplify to:



$$c=0$$
$$1=a+b$$



So the $c$ of your quadratic equation will be always 0. $a$ is your "width" of the parabola. The lower the value, the wider it is, the higher the value, the narrower it is. Just remember that whatever $a$ you chose, you have to chose $b$ so that $a+b=1$ as can be seen in the second equation.



To get the equation in terms of $W$ simply complete the square and manipulate the standard quadratic form (note that $c$ is $0$, so we exclude $c$):



$$y=ax^2+bx$$
$$y=aBig(x^2+frac{b}{a}xBig)$$
$$y=aBig(x+frac{b}{2a}Big)^2-frac{b^2}{4a}$$



Now, since $a+b=1$ then $b=1-a$:



$$y=aBig(x+frac{1-a}{2a}Big)^2-frac{(1-a)^2}{4a}$$



Now, simply define $W=frac{1}{a}$ and the equation will change into:



$$y=frac{big(x+frac{W-1}{2}big)^2}{W}-frac{(W-1)^2}{4W}$$



Then, combine the two fractions into one and expand exponent:



$$y=frac{4Big(x^2+(W-1)x+frac{(W-1)^2}{4}Big)-(W-1)^2}{4W}$$
$$y=frac{4x^2+4(W-1)x}{4W}$$
$$y=frac{x^2+(W-1)x}{W}$$
$$y=frac{x^2}{W}+frac{(W-1)}{W}x$$



And that's it! We derived the equation in terms of $W$. Now, simply to change the width of the parabola, you change $W$. The bigger $W$, the wider the parabola, the lower $W$, the narrower the parabola. (Opposite of what happens if you change $a$ because we defined $W=frac{1}{a}$). The parabola will rest on the points $(0,0)$ and $(1,1)$ as expected.



Also, notice what happens when you increase $W$ to infinity. With some further analysis, and taking $lim_{Wtoinfty} y$, you can see that the equation slowly becomes the line $y=x$, which is exactly what you predicted and wanted!



Note: If you would ever need three points instead of two, you won't be able to change the width of the parabola because three points describe exactly one parabola. With two points you have infinite parabolas, hence the ability to change width.





EDIT: I was answering it fast, and now I realized, that you don't have to complete the square at all! You simply need to start with:



$$y=ax^2+bx$$



Then just plug in $b=1-a$, and then $a=frac{1}{W}$:



$$y=ax^2+(1-a)x$$
$$y=frac{x^2}{W}+Big(1-frac{1}{W}Big)x$$
$$y=frac{x^2}{W}+frac{(W-1)}{W}x$$



Sorry for making it more complicated than it should be.






share|cite|improve this answer











$endgroup$









  • 1




    $begingroup$
    Great it works. Thanks :) it seems to be very simple that I am embarased that I asked :)
    $endgroup$
    – pajczur
    Nov 24 '18 at 16:54






  • 2




    $begingroup$
    It's fine, that's what this site is for :)
    $endgroup$
    – KKZiomek
    Nov 24 '18 at 17:00
















10












$begingroup$

You can simply set up a system of equations in the quadratic form:



$$y=ax^2+bx+c$$



So plugging in $x$ and $y$ from your points $(0,0)$ and $(1,1)$, you make two equations:



$$0=a(0)^2+b(0)+c$$
$$1=a(1)^2+b(1)+c$$



The equations simplify to:



$$c=0$$
$$1=a+b$$



So the $c$ of your quadratic equation will be always 0. $a$ is your "width" of the parabola. The lower the value, the wider it is, the higher the value, the narrower it is. Just remember that whatever $a$ you chose, you have to chose $b$ so that $a+b=1$ as can be seen in the second equation.



To get the equation in terms of $W$ simply complete the square and manipulate the standard quadratic form (note that $c$ is $0$, so we exclude $c$):



$$y=ax^2+bx$$
$$y=aBig(x^2+frac{b}{a}xBig)$$
$$y=aBig(x+frac{b}{2a}Big)^2-frac{b^2}{4a}$$



Now, since $a+b=1$ then $b=1-a$:



$$y=aBig(x+frac{1-a}{2a}Big)^2-frac{(1-a)^2}{4a}$$



Now, simply define $W=frac{1}{a}$ and the equation will change into:



$$y=frac{big(x+frac{W-1}{2}big)^2}{W}-frac{(W-1)^2}{4W}$$



Then, combine the two fractions into one and expand exponent:



$$y=frac{4Big(x^2+(W-1)x+frac{(W-1)^2}{4}Big)-(W-1)^2}{4W}$$
$$y=frac{4x^2+4(W-1)x}{4W}$$
$$y=frac{x^2+(W-1)x}{W}$$
$$y=frac{x^2}{W}+frac{(W-1)}{W}x$$



And that's it! We derived the equation in terms of $W$. Now, simply to change the width of the parabola, you change $W$. The bigger $W$, the wider the parabola, the lower $W$, the narrower the parabola. (Opposite of what happens if you change $a$ because we defined $W=frac{1}{a}$). The parabola will rest on the points $(0,0)$ and $(1,1)$ as expected.



Also, notice what happens when you increase $W$ to infinity. With some further analysis, and taking $lim_{Wtoinfty} y$, you can see that the equation slowly becomes the line $y=x$, which is exactly what you predicted and wanted!



Note: If you would ever need three points instead of two, you won't be able to change the width of the parabola because three points describe exactly one parabola. With two points you have infinite parabolas, hence the ability to change width.





EDIT: I was answering it fast, and now I realized, that you don't have to complete the square at all! You simply need to start with:



$$y=ax^2+bx$$



Then just plug in $b=1-a$, and then $a=frac{1}{W}$:



$$y=ax^2+(1-a)x$$
$$y=frac{x^2}{W}+Big(1-frac{1}{W}Big)x$$
$$y=frac{x^2}{W}+frac{(W-1)}{W}x$$



Sorry for making it more complicated than it should be.






share|cite|improve this answer











$endgroup$









  • 1




    $begingroup$
    Great it works. Thanks :) it seems to be very simple that I am embarased that I asked :)
    $endgroup$
    – pajczur
    Nov 24 '18 at 16:54






  • 2




    $begingroup$
    It's fine, that's what this site is for :)
    $endgroup$
    – KKZiomek
    Nov 24 '18 at 17:00














10












10








10





$begingroup$

You can simply set up a system of equations in the quadratic form:



$$y=ax^2+bx+c$$



So plugging in $x$ and $y$ from your points $(0,0)$ and $(1,1)$, you make two equations:



$$0=a(0)^2+b(0)+c$$
$$1=a(1)^2+b(1)+c$$



The equations simplify to:



$$c=0$$
$$1=a+b$$



So the $c$ of your quadratic equation will be always 0. $a$ is your "width" of the parabola. The lower the value, the wider it is, the higher the value, the narrower it is. Just remember that whatever $a$ you chose, you have to chose $b$ so that $a+b=1$ as can be seen in the second equation.



To get the equation in terms of $W$ simply complete the square and manipulate the standard quadratic form (note that $c$ is $0$, so we exclude $c$):



$$y=ax^2+bx$$
$$y=aBig(x^2+frac{b}{a}xBig)$$
$$y=aBig(x+frac{b}{2a}Big)^2-frac{b^2}{4a}$$



Now, since $a+b=1$ then $b=1-a$:



$$y=aBig(x+frac{1-a}{2a}Big)^2-frac{(1-a)^2}{4a}$$



Now, simply define $W=frac{1}{a}$ and the equation will change into:



$$y=frac{big(x+frac{W-1}{2}big)^2}{W}-frac{(W-1)^2}{4W}$$



Then, combine the two fractions into one and expand exponent:



$$y=frac{4Big(x^2+(W-1)x+frac{(W-1)^2}{4}Big)-(W-1)^2}{4W}$$
$$y=frac{4x^2+4(W-1)x}{4W}$$
$$y=frac{x^2+(W-1)x}{W}$$
$$y=frac{x^2}{W}+frac{(W-1)}{W}x$$



And that's it! We derived the equation in terms of $W$. Now, simply to change the width of the parabola, you change $W$. The bigger $W$, the wider the parabola, the lower $W$, the narrower the parabola. (Opposite of what happens if you change $a$ because we defined $W=frac{1}{a}$). The parabola will rest on the points $(0,0)$ and $(1,1)$ as expected.



Also, notice what happens when you increase $W$ to infinity. With some further analysis, and taking $lim_{Wtoinfty} y$, you can see that the equation slowly becomes the line $y=x$, which is exactly what you predicted and wanted!



Note: If you would ever need three points instead of two, you won't be able to change the width of the parabola because three points describe exactly one parabola. With two points you have infinite parabolas, hence the ability to change width.





EDIT: I was answering it fast, and now I realized, that you don't have to complete the square at all! You simply need to start with:



$$y=ax^2+bx$$



Then just plug in $b=1-a$, and then $a=frac{1}{W}$:



$$y=ax^2+(1-a)x$$
$$y=frac{x^2}{W}+Big(1-frac{1}{W}Big)x$$
$$y=frac{x^2}{W}+frac{(W-1)}{W}x$$



Sorry for making it more complicated than it should be.






share|cite|improve this answer











$endgroup$



You can simply set up a system of equations in the quadratic form:



$$y=ax^2+bx+c$$



So plugging in $x$ and $y$ from your points $(0,0)$ and $(1,1)$, you make two equations:



$$0=a(0)^2+b(0)+c$$
$$1=a(1)^2+b(1)+c$$



The equations simplify to:



$$c=0$$
$$1=a+b$$



So the $c$ of your quadratic equation will be always 0. $a$ is your "width" of the parabola. The lower the value, the wider it is, the higher the value, the narrower it is. Just remember that whatever $a$ you chose, you have to chose $b$ so that $a+b=1$ as can be seen in the second equation.



To get the equation in terms of $W$ simply complete the square and manipulate the standard quadratic form (note that $c$ is $0$, so we exclude $c$):



$$y=ax^2+bx$$
$$y=aBig(x^2+frac{b}{a}xBig)$$
$$y=aBig(x+frac{b}{2a}Big)^2-frac{b^2}{4a}$$



Now, since $a+b=1$ then $b=1-a$:



$$y=aBig(x+frac{1-a}{2a}Big)^2-frac{(1-a)^2}{4a}$$



Now, simply define $W=frac{1}{a}$ and the equation will change into:



$$y=frac{big(x+frac{W-1}{2}big)^2}{W}-frac{(W-1)^2}{4W}$$



Then, combine the two fractions into one and expand exponent:



$$y=frac{4Big(x^2+(W-1)x+frac{(W-1)^2}{4}Big)-(W-1)^2}{4W}$$
$$y=frac{4x^2+4(W-1)x}{4W}$$
$$y=frac{x^2+(W-1)x}{W}$$
$$y=frac{x^2}{W}+frac{(W-1)}{W}x$$



And that's it! We derived the equation in terms of $W$. Now, simply to change the width of the parabola, you change $W$. The bigger $W$, the wider the parabola, the lower $W$, the narrower the parabola. (Opposite of what happens if you change $a$ because we defined $W=frac{1}{a}$). The parabola will rest on the points $(0,0)$ and $(1,1)$ as expected.



Also, notice what happens when you increase $W$ to infinity. With some further analysis, and taking $lim_{Wtoinfty} y$, you can see that the equation slowly becomes the line $y=x$, which is exactly what you predicted and wanted!



Note: If you would ever need three points instead of two, you won't be able to change the width of the parabola because three points describe exactly one parabola. With two points you have infinite parabolas, hence the ability to change width.





EDIT: I was answering it fast, and now I realized, that you don't have to complete the square at all! You simply need to start with:



$$y=ax^2+bx$$



Then just plug in $b=1-a$, and then $a=frac{1}{W}$:



$$y=ax^2+(1-a)x$$
$$y=frac{x^2}{W}+Big(1-frac{1}{W}Big)x$$
$$y=frac{x^2}{W}+frac{(W-1)}{W}x$$



Sorry for making it more complicated than it should be.







share|cite|improve this answer














share|cite|improve this answer



share|cite|improve this answer








edited Nov 24 '18 at 17:08

























answered Nov 24 '18 at 15:50









KKZiomekKKZiomek

2,0781439




2,0781439








  • 1




    $begingroup$
    Great it works. Thanks :) it seems to be very simple that I am embarased that I asked :)
    $endgroup$
    – pajczur
    Nov 24 '18 at 16:54






  • 2




    $begingroup$
    It's fine, that's what this site is for :)
    $endgroup$
    – KKZiomek
    Nov 24 '18 at 17:00














  • 1




    $begingroup$
    Great it works. Thanks :) it seems to be very simple that I am embarased that I asked :)
    $endgroup$
    – pajczur
    Nov 24 '18 at 16:54






  • 2




    $begingroup$
    It's fine, that's what this site is for :)
    $endgroup$
    – KKZiomek
    Nov 24 '18 at 17:00








1




1




$begingroup$
Great it works. Thanks :) it seems to be very simple that I am embarased that I asked :)
$endgroup$
– pajczur
Nov 24 '18 at 16:54




$begingroup$
Great it works. Thanks :) it seems to be very simple that I am embarased that I asked :)
$endgroup$
– pajczur
Nov 24 '18 at 16:54




2




2




$begingroup$
It's fine, that's what this site is for :)
$endgroup$
– KKZiomek
Nov 24 '18 at 17:00




$begingroup$
It's fine, that's what this site is for :)
$endgroup$
– KKZiomek
Nov 24 '18 at 17:00











4












$begingroup$

I think
$$
f(x) = frac{x(x-1)}{W} + x
$$

will do what you want.



For large $W$ this will be nearly straight between the two points you specified. For very large $x$ (positive or negative) it will grow without bound.



(This is what happens if you finish the algebra that @KKZiomek started.)






share|cite|improve this answer









$endgroup$













  • $begingroup$
    This is the answer KKZiomek would eventually get, but it's easier to see this as (A) all quadratics with roots 0 and 1 plus (B) a polynomial of degree ≤2 through (0,0) and (1,1).
    $endgroup$
    – Teepeemm
    Nov 25 '18 at 1:34
















4












$begingroup$

I think
$$
f(x) = frac{x(x-1)}{W} + x
$$

will do what you want.



For large $W$ this will be nearly straight between the two points you specified. For very large $x$ (positive or negative) it will grow without bound.



(This is what happens if you finish the algebra that @KKZiomek started.)






share|cite|improve this answer









$endgroup$













  • $begingroup$
    This is the answer KKZiomek would eventually get, but it's easier to see this as (A) all quadratics with roots 0 and 1 plus (B) a polynomial of degree ≤2 through (0,0) and (1,1).
    $endgroup$
    – Teepeemm
    Nov 25 '18 at 1:34














4












4








4





$begingroup$

I think
$$
f(x) = frac{x(x-1)}{W} + x
$$

will do what you want.



For large $W$ this will be nearly straight between the two points you specified. For very large $x$ (positive or negative) it will grow without bound.



(This is what happens if you finish the algebra that @KKZiomek started.)






share|cite|improve this answer









$endgroup$



I think
$$
f(x) = frac{x(x-1)}{W} + x
$$

will do what you want.



For large $W$ this will be nearly straight between the two points you specified. For very large $x$ (positive or negative) it will grow without bound.



(This is what happens if you finish the algebra that @KKZiomek started.)







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Nov 24 '18 at 15:54









Ethan BolkerEthan Bolker

42.2k548111




42.2k548111












  • $begingroup$
    This is the answer KKZiomek would eventually get, but it's easier to see this as (A) all quadratics with roots 0 and 1 plus (B) a polynomial of degree ≤2 through (0,0) and (1,1).
    $endgroup$
    – Teepeemm
    Nov 25 '18 at 1:34


















  • $begingroup$
    This is the answer KKZiomek would eventually get, but it's easier to see this as (A) all quadratics with roots 0 and 1 plus (B) a polynomial of degree ≤2 through (0,0) and (1,1).
    $endgroup$
    – Teepeemm
    Nov 25 '18 at 1:34
















$begingroup$
This is the answer KKZiomek would eventually get, but it's easier to see this as (A) all quadratics with roots 0 and 1 plus (B) a polynomial of degree ≤2 through (0,0) and (1,1).
$endgroup$
– Teepeemm
Nov 25 '18 at 1:34




$begingroup$
This is the answer KKZiomek would eventually get, but it's easier to see this as (A) all quadratics with roots 0 and 1 plus (B) a polynomial of degree ≤2 through (0,0) and (1,1).
$endgroup$
– Teepeemm
Nov 25 '18 at 1:34


















draft saved

draft discarded




















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3011693%2fparabola-always-through-two-points%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

Calculate evaluation metrics using cross_val_predict sklearn

Insert data from modal to MySQL (multiple modal on website)