{"id":10716,"date":"2017-08-10t11:52:57","date_gmt":"2017-08-10t18:52:57","guid":{"rendered":"\/\/www.catharsisit.com\/hs\/?p=10716"},"modified":"2019-03-17t18:28:29","modified_gmt":"2019-03-18t01:28:29","slug":"ap-calculus-bc-review-lagrange-error-bound","status":"publish","type":"post","link":"\/\/www.catharsisit.com\/hs\/ap\/ap-calculus-bc-review-lagrange-error-bound\/","title":{"rendered":"ap calculus bc review: lagrange error bound"},"content":{"rendered":"
what is the lagrange error bound? basically, it’s a theoretical limit that measures how bad a taylor polynomial estimate could be. read on to find out more!<\/p>\n
<\/p>\n
the whole point in developing taylor series is that they replace more complicated functions with polynomial-like expressions. the properties of taylor series make them especially useful when doing calculus.<\/p>\n
remember, a taylor series for a function f<\/em>, with center c<\/em>, is:<\/p>\n <\/p>\n taylor series are wonderful tools. however, the biggest drawback associated with them is the fact that they typically involve infinitely many<\/em> terms. <\/p>\n <\/p>\n so in practice, we tend to use only the first few terms. maybe 3 terms, maybe 30, but at least a finite number of terms is more reasonable than all infinitely many of them, right?<\/p>\n but there is a trade-off. you lose accuracy<\/em>. a taylor polynomial<\/strong> (that is, finitely many terms of a taylor series) can provide a very good approximation for a function, but it can’t model the function exactly.<\/p>\n that’s where the error<\/em> comes in.<\/p>\n by the way, now would be a great time to review: ap calculus bc review: taylor polynomials<\/a> and ap calculus bc review: taylor and maclaurin series<\/a>.<\/p>\n let t<\/em>(x<\/em>) be the n<\/em>th order taylor polynomial for a given function f<\/em>, with center at c<\/em>. <\/p>\n <\/p>\n then the error between t<\/em>(x<\/em>) and f<\/em>(x<\/em>) is no greater than the lagrange error bound<\/strong> (also called the remainder term<\/strong>),<\/p>\n <\/p>\n here, m stands for the maximum absolute value of the (n+1)-order derivative on the interval between c<\/em> and x<\/em>. in other words, m<\/em> is found by plugging in the z<\/em>-value between x<\/em> and c<\/em> that maximizes the following expression:<\/p>\n <\/p>\n that may sound complicated, but in practice, there’s usually a quick way to decide what m<\/em> should be.<\/p>\n use the lagrange error bound to estimate the error in using a 4th degree maclaurin polynomial to approximate cos(π\/4).<\/p>\n first, you need to find the 4th degree maclaurin polynomial for cos x<\/em>. a maclaurin polynomial is simply a taylor polynomial centered at c<\/em> = 0. <\/p>\n <\/p>\n now, for the error bound, we’ll need to know what the 5th-derivative of f<\/em>(x<\/em>) = cos x<\/em> is. (you probably would have computed all of the derivatives up to the 4th order when you constructed the maclaurin polynomial for the function, anyway.)<\/p>\n <\/p>\n now, the largest that |-sin x<\/em>| could possibly be is 1. (actually, we could do even better than that if we realize that |-sin(π\/4)| = 0.707 maximizes the quantity on the interval [0, π\/4], but we’ll stick with our first estimate of 1. after all, this is only<\/em> an estimate!)<\/p>\n so, we have m<\/em> = 1. plugging this into the error bound formula with n<\/em> = 4, we get:<\/p>\n <\/p>\n the error is roughly 0.0025<\/p>\n because the computed error bound was so tiny, we can be sure that t<\/em>(x<\/em>) approximates the values of cos x<\/em> incredibly well, at least when the input is within the interval from 0 to π\/4.<\/p>\n let’s compare values to see just how close the approximation really is. computing each of t<\/em>(π\/4) and cos(π\/4) to eight digits of accuracy:<\/p>\n <\/p>\n <\/p>\n the actual error is: 0.70742921 – 0.70710678 = 0.00032243. this is much better than our estimated error of 0.0025. really, the lagrange error bound is just a worst-case scenario in terms of estimating error; the actual error is often much less.<\/p>\n","protected":false},"excerpt":{"rendered":" what is the lagrange error bound? basically, it’s a theoretical limit that measures how bad a taylor polynomial estimate could be. read on to find out more! taylor series and taylor polynomials the whole point in developing taylor series is that they replace more complicated functions with polynomial-like expressions. the properties of taylor series make […]<\/p>\n","protected":false},"author":223,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[240],"tags":[241],"ppma_author":[24932],"acf":[],"yoast_head":"\nthe lagrange error bound<\/h2>\n
example<\/h2>\n
solution<\/h4>\n
follow-up: how good was our estimate?<\/h4>\n