Global polynomial interpolants suffer from the Runge Phenomenon if the data sites (nodes) are not chosen correctly.

Size: px
Start display at page:

Download "Global polynomial interpolants suffer from the Runge Phenomenon if the data sites (nodes) are not chosen correctly."

Transcription

1 Piecewise polynomial interpolation Global polynomial interpolants suffer from the Runge Phenomenon if the data sites (nodes) are not chosen correctly. In many applications, one does not have the freedom to choose the data sites. In these situations it may be better to interpolate the data using a piecewise polynomial interpolant. Additionally, if one wishes to impose further constraints on the interpolant, such as maximum/minimum preserving or that it have a certain shape, then piecewise polynomials are the right tool.

2 Piecewise linear interpolation The simplest piecewise polynomial interpolant is piecewise linear, or the kindergartener s interpolant

3 Piecewise linear interpolation <latexit sha_base64="idwfly9rfqjeelsswhnxhmdeya=">aaacdxicbvfnj9mwehudlev56sircvmicrksxpy4icehliueiurdrgcsznfyco7inu6i/jx+beucoai+fgd5nt5szvnpaakozd8qlulxcpvwtvfuvfsphvaohnzprecj8ioy6cpofrs44qkkzzwfqfkfz6l5cdn/+wcrzngf6vvjxefcyzkya8lfsmn4zlcklguhpacb8mfsm5xcztowrabphnxqfoigc5uzckp9ovjmlokdic5bvrkq6vfjccqqzcq9prhknwwvw6ipeizfzmr5dewzeu6emocc5wrtwfldgsqqf6+68cvidkggbmw8vojidhvbmj/tmzzbyymviw/xejhcq5vzx6yqqocfd7g/j/vvld+bu4lbpuclxycexnzqrpkfsoic8gcelf5wlgqwihya/iwh/kvgoptrikc5l5nfz4fep9ydhob6vqfxjrvdzug4m49h7ufrld8z7ym8ze/ym/asrewtogfsmbmmg+s5/sf/vd+rm8dqbbi9onnvpgaxknjzfwnxvok=</latexit> <latexit sha_base64="idwfly9rfqjeelsswhnxhmdeya=">aaacdxicbvfnj9mwehudlev56sircvmicrksxpy4icehliueiurdrgcsznfyco7inu6i/jx+beucoai+fgd5nt5szvnpaakozd8qlulxcpvwtvfuvfsphvaohnzprecj8ioy6cpofrs44qkkzzwfqfkfz6l5cdn/+wcrzngf6vvjxefcyzkya8lfsmn4zlcklguhpacb8mfsm5xcztowrabphnxqfoigc5uzckp9ovjmlokdic5bvrkq6vfjccqqzcq9prhknwwvw6ipeizfzmr5dewzeu6emocc5wrtwfldgsqqf6+68cvidkggbmw8vojidhvbmj/tmzzbyymviw/xejhcq5vzx6yqqocfd7g/j/vvld+bu4lbpuclxycexnzqrpkfsoic8gcelf5wlgqwihya/iwh/kvgoptrikc5l5nfz4fep9ydhob6vqfxjrvdzug4m49h7ufrld8z7ym8ze/ym/asrewtogfsmbmmg+s5/sf/vd+rm8dqbbi9onnvpgaxknjzfwnxvok=</latexit> <latexit sha_base64="idwfly9rfqjeelsswhnxhmdeya=">aaacdxicbvfnj9mwehudlev56sircvmicrksxpy4icehliueiurdrgcsznfyco7inu6i/jx+beucoai+fgd5nt5szvnpaakozd8qlulxcpvwtvfuvfsphvaohnzprecj8ioy6cpofrs44qkkzzwfqfkfz6l5cdn/+wcrzngf6vvjxefcyzkya8lfsmn4zlcklguhpacb8mfsm5xcztowrabphnxqfoigc5uzckp9ovjmlokdic5bvrkq6vfjccqqzcq9prhknwwvw6ipeizfzmr5dewzeu6emocc5wrtwfldgsqqf6+68cvidkggbmw8vojidhvbmj/tmzzbyymviw/xejhcq5vzx6yqqocfd7g/j/vvld+bu4lbpuclxycexnzqrpkfsoic8gcelf5wlgqwihya/iwh/kvgoptrikc5l5nfz4fep9ydhob6vqfxjrvdzug4m49h7ufrld8z7ym8ze/ym/asrewtogfsmbmmg+s5/sf/vd+rm8dqbbi9onnvpgaxknjzfwnxvok=</latexit> <latexit sha_base64="idwfly9rfqjeelsswhnxhmdeya=">aaacdxicbvfnj9mwehudlev56sircvmicrksxpy4icehliueiurdrgcsznfyco7inu6i/jx+beucoai+fgd5nt5szvnpaakozd8qlulxcpvwtvfuvfsphvaohnzprecj8ioy6cpofrs44qkkzzwfqfkfz6l5cdn/+wcrzngf6vvjxefcyzkya8lfsmn4zlcklguhpacb8mfsm5xcztowrabphnxqfoigc5uzckp9ovjmlokdic5bvrkq6vfjccqqzcq9prhknwwvw6ipeizfzmr5dewzeu6emocc5wrtwfldgsqqf6+68cvidkggbmw8vojidhvbmj/tmzzbyymviw/xejhcq5vzx6yqqocfd7g/j/vvld+bu4lbpuclxycexnzqrpkfsoic8gcelf5wlgqwihya/iwh/kvgoptrikc5l5nfz4fep9ydhob6vqfxjrvdzug4m49h7ufrld8z7ym8ze/ym/asrewtogfsmbmmg+s5/sf/vd+rm8dqbbi9onnvpgaxknjzfwnxvok=</latexit> <latexit sha_base64="idwfly9rfqjeelsswhnxhmdeya=">aaacdxicbvfnj9mwehudlev56sircvmicrksxpy4icehliueiurdrgcsznfyco7inu6i/jx+beucoai+fgd5nt5szvnpaakozd8qlulxcpvwtvfuvfsphvaohnzprecj8ioy6cpofrs44qkkzzwfqfkfz6l5cdn/+wcrzngf6vvjxefcyzkya8lfsmn4zlcklguhpacb8mfsm5xcztowrabphnxqfoigc5uzckp9ovjmlokdic5bvrkq6vfjccqqzcq9prhknwwvw6ipeizfzmr5dewzeu6emocc5wrtwfldgsqqf6+68cvidkggbmw8vojidhvbmj/tmzzbyymviw/xejhcq5vzx6yqqocfd7g/j/vvld+bu4lbpuclxycexnzqrpkfsoic8gcelf5wlgqwihya/iwh/kvgoptrikc5l5nfz4fep9ydhob6vqfxjrvdzug4m49h7ufrld8z7ym8ze/ym/asrewtogfsmbmmg+s5/sf/vd+rm8dqbbi9onnvpgaxknjzfwnxvok=</latexit> <latexit sha_base64="8mhyvikpjisjbny7ytsollltua=">aaacqxicbvffb9mwehccjfh+dfccxitzhdrpucutgvcanikxhngyilkkpooc59jaczzivoxevr4bx5cvwsfabsorzxk+xfu/p5fpduuhgmgt+ef+vnb7+/cg9x88fpr4epdkuylrzwhksnqwcimskfgigilzconregkxct5xzv/cqnaifj9w7acrcgwsmscmshepjrc5ypmyp6gwzxto9pvksudkizbxtl7rjzbppjshvt+m4vdm4p4ttlaptsdyabcxqkawjzdfxhxk6+sjnwtt/wvzletdfbjngyqvhdakt/p4wnulplxbsjkkhkzd4mkf5zpffxcn4hqaxxjovvcehfcjalu5gtoy9djkvzqdrsdfrqxwwfcareiyc4yrc5nbb//hzwvmisufwnopiuvzliivd74cmqgnhtraubbur5svmjmlaygkqgrrxelyqgvwputfhnk4coa5ntjde9knnhlhtzwfrk8n4sfnkzojvpjdwnz8khgzoqvcvn5bm5jpcyr/vmffco/rf+v/9mf9jm+p7fctcs8/heswdmd</latexit> <latexit sha_base64="8mhyvikpjisjbny7ytsollltua=">aaacqxicbvffb9mwehccjfh+dfccxitzhdrpucutgvcanikxhngyilkkpooc59jaczzivoxevr4bx5cvwsfabsorzxk+xfu/p5fpduuhgmgt+ef+vnb7+/cg9x88fpr4epdkuylrzwhksnqwcimskfgigilzconregkxct5xzv/cqnaifj9w7acrcgwsmscmshepjrc5ypmyp6gwzxto9pvksudkizbxtl7rjzbppjshvt+m4vdm4p4ttlaptsdyabcxqkawjzdfxhxk6+sjnwtt/wvzletdfbjngyqvhdakt/p4wnulplxbsjkkhkzd4mkf5zpffxcn4hqaxxjovvcehfcjalu5gtoy9djkvzqdrsdfrqxwwfcareiyc4yrc5nbb//hzwvmisufwnopiuvzliivd74cmqgnhtraubbur5svmjmlaygkqgrrxelyqgvwputfhnk4coa5ntjde9knnhlhtzwfrk8n4sfnkzojvpjdwnz8khgzoqvcvn5bm5jpcyr/vmffco/rf+v/9mf9jm+p7fctcs8/heswdmd</latexit> <latexit sha_base64="8mhyvikpjisjbny7ytsollltua=">aaacqxicbvffb9mwehccjfh+dfccxitzhdrpucutgvcanikxhngyilkkpooc59jaczzivoxevr4bx5cvwsfabsorzxk+xfu/p5fpduuhgmgt+ef+vnb7+/cg9x88fpr4epdkuylrzwhksnqwcimskfgigilzconregkxct5xzv/cqnaifj9w7acrcgwsmscmshepjrc5ypmyp6gwzxto9pvksudkizbxtl7rjzbppjshvt+m4vdm4p4ttlaptsdyabcxqkawjzdfxhxk6+sjnwtt/wvzletdfbjngyqvhdakt/p4wnulplxbsjkkhkzd4mkf5zpffxcn4hqaxxjovvcehfcjalu5gtoy9djkvzqdrsdfrqxwwfcareiyc4yrc5nbb//hzwvmisufwnopiuvzliivd74cmqgnhtraubbur5svmjmlaygkqgrrxelyqgvwputfhnk4coa5ntjde9knnhlhtzwfrk8n4sfnkzojvpjdwnz8khgzoqvcvn5bm5jpcyr/vmffco/rf+v/9mf9jm+p7fctcs8/heswdmd</latexit> <latexit sha_base64="8mhyvikpjisjbny7ytsollltua=">aaacqxicbvffb9mwehccjfh+dfccxitzhdrpucutgvcanikxhngyilkkpooc59jaczzivoxevr4bx5cvwsfabsorzxk+xfu/p5fpduuhgmgt+ef+vnb7+/cg9x88fpr4epdkuylrzwhksnqwcimskfgigilzconregkxct5xzv/cqnaifj9w7acrcgwsmscmshepjrc5ypmyp6gwzxto9pvksudkizbxtl7rjzbppjshvt+m4vdm4p4ttlaptsdyabcxqkawjzdfxhxk6+sjnwtt/wvzletdfbjngyqvhdakt/p4wnulplxbsjkkhkzd4mkf5zpffxcn4hqaxxjovvcehfcjalu5gtoy9djkvzqdrsdfrqxwwfcareiyc4yrc5nbb//hzwvmisufwnopiuvzliivd74cmqgnhtraubbur5svmjmlaygkqgrrxelyqgvwputfhnk4coa5ntjde9knnhlhtzwfrk8n4sfnkzojvpjdwnz8khgzoqvcvn5bm5jpcyr/vmffco/rf+v/9mf9jm+p7fctcs8/heswdmd</latexit> The simplest piecewise polynomial interpolant is piecewise linear, or the kindergartener s interpolant For each interval [x k,x k+ ], k =,...,n, fit a linear polynomial to the data L k (x) =f k + f k+ x k+ f k x k {z } k (x x k ) {z } s = f k + k s

4 Piecewise linear interpolation The simplest piecewise polynomial interpolant is piecewise linear, or the kindergartener s interpolant Issues with this approach: Creates corners in the data at each data site. Derivative of the curve will not be continuous If data values come from a function then the accuracy in approximating the function will be quite low.

5 Piecewise Hermite interpolation Suppose that in addition to function values at the data sites we also know what the derivative of the interpolant should be. Red lines indicate the slope (or derivative) the interpolant should have at the points For each interval [x k,x k+ ], k =,...,n, we want a polynomial H k (x) that interpolates the given data and has a derivative that matches values given: <latexit sha_base64="plksqzgllspfaity4uouchlw=">aaacyicbvhbbtnaefbkcxcuucnlxujuhehsimhobjspslujqkqislktvet+kv7vw7jhnmhnkd/gf/obn5ygzmsendkzlznppasjkpothldu9m7u+vdf/bwepwdpvjttw4fdyzsxfyk4vfljkcqpvkgsqpkqpe+lkx+fi7wsao/blcsqkzladsahkqaf8eaynhpr4zm5gsi5irdopr4uk6cspngdrybdhu8wh+pewgwgxe+/itzifwsvbh4zdrsmkudadjcbh4ewual+swqos8gn8k5ap4baqed8rycldo5dwpncetqgqsurf4owr/bdrhratdifrrjvhneo9ah+ildki9sazexxpnxqknbvfuuwtbixjoxdvgtcokxafzhdkoyysatzglvilzt8akzmr8khvxudpxplmvu//by5u55bk//ljwqavp8ulcorbbrtnactj8fswesyucnidefb6wbniwylwvvpkdvh9yzyzky4oeuz+t7n4k9zwntntqqlzr5+lrptewh/qz/+ougcdyw7rpn7au7zdf7x47zkttjqyacz8frcbj8cr+efp4if6/hsfo85rdifdxxxd+6y=</latexit> () H k (x k )=f k () H k (x k+ )=f k+ () H k (x k)=f k (4) H k (x k+) =f k+

6 <latexit sha_base64="wxmwopw6ndp4p6gbdoxphahsee=">aaadvnicbvjlb9naelyt+ic8ujhygdegpbsnkibequkqxkunvksgvopdtf6p7cxrxcu7thnz/i8gq5w7q+bcrpkh8xh/cmt/p4vh4mhbh9/oxban5bw9/yvn968pdr4yftradfjc5yjioupc7pfgzqcoujk6zesyxhlvost/ky5/nwfuhfyndphhjgwreqhgzfjouuueeeolfacycbila5gyoygq6gpxkhazeybxcoilvokjcdg9jbni99wwafmzylpvpbjogqaoxyrlbxfxz54qu+u4fqgizh9lwyz4jzgc+nyd58wia7grsed/yfiyekpkukxpvty4ouxno/ab/gnsne8tfefra9gf/s8dkhtcuetgngl5qikrmp/et7t8jyuigbwetgwpaqydktzgw6vm9ug+atwcwpyiznbwo8jklvt7u9/plg7tgsalbzsqosetl9c8selrlpkx4e/s5os5vzwivxlkwxmjccswjfbxvikipcwuvkristq8/atl9pqnkqxglfkfmdrubg7n6ud/cupchgetuqisskj4zaowkpxe9yobqotirvwqydyn5tnwmowmk4juysc9orxzupqszu5ckhp+abxf+rgrpd7wf9wlvjucfunua7lrdt4ptw+hkwknefoc6frdjyzqfz5bw7i4e79f7k/v+oi8bu5ty4pdbcznzgrtv8a+vsla==</latexit> <latexit sha_base64="wxmwopw6ndp4p6gbdoxphahsee=">aaadvnicbvjlb9naelyt+ic8ujhygdegpbsnkibequkqxkunvksgvopdtf6p7cxrxcu7thnz/i8gq5w7q+bcrpkh8xh/cmt/p4vh4mhbh9/oxban5bw9/yvn968pdr4yftradfjc5yjioupc7pfgzqcoujk6zesyxhlvost/ky5/nwfuhfyndphhjgwreqhgzfjouuueeeolfacycbila5gyoygq6gpxkhazeybxcoilvokjcdg9jbni99wwafmzylpvpbjogqaoxyrlbxfxz54qu+u4fqgizh9lwyz4jzgc+nyd58wia7grsed/yfiyekpkukxpvty4ouxno/ab/gnsne8tfefra9gf/s8dkhtcuetgngl5qikrmp/et7t8jyuigbwetgwpaqydktzgw6vm9ug+atwcwpyiznbwo8jklvt7u9/plg7tgsalbzsqosetl9c8selrlpkx4e/s5os5vzwivxlkwxmjccswjfbxvikipcwuvkristq8/atl9pqnkqxglfkfmdrubg7n6ud/cupchgetuqisskj4zaowkpxe9yobqotirvwqydyn5tnwmowmk4juysc9orxzupqszu5ckhp+abxf+rgrpd7wf9wlvjucfunua7lrdt4ptw+hkwknefoc6frdjyzqfz5bw7i4e79f7k/v+oi8bu5ty4pdbcznzgrtv8a+vsla==</latexit> <latexit sha_base64="wxmwopw6ndp4p6gbdoxphahsee=">aaadvnicbvjlb9naelyt+ic8ujhygdegpbsnkibequkqxkunvksgvopdtf6p7cxrxcu7thnz/i8gq5w7q+bcrpkh8xh/cmt/p4vh4mhbh9/oxban5bw9/yvn968pdr4yftradfjc5yjioupc7pfgzqcoujk6zesyxhlvost/ky5/nwfuhfyndphhjgwreqhgzfjouuueeeolfacycbila5gyoygq6gpxkhazeybxcoilvokjcdg9jbni99wwafmzylpvpbjogqaoxyrlbxfxz54qu+u4fqgizh9lwyz4jzgc+nyd58wia7grsed/yfiyekpkukxpvty4ouxno/ab/gnsne8tfefra9gf/s8dkhtcuetgngl5qikrmp/et7t8jyuigbwetgwpaqydktzgw6vm9ug+atwcwpyiznbwo8jklvt7u9/plg7tgsalbzsqosetl9c8selrlpkx4e/s5os5vzwivxlkwxmjccswjfbxvikipcwuvkristq8/atl9pqnkqxglfkfmdrubg7n6ud/cupchgetuqisskj4zaowkpxe9yobqotirvwqydyn5tnwmowmk4juysc9orxzupqszu5ckhp+abxf+rgrpd7wf9wlvjucfunua7lrdt4ptw+hkwknefoc6frdjyzqfz5bw7i4e79f7k/v+oi8bu5ty4pdbcznzgrtv8a+vsla==</latexit> <latexit sha_base64="wxmwopw6ndp4p6gbdoxphahsee=">aaadvnicbvjlb9naelyt+ic8ujhygdegpbsnkibequkqxkunvksgvopdtf6p7cxrxcu7thnz/i8gq5w7q+bcrpkh8xh/cmt/p4vh4mhbh9/oxban5bw9/yvn968pdr4yftradfjc5yjioupc7pfgzqcoujk6zesyxhlvost/ky5/nwfuhfyndphhjgwreqhgzfjouuueeeolfacycbila5gyoygq6gpxkhazeybxcoilvokjcdg9jbni99wwafmzylpvpbjogqaoxyrlbxfxz54qu+u4fqgizh9lwyz4jzgc+nyd58wia7grsed/yfiyekpkukxpvty4ouxno/ab/gnsne8tfefra9gf/s8dkhtcuetgngl5qikrmp/et7t8jyuigbwetgwpaqydktzgw6vm9ug+atwcwpyiznbwo8jklvt7u9/plg7tgsalbzsqosetl9c8selrlpkx4e/s5os5vzwivxlkwxmjccswjfbxvikipcwuvkristq8/atl9pqnkqxglfkfmdrubg7n6ud/cupchgetuqisskj4zaowkpxe9yobqotirvwqydyn5tnwmowmk4juysc9orxzupqszu5ckhp+abxf+rgrpd7wf9wlvjucfunua7lrdt4ptw+hkwknefoc6frdjyzqfz5bw7i4e79f7k/v+oi8bu5ty4pdbcznzgrtv8a+vsla==</latexit> <latexit sha_base64="zoivgyuzuhhhg4rhuphfmptv4=">aaadhicbvjlb9qwehycllk8wjhysvjxekwrjajxkjckuhaseksrbzav4wsax7spuqyh/gsuc+twcenf+gybzvwfb5ukzb+ybe75xuklhxrccev6lyerm5fgy/cfpw7zdo5+srghmddsm+oewzbcwdgjj+g4msdkrmjrmn/x5y9owfihuergbaslyjthdmejrtel6stfapkeffzg4mtboekpqdzcujuczzsax7shdaovnyyqd6graqlltwimtq9wdrlftjlumyrliv7otbneauvmokynwtdgczoxi9amzzgeph/drmgcgcabzekjhe9mle/5mz88lzbppjn46sbfbwrdezcw+d8dlqbzgo9ow5s5hmap6oxedcomydooubstonw8lnfqlpmkzcolrhxgkuadvxfirg5yyhcbqklwcntb+slj5ajoyzskqp/mhpwwrsse6wsmsvs+vwh/i8qvctoivdw4o766kksldzpm6epmmcdxkldog5rcmolholhrgtbfw8kndfezv44hyixxua56naqijvno4rpbkheduuimo9grufghgh5eawmytynzwmixlbdsh7ckjghhuf99x75nf/g//v/+7wp765d8mg+ad/amdl+dg=</latexit> <latexit sha_base64="zoivgyuzuhhhg4rhuphfmptv4=">aaadhicbvjlb9qwehycllk8wjhysvjxekwrjajxkjckuhaseksrbzav4wsax7spuqyh/gsuc+twcenf+gybzvwfb5ukzb+ybe75xuklhxrccev6lyerm5fgy/cfpw7zdo5+srghmddsm+oewzbcwdgjj+g4msdkrmjrmn/x5y9owfihuergbaslyjthdmejrtel6stfapkeffzg4mtboekpqdzcujuczzsax7shdaovnyyqd6graqlltwimtq9wdrlftjlumyrliv7otbneauvmokynwtdgczoxi9amzzgeph/drmgcgcabzekjhe9mle/5mz88lzbppjn46sbfbwrdezcw+d8dlqbzgo9ow5s5hmap6oxedcomydooubstonw8lnfqlpmkzcolrhxgkuadvxfirg5yyhcbqklwcntb+slj5ajoyzskqp/mhpwwrsse6wsmsvs+vwh/i8qvctoivdw4o766kksldzpm6epmmcdxkldog5rcmolholhrgtbfw8kndfezv44hyixxua56naqijvno4rpbkheduuimo9grufghgh5eawmytynzwmixlbdsh7ckjghhuf99x75nf/g//v/+7wp765d8mg+ad/amdl+dg=</latexit> <latexit sha_base64="zoivgyuzuhhhg4rhuphfmptv4=">aaadhicbvjlb9qwehycllk8wjhysvjxekwrjajxkjckuhaseksrbzav4wsax7spuqyh/gsuc+twcenf+gybzvwfb5ukzb+ybe75xuklhxrccev6lyerm5fgy/cfpw7zdo5+srghmddsm+oewzbcwdgjj+g4msdkrmjrmn/x5y9owfihuergbaslyjthdmejrtel6stfapkeffzg4mtboekpqdzcujuczzsax7shdaovnyyqd6graqlltwimtq9wdrlftjlumyrliv7otbneauvmokynwtdgczoxi9amzzgeph/drmgcgcabzekjhe9mle/5mz88lzbppjn46sbfbwrdezcw+d8dlqbzgo9ow5s5hmap6oxedcomydooubstonw8lnfqlpmkzcolrhxgkuadvxfirg5yyhcbqklwcntb+slj5ajoyzskqp/mhpwwrsse6wsmsvs+vwh/i8qvctoivdw4o766kksldzpm6epmmcdxkldog5rcmolholhrgtbfw8kndfezv44hyixxua56naqijvno4rpbkheduuimo9grufghgh5eawmytynzwmixlbdsh7ckjghhuf99x75nf/g//v/+7wp765d8mg+ad/amdl+dg=</latexit> <latexit sha_base64="zoivgyuzuhhhg4rhuphfmptv4=">aaadhicbvjlb9qwehycllk8wjhysvjxekwrjajxkjckuhaseksrbzav4wsax7spuqyh/gsuc+twcenf+gybzvwfb5ukzb+ybe75xuklhxrccev6lyerm5fgy/cfpw7zdo5+srghmddsm+oewzbcwdgjj+g4msdkrmjrmn/x5y9owfihuergbaslyjthdmejrtel6stfapkeffzg4mtboekpqdzcujuczzsax7shdaovnyyqd6graqlltwimtq9wdrlftjlumyrliv7otbneauvmokynwtdgczoxi9amzzgeph/drmgcgcabzekjhe9mle/5mz88lzbppjn46sbfbwrdezcw+d8dlqbzgo9ow5s5hmap6oxedcomydooubstonw8lnfqlpmkzcolrhxgkuadvxfirg5yyhcbqklwcntb+slj5ajoyzskqp/mhpwwrsse6wsmsvs+vwh/i8qvctoivdw4o766kksldzpm6epmmcdxkldog5rcmolholhrgtbfw8kndfezv44hyixxua56naqijvno4rpbkheduuimo9grufghgh5eawmytynzwmixlbdsh7ckjghhuf99x75nf/g//v/+7wp765d8mg+ad/amdl+dg=</latexit> Piecewise cubic Hermite interpolation For each interval [x k,x k+ ], k =,...,n, we want a polynomial H k (x) that interpolates the given data and has a derivative that matches values given: <latexit sha_base64="plksqzgllspfaity4uouchlw=">aaacyicbvhbbtnaefbkcxcuucnlxujuhehsimhobjspslujqkqislktvet+kv7vw7jhnmhnkd/gf/obn5ygzmsendkzlznppasjkpothldu9m7u+vdf/bwepwdpvjttw4fdyzsxfyk4vfljkcqpvkgsqpkqpe+lkx+fi7wsao/blcsqkzladsahkqaf8eaynhpr4zm5gsi5irdopr4uk6cspngdrybdhu8wh+pewgwgxe+/itzifwsvbh4zdrsmkudadjcbh4ewual+swqos8gn8k5ap4baqed8rycldo5dwpncetqgqsurf4owr/bdrhratdifrrjvhneo9ah+ildki9sazexxpnxqknbvfuuwtbixjoxdvgtcokxafzhdkoyysatzglvilzt8akzmr8khvxudpxplmvu//by5u55bk//ljwqavp8ulcorbbrtnactj8fswesyucnidefb6wbniwylwvvpkdvh9yzyzky4oeuz+t7n4k9zwntntqqlzr5+lrptewh/qz/+ougcdyw7rpn7au7zdf7x47zkttjqyacz8frcbj8cr+efp4if6/hsfo85rdifdxxxd+6y=</latexit> () H k (x k )=f k () H k (x k+ )=f k+ () H k (x k)=f k (4) H k (x k+) =f k+ This gives four conditions, so we look for a polynomial of degree three (cubic) in each interval [x k,x k+ ]: H k (x) =b k (x x k ) + c k (x x k ) + d k (x x k )+e k Now we just need to determine b k, c k, d k, e k to match the conditions. After some intensive algebra, we can write the solution for the coe cients as follows: e k = f k d k = f k c k = k d k d k+ h k b k = d k k + d k+ h k where h k = x k+ x k and k =(f k+ f k )/h k. <latexit sha_base64="5phxebpuzjcv4uym9klwggc=">aaaczhicbvfna9taefrbt7cpnuacgqupxyhpusvdchtirdoitmudcby4jvamqtwqe7iixefpj/tu9bzjz/kbxtg7nx8cwj/dmmjmusmfqc+76tgvxr5aw9/y7l5+s/xxw/7/w9tvjrdibeyjcrmycfgheklhbzamb5joeiyn4s9isreyu6hfos5jkbkpeijhds4w9avqswgkf6noieojcjxqwtkxvzmyhdmamhxtqrcdrbzmx/tjqye5vnxzbww7fc7lkfabgfthewbnfwgrjgvw5hc8mmgfteizoaarrcqtmnkgml4xmbwthcxxiwkp5cum/wsamsafttwx7p8dncunmeerrcwzpuaxticf8yvjt8mtvblhad4albssyofxdhhy6gbo5xbwlgwdlfku6yzrtynzbgfbnmadhblei9joqq9dt6ghf6uwegxeuc/9inpadl+7/vmwfzjsldwge+qjsc+osin5cc5iypcyr/yl9ysu869s+xsoluruqft9uyqb+f8+afodbgq</latexit>

7 Piecewise Hermite interpolation Suppose that in addition to function values at the data sites we also know what the derivative of the interpolant should be. Red lines indicate the slope (or derivative) the interpolant should have at the points For each interval [x k,x k+ ], k =,...,n, we want a polynomial H k (x) that interpolates the given data and has a derivative that matches values given: <latexit sha_base64="plksqzgllspfaity4uouchlw=">aaacyicbvhbbtnaefbkcxcuucnlxujuhehsimhobjspslujqkqislktvet+kv7vw7jhnmhnkd/gf/obn5ygzmsendkzlznppasjkpothldu9m7u+vdf/bwepwdpvjttw4fdyzsxfyk4vfljkcqpvkgsqpkqpe+lkx+fi7wsao/blcsqkzladsahkqaf8eaynhpr4zm5gsi5irdopr4uk6cspngdrybdhu8wh+pewgwgxe+/itzifwsvbh4zdrsmkudadjcbh4ewual+swqos8gn8k5ap4baqed8rycldo5dwpncetqgqsurf4owr/bdrhratdifrrjvhneo9ah+ildki9sazexxpnxqknbvfuuwtbixjoxdvgtcokxafzhdkoyysatzglvilzt8akzmr8khvxudpxplmvu//by5u55bk//ljwqavp8ulcorbbrtnactj8fswesyucnidefb6wbniwylwvvpkdvh9yzyzky4oeuz+t7n4k9zwntntqqlzr5+lrptewh/qz/+ougcdyw7rpn7au7zdf7x47zkttjqyacz8frcbj8cr+efp4if6/hsfo85rdifdxxxd+6y=</latexit> () H k (x k )=f k () H k (x k+ )=f k+ () H k (x k)=f k (4) H k (x k+) =f k+

Cubic Splines; Bézier Curves

Cubic Splines; Bézier Curves Cubic Splines; Bézier Curves 1 Cubic Splines piecewise approximation with cubic polynomials conditions on the coefficients of the splines 2 Bézier Curves computer-aided design and manufacturing MCS 471

More information

Piecewise Polynomial Interpolation

Piecewise Polynomial Interpolation Piecewise Polynomial Interpolation 1 Piecewise linear interpolation Suppose we have data point (x k,y k ), k =0, 1,...N. A piecewise linear polynomial that interpolates these points is given by p(x) =p

More information

Piecewise Polynomial Interpolation

Piecewise Polynomial Interpolation Piecewise Polynomial Interpolation 1 Piecewise linear interpolation Suppose we have data point (x k,y k ), k =0, 1,...N. A piecewise linear polynomial that interpolates these points is given by p(x) =p

More information

Cubic Splines MATH 375. J. Robert Buchanan. Fall Department of Mathematics. J. Robert Buchanan Cubic Splines

Cubic Splines MATH 375. J. Robert Buchanan. Fall Department of Mathematics. J. Robert Buchanan Cubic Splines Cubic Splines MATH 375 J. Robert Buchanan Department of Mathematics Fall 2006 Introduction Given data {(x 0, f(x 0 )), (x 1, f(x 1 )),...,(x n, f(x n ))} which we wish to interpolate using a polynomial...

More information

Lecture 10 Polynomial interpolation

Lecture 10 Polynomial interpolation Lecture 10 Polynomial interpolation Weinan E 1,2 and Tiejun Li 2 1 Department of Mathematics, Princeton University, weinan@princeton.edu 2 School of Mathematical Sciences, Peking University, tieli@pku.edu.cn

More information

Numerical Methods I: Polynomial Interpolation

Numerical Methods I: Polynomial Interpolation 1/31 Numerical Methods I: Polynomial Interpolation Georg Stadler Courant Institute, NYU stadler@cims.nyu.edu November 16, 2017 lassical polynomial interpolation Given f i := f(t i ), i =0,...,n, we would

More information

Interpolation Theory

Interpolation Theory Numerical Analysis Massoud Malek Interpolation Theory The concept of interpolation is to select a function P (x) from a given class of functions in such a way that the graph of y P (x) passes through the

More information

Q1. Discuss, compare and contrast various curve fitting and interpolation methods

Q1. Discuss, compare and contrast various curve fitting and interpolation methods Q1. Discuss, compare and contrast various curve fitting and interpolation methods McMaster University 1 Curve Fitting Problem statement: Given a set of (n + 1) point-pairs {x i,y i }, i = 0,1,... n, find

More information

Numerical Methods I: Interpolation (cont ed)

Numerical Methods I: Interpolation (cont ed) 1/20 Numerical Methods I: Interpolation (cont ed) Georg Stadler Courant Institute, NYU stadler@cims.nyu.edu November 30, 2017 Interpolation Things you should know 2/20 I Lagrange vs. Hermite interpolation

More information

Fitting a Natural Spline to Samples of the Form (t, f(t))

Fitting a Natural Spline to Samples of the Form (t, f(t)) Fitting a Natural Spline to Samples of the Form (t, f(t)) David Eberly, Geometric Tools, Redmond WA 9852 https://wwwgeometrictoolscom/ This work is licensed under the Creative Commons Attribution 4 International

More information

1 Piecewise Cubic Interpolation

1 Piecewise Cubic Interpolation Piecewise Cubic Interpolation Typically the problem with piecewise linear interpolation is the interpolant is not differentiable as the interpolation points (it has a kinks at every interpolation point)

More information

SPLINE INTERPOLATION

SPLINE INTERPOLATION Spline Background SPLINE INTERPOLATION Problem: high degree interpolating polynomials often have extra oscillations. Example: Runge function f(x = 1 1+4x 2, x [ 1, 1]. 1 1/(1+4x 2 and P 8 (x and P 16 (x

More information

Curve Fitting and Interpolation

Curve Fitting and Interpolation Chapter 5 Curve Fitting and Interpolation 5.1 Basic Concepts Consider a set of (x, y) data pairs (points) collected during an experiment, Curve fitting: is a procedure to develop or evaluate mathematical

More information

Scientific Computing: An Introductory Survey

Scientific Computing: An Introductory Survey Scientific Computing: An Introductory Survey Chapter 7 Interpolation Prof. Michael T. Heath Department of Computer Science University of Illinois at Urbana-Champaign Copyright c 2002. Reproduction permitted

More information

3.1 Interpolation and the Lagrange Polynomial

3.1 Interpolation and the Lagrange Polynomial MATH 4073 Chapter 3 Interpolation and Polynomial Approximation Fall 2003 1 Consider a sample x x 0 x 1 x n y y 0 y 1 y n. Can we get a function out of discrete data above that gives a reasonable estimate

More information

Section 0.2 & 0.3 Worksheet. Types of Functions

Section 0.2 & 0.3 Worksheet. Types of Functions MATH 1142 NAME Section 0.2 & 0.3 Worksheet Types of Functions Now that we have discussed what functions are and some of their characteristics, we will explore different types of functions. Section 0.2

More information

Math 660-Lecture 15: Finite element spaces (I)

Math 660-Lecture 15: Finite element spaces (I) Math 660-Lecture 15: Finite element spaces (I) (Chapter 3, 4.2, 4.3) Before we introduce the concrete spaces, let s first of all introduce the following important lemma. Theorem 1. Let V h consists of

More information

9.4 Cubic spline interpolation

9.4 Cubic spline interpolation 94 ubic spline interpolation Instead of going to higher and higher order, there is another way of creating a smooth function that interpolates data-points A cubic spline is a piecewise continuous curve

More information

Interpolation and extrapolation

Interpolation and extrapolation Interpolation and extrapolation Alexander Khanov PHYS6260: Experimental Methods is HEP Oklahoma State University October 30, 207 Interpolation/extrapolation vs fitting Formulation of the problem: there

More information

Threshold Autoregressions and NonLinear Autoregressions

Threshold Autoregressions and NonLinear Autoregressions Threshold Autoregressions and NonLinear Autoregressions Original Presentation: Central Bank of Chile October 29-31, 2013 Bruce Hansen (University of Wisconsin) Threshold Regression 1 / 47 Threshold Models

More information

Medical Physics & Science Applications

Medical Physics & Science Applications Power Conversion & Electromechanical Devices Medical Physics & Science Applications Transportation Power Systems 1-5: Introduction to the Finite Element Method Introduction Finite Element Method is used

More information

Math 365 Homework 5 Due April 6, 2018 Grady Wright

Math 365 Homework 5 Due April 6, 2018 Grady Wright Math 365 Homework 5 Due April 6, 018 Grady Wright 1. (Polynomial interpolation, 10pts) Consider the following three samples of some function f(x): x f(x) -1/ -1 1 1 1/ (a) Determine the unique second degree

More information

Official Math 112 Catalog Description. Math 112 Course Objectives

Official Math 112 Catalog Description. Math 112 Course Objectives Official Math 112 Catalog Description Topics include properties of functions and graphs, linear and quadratic equations, polynomial functions, exponential and logarithmic functions with applications. A

More information

Lecture Note 3: Interpolation and Polynomial Approximation. Xiaoqun Zhang Shanghai Jiao Tong University

Lecture Note 3: Interpolation and Polynomial Approximation. Xiaoqun Zhang Shanghai Jiao Tong University Lecture Note 3: Interpolation and Polynomial Approximation Xiaoqun Zhang Shanghai Jiao Tong University Last updated: October 10, 2015 2 Contents 1.1 Introduction................................ 3 1.1.1

More information

CS 450 Numerical Analysis. Chapter 8: Numerical Integration and Differentiation

CS 450 Numerical Analysis. Chapter 8: Numerical Integration and Differentiation Lecture slides based on the textbook Scientific Computing: An Introductory Survey by Michael T. Heath, copyright c 2018 by the Society for Industrial and Applied Mathematics. http://www.siam.org/books/cl80

More information

CS412: Introduction to Numerical Methods

CS412: Introduction to Numerical Methods CS412: Introduction to Numerical Methods MIDTERM #1 2:30PM - 3:45PM, Tuesday, 03/10/2015 Instructions: This exam is a closed book and closed notes exam, i.e., you are not allowed to consult any textbook,

More information

Common Core Algebra 2 Review Session 1

Common Core Algebra 2 Review Session 1 Common Core Algebra 2 Review Session 1 NAME Date 1. Which of the following is algebraically equivalent to the sum of 4x 2 8x + 7 and 3x 2 2x 5? (1) 7x 2 10x + 2 (2) 7x 2 6x 12 (3) 7x 4 10x 2 + 2 (4) 12x

More information

Empirical Models Interpolation Polynomial Models

Empirical Models Interpolation Polynomial Models Mathematical Modeling Lia Vas Empirical Models Interpolation Polynomial Models Lagrange Polynomial. Recall that two points (x 1, y 1 ) and (x 2, y 2 ) determine a unique line y = ax + b passing them (obtained

More information

Module - 02 Lecture 11

Module - 02 Lecture 11 Manufacturing Systems Technology Prof. Shantanu Bhattacharya Department of Mechanical Engineering and Design Programme Indian Institute of Technology, Kanpur Module - 0 Lecture 11 (Refer Slide Time: 00:17)

More information

Curve Fitting. Objectives

Curve Fitting. Objectives Curve Fitting Objectives Understanding the difference between regression and interpolation. Knowing how to fit curve of discrete with least-squares regression. Knowing how to compute and understand the

More information

Interpolation. Chapter Interpolation. 7.2 Existence, Uniqueness and conditioning

Interpolation. Chapter Interpolation. 7.2 Existence, Uniqueness and conditioning 76 Chapter 7 Interpolation 7.1 Interpolation Definition 7.1.1. Interpolation of a given function f defined on an interval [a,b] by a polynomial p: Given a set of specified points {(t i,y i } n with {t

More information

The highest degree term is x $, therefore the function is degree 4 (quartic) c) What are the x-intercepts?

The highest degree term is x $, therefore the function is degree 4 (quartic) c) What are the x-intercepts? L3 1.3 Factored Form Polynomial Functions Lesson MHF4U Jensen In this section, you will investigate the relationship between the factored form of a polynomial function and the x-intercepts of the corresponding

More information

Quintic beam closed form matrices (revised 2/21, 2/23/12) General elastic beam with an elastic foundation

Quintic beam closed form matrices (revised 2/21, 2/23/12) General elastic beam with an elastic foundation General elastic beam with an elastic foundation Figure 1 shows a beam-column on an elastic foundation. The beam is connected to a continuous series of foundation springs. The other end of the foundation

More information

Jim Lambers MAT 460/560 Fall Semester Practice Final Exam

Jim Lambers MAT 460/560 Fall Semester Practice Final Exam Jim Lambers MAT 460/560 Fall Semester 2009-10 Practice Final Exam 1. Let f(x) = sin 2x + cos 2x. (a) Write down the 2nd Taylor polynomial P 2 (x) of f(x) centered around x 0 = 0. (b) Write down the corresponding

More information

Chapter 4: Interpolation and Approximation. October 28, 2005

Chapter 4: Interpolation and Approximation. October 28, 2005 Chapter 4: Interpolation and Approximation October 28, 2005 Outline 1 2.4 Linear Interpolation 2 4.1 Lagrange Interpolation 3 4.2 Newton Interpolation and Divided Differences 4 4.3 Interpolation Error

More information

Lecture Note 3: Polynomial Interpolation. Xiaoqun Zhang Shanghai Jiao Tong University

Lecture Note 3: Polynomial Interpolation. Xiaoqun Zhang Shanghai Jiao Tong University Lecture Note 3: Polynomial Interpolation Xiaoqun Zhang Shanghai Jiao Tong University Last updated: October 24, 2013 1.1 Introduction We first look at some examples. Lookup table for f(x) = 2 π x 0 e x2

More information

CHAPTER 1. FUNCTIONS 7

CHAPTER 1. FUNCTIONS 7 CHAPTER 1. FUNCTIONS 7 1.3.2 Polynomials A polynomial is a function P with a general form P (x) a 0 + a 1 x + a 2 x 2 + + a n x n, (1.4) where the coe cients a i (i 0, 1,...,n) are numbers and n is a non-negative

More information

Q 0 x if x 0 x x 1. S 1 x if x 1 x x 2. i 0,1,...,n 1, and L x L n 1 x if x n 1 x x n

Q 0 x if x 0 x x 1. S 1 x if x 1 x x 2. i 0,1,...,n 1, and L x L n 1 x if x n 1 x x n . - Piecewise Linear-Quadratic Interpolation Piecewise-polynomial Approximation: Problem: Givenn pairs of data points x i, y i, i,,...,n, find a piecewise-polynomial Sx S x if x x x Sx S x if x x x 2 :

More information

Numerical Methods - Initial Value Problems for ODEs

Numerical Methods - Initial Value Problems for ODEs Numerical Methods - Initial Value Problems for ODEs Y. K. Goh Universiti Tunku Abdul Rahman 2013 Y. K. Goh (UTAR) Numerical Methods - Initial Value Problems for ODEs 2013 1 / 43 Outline 1 Initial Value

More information

INTERPOLATION. and y i = cos x i, i = 0, 1, 2 This gives us the three points. Now find a quadratic polynomial. p(x) = a 0 + a 1 x + a 2 x 2.

INTERPOLATION. and y i = cos x i, i = 0, 1, 2 This gives us the three points. Now find a quadratic polynomial. p(x) = a 0 + a 1 x + a 2 x 2. INTERPOLATION Interpolation is a process of finding a formula (often a polynomial) whose graph will pass through a given set of points (x, y). As an example, consider defining and x 0 = 0, x 1 = π/4, x

More information

Function Approximation

Function Approximation 1 Function Approximation This is page i Printer: Opaque this 1.1 Introduction In this chapter we discuss approximating functional forms. Both in econometric and in numerical problems, the need for an approximating

More information

UNIT-II INTERPOLATION & APPROXIMATION

UNIT-II INTERPOLATION & APPROXIMATION UNIT-II INTERPOLATION & APPROXIMATION LAGRANGE POLYNAMIAL 1. Find the polynomial by using Lagrange s formula and hence find for : 0 1 2 5 : 2 3 12 147 : 0 1 2 5 : 0 3 12 147 Lagrange s interpolation formula,

More information

Section 3.2 Polynomial Functions and Their Graphs

Section 3.2 Polynomial Functions and Their Graphs Section 3.2 Polynomial Functions and Their Graphs EXAMPLES: P (x) = 3, Q(x) = 4x 7, R(x) = x 2 + x, S(x) = 2x 3 6x 2 10 QUESTION: Which of the following are polynomial functions? (a) f(x) = x 3 + 2x +

More information

Constitutive models. Constitutive model: determines P in terms of deformation

Constitutive models. Constitutive model: determines P in terms of deformation Constitutive models Constitutive model: determines P in terms of deformation Elastic material: P depends only on current F Hyperelastic material: work is independent of path strain energy density function

More information

Applied Math 205. Full office hour schedule:

Applied Math 205. Full office hour schedule: Applied Math 205 Full office hour schedule: Rui: Monday 3pm 4:30pm in the IACS lounge Martin: Monday 4:30pm 6pm in the IACS lounge Chris: Tuesday 1pm 3pm in Pierce Hall, Room 305 Nao: Tuesday 3pm 4:30pm

More information

Integration, differentiation, and root finding. Phys 420/580 Lecture 7

Integration, differentiation, and root finding. Phys 420/580 Lecture 7 Integration, differentiation, and root finding Phys 420/580 Lecture 7 Numerical integration Compute an approximation to the definite integral I = b Find area under the curve in the interval Trapezoid Rule:

More information

November 20, Interpolation, Extrapolation & Polynomial Approximation

November 20, Interpolation, Extrapolation & Polynomial Approximation Interpolation, Extrapolation & Polynomial Approximation November 20, 2016 Introduction In many cases we know the values of a function f (x) at a set of points x 1, x 2,..., x N, but we don t have the analytic

More information

ERROR IN LINEAR INTERPOLATION

ERROR IN LINEAR INTERPOLATION ERROR IN LINEAR INTERPOLATION Let P 1 (x) be the linear polynomial interpolating f (x) at x 0 and x 1. Assume f (x) is twice continuously differentiable on an interval [a, b] which contains the points

More information

(0, 0), (1, ), (2, ), (3, ), (4, ), (5, ), (6, ).

(0, 0), (1, ), (2, ), (3, ), (4, ), (5, ), (6, ). 1 Interpolation: The method of constructing new data points within the range of a finite set of known data points That is if (x i, y i ), i = 1, N are known, with y i the dependent variable and x i [x

More information

Triangular Plate Displacement Elements

Triangular Plate Displacement Elements Triangular Plate Displacement Elements Chapter : TRIANGULAR PLATE DISPLACEMENT ELEMENTS TABLE OF CONTENTS Page. Introduction...................... Triangular Element Properties................ Triangle

More information

Math 1314 Lesson 1: Prerequisites

Math 1314 Lesson 1: Prerequisites Math 131 Lesson 1: Prerequisites Prerequisites are topics you should have mastered before you enter this class. Because of the emphasis on technology in this course, there are few skills which you will

More information

University of Houston, Department of Mathematics Numerical Analysis, Fall 2005

University of Houston, Department of Mathematics Numerical Analysis, Fall 2005 4 Interpolation 4.1 Polynomial interpolation Problem: LetP n (I), n ln, I := [a,b] lr, be the linear space of polynomials of degree n on I, P n (I) := { p n : I lr p n (x) = n i=0 a i x i, a i lr, 0 i

More information

Computational Physics

Computational Physics Interpolation, Extrapolation & Polynomial Approximation Lectures based on course notes by Pablo Laguna and Kostas Kokkotas revamped by Deirdre Shoemaker Spring 2014 Introduction In many cases, a function

More information

Numerical Mathematics & Computing, 7 Ed. 4.1 Interpolation

Numerical Mathematics & Computing, 7 Ed. 4.1 Interpolation Numerical Mathematics & Computing, 7 Ed. 4.1 Interpolation Ward Cheney/David Kincaid c UT Austin Engage Learning: Thomson-Brooks/Cole www.engage.com www.ma.utexas.edu/cna/nmc6 November 7, 2011 2011 1 /

More information

100 CHAPTER 4. SYSTEMS AND ADAPTIVE STEP SIZE METHODS APPENDIX

100 CHAPTER 4. SYSTEMS AND ADAPTIVE STEP SIZE METHODS APPENDIX 100 CHAPTER 4. SYSTEMS AND ADAPTIVE STEP SIZE METHODS APPENDIX.1 Norms If we have an approximate solution at a given point and we want to calculate the absolute error, then we simply take the magnitude

More information

A first order divided difference

A first order divided difference A first order divided difference For a given function f (x) and two distinct points x 0 and x 1, define f [x 0, x 1 ] = f (x 1) f (x 0 ) x 1 x 0 This is called the first order divided difference of f (x).

More information

Ch 7 Summary - POLYNOMIAL FUNCTIONS

Ch 7 Summary - POLYNOMIAL FUNCTIONS Ch 7 Summary - POLYNOMIAL FUNCTIONS 1. An open-top box is to be made by cutting congruent squares of side length x from the corners of a 8.5- by 11-inch sheet of cardboard and bending up the sides. a)

More information

7. Piecewise Polynomial (Spline) Interpolation

7. Piecewise Polynomial (Spline) Interpolation - 64-7 Piecewise Polynomial (Spline Interpolation Single polynomial interpolation has two major disadvantages First, it is not computationally efficient when the number of data points is large When the

More information

Engineering 7: Introduction to computer programming for scientists and engineers

Engineering 7: Introduction to computer programming for scientists and engineers Engineering 7: Introduction to computer programming for scientists and engineers Interpolation Recap Polynomial interpolation Spline interpolation Regression and Interpolation: learning functions from

More information

Interpolation. 1. Judd, K. Numerical Methods in Economics, Cambridge: MIT Press. Chapter

Interpolation. 1. Judd, K. Numerical Methods in Economics, Cambridge: MIT Press. Chapter Key References: Interpolation 1. Judd, K. Numerical Methods in Economics, Cambridge: MIT Press. Chapter 6. 2. Press, W. et. al. Numerical Recipes in C, Cambridge: Cambridge University Press. Chapter 3

More information

Cubic Spline. s(x) = s j (x) = a j + b j (x x j ) + c j (x x j ) 2 + d j (x x j ) 3, j = 0,... n 1 (1)

Cubic Spline. s(x) = s j (x) = a j + b j (x x j ) + c j (x x j ) 2 + d j (x x j ) 3, j = 0,... n 1 (1) Cubic Spline Suppose we are given a set of interpolating points (x i, y i ) for i = 0, 1, 2, n We seek to construct a piecewise cubic function s(x) that has the for x [[x j, x j+1 ] we have: s(x) = s j

More information

1 Roots of polynomials

1 Roots of polynomials CS348a: Computer Graphics Handout #18 Geometric Modeling Original Handout #13 Stanford University Tuesday, 9 November 1993 Original Lecture #5: 14th October 1993 Topics: Polynomials Scribe: Mark P Kust

More information

General elastic beam with an elastic foundation

General elastic beam with an elastic foundation General elastic beam with an elastic foundation Figure 1 shows a beam-column on an elastic foundation. The beam is connected to a continuous series of foundation springs. The other end of the foundation

More information

Outline. 1 Interpolation. 2 Polynomial Interpolation. 3 Piecewise Polynomial Interpolation

Outline. 1 Interpolation. 2 Polynomial Interpolation. 3 Piecewise Polynomial Interpolation Outline Interpolation 1 Interpolation 2 3 Michael T. Heath Scientific Computing 2 / 56 Interpolation Motivation Choosing Interpolant Existence and Uniqueness Basic interpolation problem: for given data

More information

Numerical integration and differentiation. Unit IV. Numerical Integration and Differentiation. Plan of attack. Numerical integration.

Numerical integration and differentiation. Unit IV. Numerical Integration and Differentiation. Plan of attack. Numerical integration. Unit IV Numerical Integration and Differentiation Numerical integration and differentiation quadrature classical formulas for equally spaced nodes improper integrals Gaussian quadrature and orthogonal

More information

Revision Materials. Functions, Quadratics & Polynomials Skills Builder

Revision Materials. Functions, Quadratics & Polynomials Skills Builder Mathematics Higher Revision Materials Functions, Quadratics & Polynomials Skills Builder Layout and content of the Unit Assessment will be different. This is not meant to be a carbon copy of the Unit Assessment.

More information

How many solutions are real? How many solutions are imaginary? What are the solutions? (List below):

How many solutions are real? How many solutions are imaginary? What are the solutions? (List below): 1 Algebra II Chapter 5 Test Review Standards/Goals: F.IF.7.c: I can identify the degree of a polynomial function. F.1.a./A.APR.1.: I can evaluate and simplify polynomial expressions and equations. F.1.b./

More information

Geometric Interpolation by Planar Cubic Polynomials

Geometric Interpolation by Planar Cubic Polynomials 1 / 20 Geometric Interpolation by Planar Cubic Polynomials Jernej Kozak, Marjeta Krajnc Faculty of Mathematics and Physics University of Ljubljana Institute of Mathematics, Physics and Mechanics Avignon,

More information

Something that can have different values at different times. A variable is usually represented by a letter in algebraic expressions.

Something that can have different values at different times. A variable is usually represented by a letter in algebraic expressions. Lesson Objectives: Students will be able to define, recognize and use the following terms in the context of polynomials: o Constant o Variable o Monomial o Binomial o Trinomial o Polynomial o Numerical

More information

Lagrange Interpolation and Neville s Algorithm. Ron Goldman Department of Computer Science Rice University

Lagrange Interpolation and Neville s Algorithm. Ron Goldman Department of Computer Science Rice University Lagrange Interpolation and Neville s Algorithm Ron Goldman Department of Computer Science Rice University Tension between Mathematics and Engineering 1. How do Mathematicians actually represent curves

More information

Algebra 1 Seamless Curriculum Guide

Algebra 1 Seamless Curriculum Guide QUALITY STANDARD #1: REAL NUMBERS AND THEIR PROPERTIES 1.1 The student will understand the properties of real numbers. o Identify the subsets of real numbers o Addition- commutative, associative, identity,

More information

Unit 1: Polynomial Functions SuggestedTime:14 hours

Unit 1: Polynomial Functions SuggestedTime:14 hours Unit 1: Polynomial Functions SuggestedTime:14 hours (Chapter 3 of the text) Prerequisite Skills Do the following: #1,3,4,5, 6a)c)d)f), 7a)b)c),8a)b), 9 Polynomial Functions A polynomial function is an

More information

10.1.1Theorem: Module 4 : Local / Global Maximum / Minimum and Curve Sketching

10.1.1Theorem: Module 4 : Local / Global Maximum / Minimum and Curve Sketching \ Module 4 : Local / Global Maximum / Minimum and Curve Sketching Lecture 10 : Sufficient conditions for increasing / decreasing [Section 10.1] Objectives In this section you will learn the following :

More information

LECTURE 16 GAUSS QUADRATURE In general for Newton-Cotes (equispaced interpolation points/ data points/ integration points/ nodes).

LECTURE 16 GAUSS QUADRATURE In general for Newton-Cotes (equispaced interpolation points/ data points/ integration points/ nodes). CE 025 - Lecture 6 LECTURE 6 GAUSS QUADRATURE In general for ewton-cotes (equispaced interpolation points/ data points/ integration points/ nodes). x E x S fx dx hw' o f o + w' f + + w' f + E 84 f 0 f

More information

Curves. Hakan Bilen University of Edinburgh. Computer Graphics Fall Some slides are courtesy of Steve Marschner and Taku Komura

Curves. Hakan Bilen University of Edinburgh. Computer Graphics Fall Some slides are courtesy of Steve Marschner and Taku Komura Curves Hakan Bilen University of Edinburgh Computer Graphics Fall 2017 Some slides are courtesy of Steve Marschner and Taku Komura How to create a virtual world? To compose scenes We need to define objects

More information

MTH301 Calculus II Glossary For Final Term Exam Preparation

MTH301 Calculus II Glossary For Final Term Exam Preparation MTH301 Calculus II Glossary For Final Term Exam Preparation Glossary Absolute maximum : The output value of the highest point on a graph over a given input interval or over all possible input values. An

More information

Efficient hp-finite elements

Efficient hp-finite elements Efficient hp-finite elements Ammon Washburn July 31, 2015 Abstract Ways to make an hp-finite element method efficient are presented. Standard FEMs and hp-fems with their various strengths and weaknesses

More information

1 Review of Interpolation using Cubic Splines

1 Review of Interpolation using Cubic Splines cs412: introduction to numerical analysis 10/10/06 Lecture 12: Instructor: Professor Amos Ron Cubic Hermite Spline Interpolation Scribes: Yunpeng Li, Mark Cowlishaw 1 Review of Interpolation using Cubic

More information

Math 20-1 Functions and Equations Multiple Choice Questions

Math 20-1 Functions and Equations Multiple Choice Questions Math 0-1 Functions and Equations Multiple Choice Questions 1 7 18 simplifies to: A. 9 B. 10 C. 90 D. 4 ( x)(4 x) simplifies to: A. 1 x B. 1x 1 4 C. 1x D. 1 x 18 4 simplifies to: 6 A. 9 B. 4 C. D. 7 4 The

More information

MATH ASSIGNMENT 07 SOLUTIONS. 8.1 Following is census data showing the population of the US between 1900 and 2000:

MATH ASSIGNMENT 07 SOLUTIONS. 8.1 Following is census data showing the population of the US between 1900 and 2000: MATH4414.01 ASSIGNMENT 07 SOLUTIONS 8.1 Following is census data showing the population of the US between 1900 and 2000: Years after 1900 Population in millions 0 76.0 20 105.7 40 131.7 60 179.3 80 226.5

More information

Patterns and Relations (Patterns)

Patterns and Relations (Patterns) Patterns and Relations (Patterns) Kindergarten Grade 1 Grade 2 Grade 3 Grade 4 Specific Learning Outcomes Specific Learning Outcomes Specific Learning Outcomes Specific Learning Outcomes Specific Learning

More information

1.2 Mathematical Models: A Catalog of Essential Functions

1.2 Mathematical Models: A Catalog of Essential Functions 1.2 Mathematical Models: A Catalog of Essential Functions A is a mathematical description of a real-world phenomenon. e.g., the size of a population, the demand for a product, the speed of a falling object,

More information

Jim Lambers MAT 460 Fall Semester Lecture 2 Notes

Jim Lambers MAT 460 Fall Semester Lecture 2 Notes Jim Lambers MAT 460 Fall Semester 2009-10 Lecture 2 Notes These notes correspond to Section 1.1 in the text. Review of Calculus Among the mathematical problems that can be solved using techniques from

More information

Department of Applied Mathematics Preliminary Examination in Numerical Analysis August, 2013

Department of Applied Mathematics Preliminary Examination in Numerical Analysis August, 2013 Department of Applied Mathematics Preliminary Examination in Numerical Analysis August, 013 August 8, 013 Solutions: 1 Root Finding (a) Let the root be x = α We subtract α from both sides of x n+1 = x

More information

Notation Nodes are data points at which functional values are available or at which you wish to compute functional values At the nodes fx i

Notation Nodes are data points at which functional values are available or at which you wish to compute functional values At the nodes fx i LECTURE 6 NUMERICAL DIFFERENTIATION To find discrete approximations to differentiation (since computers can only deal with functional values at discrete points) Uses of numerical differentiation To represent

More information

The use of cubic spline and far-side boundary condition for the collocation solution of a transient convection-diffusion problem

The use of cubic spline and far-side boundary condition for the collocation solution of a transient convection-diffusion problem Korean J Chem Eng, 24(2), 204-208 (2007) SHORT COMMUNICATION The use of cubic spline and far-side boundary condition for the collocation solution of a transient convection-diffusion problem Woohyun Yun

More information

Some notes on Chapter 8: Polynomial and Piecewise-polynomial Interpolation

Some notes on Chapter 8: Polynomial and Piecewise-polynomial Interpolation Some notes on Chapter 8: Polynomial and Piecewise-polynomial Interpolation See your notes. 1. Lagrange Interpolation (8.2) 1 2. Newton Interpolation (8.3) different form of the same polynomial as Lagrange

More information

Polynomials. p n (x) = a n x n + a n 1 x n 1 + a 1 x + a 0, where

Polynomials. p n (x) = a n x n + a n 1 x n 1 + a 1 x + a 0, where Polynomials Polynomials Evaluation of polynomials involve only arithmetic operations, which can be done on today s digital computers. We consider polynomials with real coefficients and real variable. p

More information

Polynomials 6c Classifying the Zeros of a Polynomial Functions

Polynomials 6c Classifying the Zeros of a Polynomial Functions Polynomials 6c Classifying the Zeros of a Polynomial Functions Standards: A APR.2, A APR.3, F IF.7c, N CN.9 Learning Target(s): How many zeros does a polynomial have? How can we find all the exact zeros

More information

CONTROL POLYGONS FOR CUBIC CURVES

CONTROL POLYGONS FOR CUBIC CURVES On-Line Geometric Modeling Notes CONTROL POLYGONS FOR CUBIC CURVES Kenneth I. Joy Visualization and Graphics Research Group Department of Computer Science University of California, Davis Overview B-Spline

More information

APPENDIX 21 STATISTICAL EVALUATION METHODS SLIPPERY ROCK CREEK PA STATE GAME LANDS #95 PROJECT SL

APPENDIX 21 STATISTICAL EVALUATION METHODS SLIPPERY ROCK CREEK PA STATE GAME LANDS #95 PROJECT SL APPENDIX 21 STATISTICAL EVALUATION METHODS SLIPPERY ROCK CREEK PA STATE GAME LANDS #95 PROJECT SL-110-7-101.5 3. Statistical Evaluation Methods Determination of Means The mean value of a population is

More information

2.5 The Fundamental Theorem of Algebra.

2.5 The Fundamental Theorem of Algebra. 2.5. THE FUNDAMENTAL THEOREM OF ALGEBRA. 79 2.5 The Fundamental Theorem of Algebra. We ve seen formulas for the (complex) roots of quadratic, cubic and quartic polynomials. It is then reasonable to ask:

More information

polynomial function polynomial function of degree n leading coefficient leading-term test quartic function turning point

polynomial function polynomial function of degree n leading coefficient leading-term test quartic function turning point polynomial function polynomial function of degree n leading coefficient leading-term test quartic function turning point quadratic form repeated zero multiplicity Graph Transformations of Monomial Functions

More information

Defect-based a-posteriori error estimation for implicit ODEs and DAEs

Defect-based a-posteriori error estimation for implicit ODEs and DAEs 1 / 24 Defect-based a-posteriori error estimation for implicit ODEs and DAEs W. Auzinger Institute for Analysis and Scientific Computing Vienna University of Technology Workshop on Innovative Integrators

More information

Convergence rates of derivatives of a family of barycentric rational interpolants

Convergence rates of derivatives of a family of barycentric rational interpolants Convergence rates of derivatives of a family of barycentric rational interpolants J.-P. Berrut, M. S. Floater and G. Klein University of Fribourg (Switzerland) CMA / IFI, University of Oslo jean-paul.berrut@unifr.ch

More information

2. If the discriminant of a quadratic equation is zero, then there (A) are 2 imaginary roots (B) is 1 rational root

2. If the discriminant of a quadratic equation is zero, then there (A) are 2 imaginary roots (B) is 1 rational root Academic Algebra II 1 st Semester Exam Mr. Pleacher Name I. Multiple Choice 1. Which is the solution of x 1 3x + 7? (A) x -4 (B) x 4 (C) x -4 (D) x 4. If the discriminant of a quadratic equation is zero,

More information

Thermal Axion Cosmology

Thermal Axion Cosmology Thermal Axion Cosmology 19th June 2015, Santander Eleonora Di Valentino Institut d Astrophysique de Paris Axions The most elegant and promising solution of the so-called strong CP problem in Quantum Chromodynamics

More information

Interpolation. Escuela de Ingeniería Informática de Oviedo. (Dpto. de Matemáticas-UniOvi) Numerical Computation Interpolation 1 / 34

Interpolation. Escuela de Ingeniería Informática de Oviedo. (Dpto. de Matemáticas-UniOvi) Numerical Computation Interpolation 1 / 34 Interpolation Escuela de Ingeniería Informática de Oviedo (Dpto. de Matemáticas-UniOvi) Numerical Computation Interpolation 1 / 34 Outline 1 Introduction 2 Lagrange interpolation 3 Piecewise polynomial

More information

x y x y 15 y is directly proportional to x. a Draw the graph of y against x.

x y x y 15 y is directly proportional to x. a Draw the graph of y against x. 3 8.1 Direct proportion 1 x 2 3 5 10 12 y 6 9 15 30 36 B a Draw the graph of y against x. y 40 30 20 10 0 0 5 10 15 20 x b Write down a rule for y in terms of x.... c Explain why y is directly proportional

More information

Review of Section 1.1. Mathematical Models. Review of Section 1.1. Review of Section 1.1. Functions. Domain and range. Piecewise functions

Review of Section 1.1. Mathematical Models. Review of Section 1.1. Review of Section 1.1. Functions. Domain and range. Piecewise functions Review of Section 1.1 Functions Mathematical Models Domain and range Piecewise functions January 19, 2017 Even and odd functions Increasing and decreasing functions Mathematical Models January 19, 2017

More information