Given four points how can I find an equation for any pattern?Explanation of Lagrange Interpolating...

Is it normal for gliders not to have attitude indicators?

Referring to person by surname, keep or omit "von"?

Is throwing dice a stochastic or a deterministic process?

What is monoid homomorphism exactly?

How is Pauli's exclusion principle still valid in these cases?

TIP120 Transistor + Solenoid Failing Randomly

How long did it take Captain Marvel to travel to Earth?

Can a good but unremarkable PhD student become an accomplished professor?

How to replace space with '+' symbol in a triangular array?

Is there a reason why Turkey took the Balkan territories of the Ottoman Empire, instead of Greece or another of the Balkan states?

Installing Debian 10, upgrade to stable later?

What detail can Hubble see on Mars?

Why doesn't a particle exert force on itself?

Debian 9 server no sshd in auth.log

How important are good looking people in a novel/story?

How can I obtain and work with a Platonic dodecahedron?

Picking a theme as a discovery writer

The selling of the sheep

How did the Force make Luke hard to hit in the Battle of Yavin?

Reverse ColorFunction or ColorData

Does Thanos's ship land in the middle of the battlefield in "Avengers: Endgame"?

Can an Iranian citizen enter the USA on a Dutch passport?

Can anyone identify this unknown 1988 PC card from The Palantir Corporation?

As a GM, is it bad form to ask for a moment to think when improvising?



Given four points how can I find an equation for any pattern?


Explanation of Lagrange Interpolating PolynomialHow to find what a given series/sequence converges toA complex sequence that has $n$ limit points, for any natural number $n$;How do you find such points?how can I find roots of $x^2+px+q=0$ using iterative methods?How to find the fixed points of $sin(1/x)$?Any function that equals $0$ a.e. implies Lebesgue integral also equals $0$How can we find the largest $B$ that the implications of the implicit function theorem hold?How to find radius of convergence of given rational function?How to find lower Riemann integral in given function?How can I prove that for any n≥1, n points can be found in $mathcal{C}[0,1]$ such that in the d metric, the distance between any two points equals 1?













1












$begingroup$


If for example I know that there's a function f(x) that equals 1 at x=8, 8 at x=32, 36 at x=64, 98 at x=128.
How can I find the expression for this pattern or any other pattern?










share|cite|improve this question







New contributor




Mohammad AlSaqqa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$








  • 2




    $begingroup$
    You're not guaranteed one unique pattern/function. You can use polynomial interpolation to get a formula $f$ where $deg(f) = n-1$ if you have have $n$ pairs $(x,f(x))$. Said $f$ will even be unique. But higher degree polynomials could also fit it, infinitely many in fact. And this is all just polynomial functions mind you.
    $endgroup$
    – Eevee Trainer
    2 hours ago


















1












$begingroup$


If for example I know that there's a function f(x) that equals 1 at x=8, 8 at x=32, 36 at x=64, 98 at x=128.
How can I find the expression for this pattern or any other pattern?










share|cite|improve this question







New contributor




Mohammad AlSaqqa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$








  • 2




    $begingroup$
    You're not guaranteed one unique pattern/function. You can use polynomial interpolation to get a formula $f$ where $deg(f) = n-1$ if you have have $n$ pairs $(x,f(x))$. Said $f$ will even be unique. But higher degree polynomials could also fit it, infinitely many in fact. And this is all just polynomial functions mind you.
    $endgroup$
    – Eevee Trainer
    2 hours ago
















1












1








1





$begingroup$


If for example I know that there's a function f(x) that equals 1 at x=8, 8 at x=32, 36 at x=64, 98 at x=128.
How can I find the expression for this pattern or any other pattern?










share|cite|improve this question







New contributor




Mohammad AlSaqqa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$




If for example I know that there's a function f(x) that equals 1 at x=8, 8 at x=32, 36 at x=64, 98 at x=128.
How can I find the expression for this pattern or any other pattern?







real-analysis






share|cite|improve this question







New contributor




Mohammad AlSaqqa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|cite|improve this question







New contributor




Mohammad AlSaqqa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|cite|improve this question




share|cite|improve this question






New contributor




Mohammad AlSaqqa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 2 hours ago









Mohammad AlSaqqaMohammad AlSaqqa

61




61




New contributor




Mohammad AlSaqqa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Mohammad AlSaqqa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Mohammad AlSaqqa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 2




    $begingroup$
    You're not guaranteed one unique pattern/function. You can use polynomial interpolation to get a formula $f$ where $deg(f) = n-1$ if you have have $n$ pairs $(x,f(x))$. Said $f$ will even be unique. But higher degree polynomials could also fit it, infinitely many in fact. And this is all just polynomial functions mind you.
    $endgroup$
    – Eevee Trainer
    2 hours ago
















  • 2




    $begingroup$
    You're not guaranteed one unique pattern/function. You can use polynomial interpolation to get a formula $f$ where $deg(f) = n-1$ if you have have $n$ pairs $(x,f(x))$. Said $f$ will even be unique. But higher degree polynomials could also fit it, infinitely many in fact. And this is all just polynomial functions mind you.
    $endgroup$
    – Eevee Trainer
    2 hours ago










2




2




$begingroup$
You're not guaranteed one unique pattern/function. You can use polynomial interpolation to get a formula $f$ where $deg(f) = n-1$ if you have have $n$ pairs $(x,f(x))$. Said $f$ will even be unique. But higher degree polynomials could also fit it, infinitely many in fact. And this is all just polynomial functions mind you.
$endgroup$
– Eevee Trainer
2 hours ago






$begingroup$
You're not guaranteed one unique pattern/function. You can use polynomial interpolation to get a formula $f$ where $deg(f) = n-1$ if you have have $n$ pairs $(x,f(x))$. Said $f$ will even be unique. But higher degree polynomials could also fit it, infinitely many in fact. And this is all just polynomial functions mind you.
$endgroup$
– Eevee Trainer
2 hours ago












2 Answers
2






active

oldest

votes


















3












$begingroup$

The process is called "interpolation". There are an indefinite number of ways to do this for a given set of points.



One way is Lagrange Interpolation which I discuss in the answer linked below :



Explanation of Lagrange Interpolating Polynomial





I have plotted the Lagrange Polynomial for your curve on Desmos. You can see that it matches the pattern you gave. You can interact with the plot by clicking on the link below.



enter image description here



https://www.desmos.com/calculator/enavzwsl09






share|cite|improve this answer











$endgroup$









  • 1




    $begingroup$
    Thanks a bunch! this is very helpful
    $endgroup$
    – Mohammad AlSaqqa
    2 hours ago










  • $begingroup$
    I'm glad it was helpful :). I noticed that you were having issues implementing the Lagrange Interpolating polynomial provided by J. W. Tanner, so I implemented it my self in Desmos. Hopefully that can clear things up for you.
    $endgroup$
    – Spencer
    1 hour ago



















1












$begingroup$

Here's one (not simplified):



$f(x)=dfrac{(x-32)(x-64)(x-128)}{(8-32)(8-64)(8-128)}1+dfrac{(x-8)(x-64)(x-128)}{(32-8)(32-64)(32-128)}8$



$;+dfrac{(x-8)(x-32)(x-128)}{(64-8)(64-32)(64-128)}36+dfrac{(x-8)(x-32)(x-64)}{(128-8)(128-32)(128-64)}98$






share|cite|improve this answer











$endgroup$













  • $begingroup$
    this equation gave back 68687616x^3-6932668416x^2+186621886464x-1080117166080 which did not fit the curve
    $endgroup$
    – Mohammad AlSaqqa
    1 hour ago












  • $begingroup$
    I had a typo. ($28$ instead of $128$), which I just corrected
    $endgroup$
    – J. W. Tanner
    1 hour ago










  • $begingroup$
    It still does not fit the curve, is my pattern maybe can't be represented as a polynomial?
    $endgroup$
    – Mohammad AlSaqqa
    1 hour ago










  • $begingroup$
    There are many polynomials that fit the four points you gave; I showed how to get one of them
    $endgroup$
    – J. W. Tanner
    27 mins ago












Your Answer








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
});


}
});






Mohammad AlSaqqa is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3215348%2fgiven-four-points-how-can-i-find-an-equation-for-any-pattern%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









3












$begingroup$

The process is called "interpolation". There are an indefinite number of ways to do this for a given set of points.



One way is Lagrange Interpolation which I discuss in the answer linked below :



Explanation of Lagrange Interpolating Polynomial





I have plotted the Lagrange Polynomial for your curve on Desmos. You can see that it matches the pattern you gave. You can interact with the plot by clicking on the link below.



enter image description here



https://www.desmos.com/calculator/enavzwsl09






share|cite|improve this answer











$endgroup$









  • 1




    $begingroup$
    Thanks a bunch! this is very helpful
    $endgroup$
    – Mohammad AlSaqqa
    2 hours ago










  • $begingroup$
    I'm glad it was helpful :). I noticed that you were having issues implementing the Lagrange Interpolating polynomial provided by J. W. Tanner, so I implemented it my self in Desmos. Hopefully that can clear things up for you.
    $endgroup$
    – Spencer
    1 hour ago
















3












$begingroup$

The process is called "interpolation". There are an indefinite number of ways to do this for a given set of points.



One way is Lagrange Interpolation which I discuss in the answer linked below :



Explanation of Lagrange Interpolating Polynomial





I have plotted the Lagrange Polynomial for your curve on Desmos. You can see that it matches the pattern you gave. You can interact with the plot by clicking on the link below.



enter image description here



https://www.desmos.com/calculator/enavzwsl09






share|cite|improve this answer











$endgroup$









  • 1




    $begingroup$
    Thanks a bunch! this is very helpful
    $endgroup$
    – Mohammad AlSaqqa
    2 hours ago










  • $begingroup$
    I'm glad it was helpful :). I noticed that you were having issues implementing the Lagrange Interpolating polynomial provided by J. W. Tanner, so I implemented it my self in Desmos. Hopefully that can clear things up for you.
    $endgroup$
    – Spencer
    1 hour ago














3












3








3





$begingroup$

The process is called "interpolation". There are an indefinite number of ways to do this for a given set of points.



One way is Lagrange Interpolation which I discuss in the answer linked below :



Explanation of Lagrange Interpolating Polynomial





I have plotted the Lagrange Polynomial for your curve on Desmos. You can see that it matches the pattern you gave. You can interact with the plot by clicking on the link below.



enter image description here



https://www.desmos.com/calculator/enavzwsl09






share|cite|improve this answer











$endgroup$



The process is called "interpolation". There are an indefinite number of ways to do this for a given set of points.



One way is Lagrange Interpolation which I discuss in the answer linked below :



Explanation of Lagrange Interpolating Polynomial





I have plotted the Lagrange Polynomial for your curve on Desmos. You can see that it matches the pattern you gave. You can interact with the plot by clicking on the link below.



enter image description here



https://www.desmos.com/calculator/enavzwsl09







share|cite|improve this answer














share|cite|improve this answer



share|cite|improve this answer








edited 1 hour ago

























answered 2 hours ago









SpencerSpencer

9,23722357




9,23722357








  • 1




    $begingroup$
    Thanks a bunch! this is very helpful
    $endgroup$
    – Mohammad AlSaqqa
    2 hours ago










  • $begingroup$
    I'm glad it was helpful :). I noticed that you were having issues implementing the Lagrange Interpolating polynomial provided by J. W. Tanner, so I implemented it my self in Desmos. Hopefully that can clear things up for you.
    $endgroup$
    – Spencer
    1 hour ago














  • 1




    $begingroup$
    Thanks a bunch! this is very helpful
    $endgroup$
    – Mohammad AlSaqqa
    2 hours ago










  • $begingroup$
    I'm glad it was helpful :). I noticed that you were having issues implementing the Lagrange Interpolating polynomial provided by J. W. Tanner, so I implemented it my self in Desmos. Hopefully that can clear things up for you.
    $endgroup$
    – Spencer
    1 hour ago








1




1




$begingroup$
Thanks a bunch! this is very helpful
$endgroup$
– Mohammad AlSaqqa
2 hours ago




$begingroup$
Thanks a bunch! this is very helpful
$endgroup$
– Mohammad AlSaqqa
2 hours ago












$begingroup$
I'm glad it was helpful :). I noticed that you were having issues implementing the Lagrange Interpolating polynomial provided by J. W. Tanner, so I implemented it my self in Desmos. Hopefully that can clear things up for you.
$endgroup$
– Spencer
1 hour ago




$begingroup$
I'm glad it was helpful :). I noticed that you were having issues implementing the Lagrange Interpolating polynomial provided by J. W. Tanner, so I implemented it my self in Desmos. Hopefully that can clear things up for you.
$endgroup$
– Spencer
1 hour ago











1












$begingroup$

Here's one (not simplified):



$f(x)=dfrac{(x-32)(x-64)(x-128)}{(8-32)(8-64)(8-128)}1+dfrac{(x-8)(x-64)(x-128)}{(32-8)(32-64)(32-128)}8$



$;+dfrac{(x-8)(x-32)(x-128)}{(64-8)(64-32)(64-128)}36+dfrac{(x-8)(x-32)(x-64)}{(128-8)(128-32)(128-64)}98$






share|cite|improve this answer











$endgroup$













  • $begingroup$
    this equation gave back 68687616x^3-6932668416x^2+186621886464x-1080117166080 which did not fit the curve
    $endgroup$
    – Mohammad AlSaqqa
    1 hour ago












  • $begingroup$
    I had a typo. ($28$ instead of $128$), which I just corrected
    $endgroup$
    – J. W. Tanner
    1 hour ago










  • $begingroup$
    It still does not fit the curve, is my pattern maybe can't be represented as a polynomial?
    $endgroup$
    – Mohammad AlSaqqa
    1 hour ago










  • $begingroup$
    There are many polynomials that fit the four points you gave; I showed how to get one of them
    $endgroup$
    – J. W. Tanner
    27 mins ago
















1












$begingroup$

Here's one (not simplified):



$f(x)=dfrac{(x-32)(x-64)(x-128)}{(8-32)(8-64)(8-128)}1+dfrac{(x-8)(x-64)(x-128)}{(32-8)(32-64)(32-128)}8$



$;+dfrac{(x-8)(x-32)(x-128)}{(64-8)(64-32)(64-128)}36+dfrac{(x-8)(x-32)(x-64)}{(128-8)(128-32)(128-64)}98$






share|cite|improve this answer











$endgroup$













  • $begingroup$
    this equation gave back 68687616x^3-6932668416x^2+186621886464x-1080117166080 which did not fit the curve
    $endgroup$
    – Mohammad AlSaqqa
    1 hour ago












  • $begingroup$
    I had a typo. ($28$ instead of $128$), which I just corrected
    $endgroup$
    – J. W. Tanner
    1 hour ago










  • $begingroup$
    It still does not fit the curve, is my pattern maybe can't be represented as a polynomial?
    $endgroup$
    – Mohammad AlSaqqa
    1 hour ago










  • $begingroup$
    There are many polynomials that fit the four points you gave; I showed how to get one of them
    $endgroup$
    – J. W. Tanner
    27 mins ago














1












1








1





$begingroup$

Here's one (not simplified):



$f(x)=dfrac{(x-32)(x-64)(x-128)}{(8-32)(8-64)(8-128)}1+dfrac{(x-8)(x-64)(x-128)}{(32-8)(32-64)(32-128)}8$



$;+dfrac{(x-8)(x-32)(x-128)}{(64-8)(64-32)(64-128)}36+dfrac{(x-8)(x-32)(x-64)}{(128-8)(128-32)(128-64)}98$






share|cite|improve this answer











$endgroup$



Here's one (not simplified):



$f(x)=dfrac{(x-32)(x-64)(x-128)}{(8-32)(8-64)(8-128)}1+dfrac{(x-8)(x-64)(x-128)}{(32-8)(32-64)(32-128)}8$



$;+dfrac{(x-8)(x-32)(x-128)}{(64-8)(64-32)(64-128)}36+dfrac{(x-8)(x-32)(x-64)}{(128-8)(128-32)(128-64)}98$







share|cite|improve this answer














share|cite|improve this answer



share|cite|improve this answer








edited 1 hour ago

























answered 2 hours ago









J. W. TannerJ. W. Tanner

6,1311521




6,1311521












  • $begingroup$
    this equation gave back 68687616x^3-6932668416x^2+186621886464x-1080117166080 which did not fit the curve
    $endgroup$
    – Mohammad AlSaqqa
    1 hour ago












  • $begingroup$
    I had a typo. ($28$ instead of $128$), which I just corrected
    $endgroup$
    – J. W. Tanner
    1 hour ago










  • $begingroup$
    It still does not fit the curve, is my pattern maybe can't be represented as a polynomial?
    $endgroup$
    – Mohammad AlSaqqa
    1 hour ago










  • $begingroup$
    There are many polynomials that fit the four points you gave; I showed how to get one of them
    $endgroup$
    – J. W. Tanner
    27 mins ago


















  • $begingroup$
    this equation gave back 68687616x^3-6932668416x^2+186621886464x-1080117166080 which did not fit the curve
    $endgroup$
    – Mohammad AlSaqqa
    1 hour ago












  • $begingroup$
    I had a typo. ($28$ instead of $128$), which I just corrected
    $endgroup$
    – J. W. Tanner
    1 hour ago










  • $begingroup$
    It still does not fit the curve, is my pattern maybe can't be represented as a polynomial?
    $endgroup$
    – Mohammad AlSaqqa
    1 hour ago










  • $begingroup$
    There are many polynomials that fit the four points you gave; I showed how to get one of them
    $endgroup$
    – J. W. Tanner
    27 mins ago
















$begingroup$
this equation gave back 68687616x^3-6932668416x^2+186621886464x-1080117166080 which did not fit the curve
$endgroup$
– Mohammad AlSaqqa
1 hour ago






$begingroup$
this equation gave back 68687616x^3-6932668416x^2+186621886464x-1080117166080 which did not fit the curve
$endgroup$
– Mohammad AlSaqqa
1 hour ago














$begingroup$
I had a typo. ($28$ instead of $128$), which I just corrected
$endgroup$
– J. W. Tanner
1 hour ago




$begingroup$
I had a typo. ($28$ instead of $128$), which I just corrected
$endgroup$
– J. W. Tanner
1 hour ago












$begingroup$
It still does not fit the curve, is my pattern maybe can't be represented as a polynomial?
$endgroup$
– Mohammad AlSaqqa
1 hour ago




$begingroup$
It still does not fit the curve, is my pattern maybe can't be represented as a polynomial?
$endgroup$
– Mohammad AlSaqqa
1 hour ago












$begingroup$
There are many polynomials that fit the four points you gave; I showed how to get one of them
$endgroup$
– J. W. Tanner
27 mins ago




$begingroup$
There are many polynomials that fit the four points you gave; I showed how to get one of them
$endgroup$
– J. W. Tanner
27 mins ago










Mohammad AlSaqqa is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















Mohammad AlSaqqa is a new contributor. Be nice, and check out our Code of Conduct.













Mohammad AlSaqqa is a new contributor. Be nice, and check out our Code of Conduct.












Mohammad AlSaqqa is a new contributor. Be nice, and check out our Code of Conduct.
















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%2f3215348%2fgiven-four-points-how-can-i-find-an-equation-for-any-pattern%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

Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...