Fitting a formula to data is an important skill, especially for making predictions. If you have a formula, you can use it to predict what would happen at the 99th stage or the 1000th stage, by just plugging that number into the formula. A word of caution: predictions are based upon the function maintaining the same rate of growth all the way to that stage. Let's examine each color individually and find the formulas for the Rectangle Pattern Challenge.

BlueThe terms are 6, 10, and 14. Notice that the difference between each term is a constant - 4. That means the function is growing at a constant rate; its graph is a straight line; and its formula is in the form ofwherey = mn + bis the slope andmis thebintercept (where the graph crosses theyaxis).yHow do we find

andm? Slope is the rate at which the function is changing. Well, that's 4, so that'sb. Themintercept occurs where n = 0, so go back to n = 0 by subtracting 4 from the n = 1 stage, and we get 2. So the formula for blue isy. Try all 3 stages and confirm that our formula works for all stages.y = 4n + 2

RedThe terms are 2, 8, and 18. The difference between the terms are 6 and 10. It's not constant, so it's not linear. But what is it?Let's try a difference of the differences. I need to know how many subtractions it takes to get a constant difference, but I don't really have enough information to determine that. I need another stage. Go back and look at Stage 3 and count the number of reds that we'd have on Stage 4 (add a row of reds on each side). Do you agree that it would be 32? Now our terms are 2, 8, 18, and 32. Our first differences are 6, 10, 14. And our second differences are 4 and 4. Aha! We now have our constant difference after 2 subtractions. That means we have a quadratic equation. (Yes, you are right - the rule is that the number of subtractions that it takes to get a constant difference is the largest power of the polynomial formula).

If the formula's quadratic, it's in the form of

, and we must find the values ofy = an^{2}+ bn + canda, b,. Look at the red terms again in the table below. Notice that I added the 0 row, since there are 0 reds in Stage 0.c

Stage No. ( n)0 1 2 3 4 No. Red Squares (y)0 2 8 18 32 Since

= 0, wheny= 0, substitute those values intonand gety = an^{2}+ bn + c

c = 0When

= 1,n= 2, so let's substitute those values (and remember,y) and getc = 0

2 = a + bSubstituting the next pair of

andngivesy

8 = 4a +2bThis gives a system of two equations with two variables that we can solve.

2 = a + b

8 = 4a +2bSo,

and the formula isa = 2, b = 0, and c = 0,y = 2n^{2}.Use this method of ## Your Turn

Constant Differencesto find the formula for the green squares.

To Main Activity | To Answers | To Teachers' Notes