Lecture Note
University
Massachusetts Institute of TechnologyCourse
Multivariable CalculusPages
1
Academic year
2022
Sporkz
Views
71
p {margin: 0; padding: 0;} .ft00{font-size:20px;font-family:Arial;color:#000000;} .ft01{font-size:18px;font-family:ArialMT;color:#000000;} .ft02{font-size:18px;line-height:23px;font-family:ArialMT;color:#000000;} Rearranging the formula The equations we have to solve are as follows: So the first equation can be simplified by looking at the coefficients of a and b. You'llsee that there are actually linear equations in a and b, so there's a lot of clutter withall these x's and y's all over the place.Let's simplify the formula by dividing out the factors of two. We can eliminate a and bfrom the variable terms. After that, we can focus on the coefficient of a. So when wedo this, we get xi squared times a plus xi times b minus xi yi. And we set this equal to0. Let us proceed to the next example. We multiply axi by minus 1 and then add b toyield xia plus b minus yi. Let us rearrange this equation so that all the a's are on oneside. This means that the sum of all the xi squared plus the sum of all xi times bminus the sum of xiy equals zero.So, in the case of y = x 2 + x , if we rewrite this as y = (x2) +x, then we have y = (sumof x2) times a plus sum of x. So that equals sum of xi times a, and that equals (sumof x) times a. Plus, how many b's do we get from this one? Well, we get one for eachdata point. When we sum them together, we will get n. So n times b equals the sumof yi. Now, these quantities will look scary, but they're really just numbers. So for example,for this one, you simply sum all the data points. And you get a two-by-two linearsystem in x and y. Now, solving that system is easy. Just plug in the numbers fromyour data and solve the linear system that you get.
Rearranging the Formula
Please or to post comments