Fun with 2015

Calculus Level 3

{ f ( 2013 ) = 3 f ( 2015 ) = 1 f ( 2017 ) = 5 f ( 2019 ) = 2015 \large \begin{cases} {f(2013) = 3} \\ {f(2015) = 1} \\ {f(2017)=5} \\ {f(2019)=2015} \\ \end{cases}

Given that a cubic polynomial f ( x ) f(x) that satisfy the system of equations above, find the value of 2013 2017 f ( x ) d x \displaystyle \int_{2013}^{2017} f(x) \, dx .


The answer is 8.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Chew-Seong Cheong
May 25, 2015

Let g ( y ) = f ( x ) g(y) = f(x) , where y = x 2013 y = x-2013 . Then we have:

{ f ( 2013 ) = g ( 0 ) = 3 f ( 2015 ) = g ( 2 ) = 1 f ( 2017 ) = g ( 4 ) = 5 f ( 2019 ) = g ( 6 ) = 2015 and 2013 2017 f ( x ) d x = 0 4 g ( y ) d y \begin{cases} f(2013) = g(0) = 3 \\ f(2015) = g(2) = 1 \\ f(2017) = g(4) = 5 \\ f(2019) = g(6) = 2015 \end{cases} \text{ and } \displaystyle \int_{2013}^{2017} {f(x) dx} = \int_{0}^{4} {g(y) dy}

Let g ( y ) = a y 3 + b y 2 + c y + d g(y) = ay^3+by^2+cy+d , then we have:

{ g ( 0 ) = ( 0 ) a + ( 0 ) b + ( 0 ) c + d = 3 g ( 2 ) = 8 a + 4 b + 2 c + d = 1 g ( 4 ) = 64 a + 16 b + 4 c + d = 5 g ( 6 ) = 216 a + 36 b + 6 c + d = 2015 \begin{cases} g(0) = (0)a +(0)b+(0)c+d = 3 \\ g(2) = 8a +4b+2c+d = 1 \\ g(4) = 64a +16b+4c+d = 5 \\ g(6) = 216a +36b+6c+d = 2015 \end{cases}

Solving the equations, we get: a = 125 3 \space a = \frac{125}{3} , b = 997 4 b = -\frac{997}{4} , c = 1985 6 c = \frac{1985}{6} and d = 3 d = 3 .

2013 2017 f ( x ) d x = 0 4 g ( y ) d y = 0 4 ( 125 3 y 3 997 4 y 2 + 1985 6 y + 3 ) d y = [ 125 12 y 4 997 12 y 3 + 1985 12 y 2 + 3 y ] 0 4 = 8 \begin{aligned} \Rightarrow \int_{2013}^{2017} f(x) dx & = \int_{0}^{4} g(y) dy \\ & = \int_{0}^{4} {\left(\frac{125}{3}y^3 -\frac{997}{4} y^2 + \frac{1985}{6}y + 3 \right) dy} \\ & = \left[\frac{125}{12}y^4 -\frac{997}{12} y^3 + \frac{1985}{12}y^2 + 3y \right]_0^4 \\ & = \boxed{8} \end{aligned}

Nicely done! (+1)

Alternatively, you can use Simpson's rule, which gives the exact value of the integral for polynomials of degree 3 \leq{3} .

2013 2017 f ( x ) d x = 2 3 ( f ( 2013 ) + 4 f ( 2015 ) + f ( 2017 ) ) = 2 3 ( 3 + 4 + 5 ) = 8 \int_{2013}^{2017} f(x) \, dx= \frac{2}{3}\left(f(2013)+4f(2015)+f(2017)\right)=\frac{2}{3}(3+4+5)=\boxed{8}

Otto Bretscher - 6 years ago

Log in to reply

Great! Thanks for an elegant approach, Otto.

Done exactly the same way as you by Simpson's

Ravi Dwivedi - 5 years, 5 months ago

Thanks for introducing me to Simpson's rule.

Swapnil Das - 5 years, 3 months ago

A slightly different approach which allows you to avoid solving for a , b , c , d a,b,c,d is to introduce the interpolant g g such that g ( x ) = f ( 2011 + 2 x ) g(x)=f(2011+2x) and then use method of differences to reconstruct g ( x ) g(x) .

Then, one can simply make the substitution 2 u = x 2011 2u=x-2011 with 2 d u = d x 2\,\mathrm du=\mathrm dx in the required integral and proceed in a similar manner as done in the last part of your solution.

Although, both the approaches are equivalently tedious.

Prasun Biswas - 6 years ago

Log in to reply

POST SOLUTION! POST SOLUTION! POST SOLUTION!

Pi Han Goh - 6 years ago

Log in to reply

Well, I can't deny your wish, so I'm posting it as a comment here.

There isn't much of a difference actually. If we proceed by the approach I mentioned above in my comment, we have, the difference table for the interpolant g g as follows:

x g ( x ) D 1 ( x ) D 2 ( x ) D 3 ( x ) 1 3 2 6 2000 2 1 4 2006 3 5 2010 4 2015 \begin{array}{|c|c|c|c|c|}\hline x&g(x)&D_1(x)&D_2(x)&D_3(x)\\ \hline 1&3&-2&6&2000\\ 2&1&4&2006\\3&5&2010\\4&2015\\ \hline\end{array}

Now, we have a nice formula to reconstruct g g (which is proved in the Method of Differences wiki). Using that,

g ( x ) = g ( 1 ) + k = 1 3 ( D k ( 1 ) k ! j = 1 k ( x j ) ) = 1000 3 x 3 1997 x 2 + 10967 3 x 1989 \begin{aligned}g(x)&=g(1)+\sum_{k=1}^3\left(\frac{D_k(1)}{k!}\prod_{j=1}^k(x-j)\right)\\&=\frac{1000}{3}x^3-1997x^2+\frac{10967}{3}x-1989\end{aligned}

Using the substitution for the integral I mentioned, we'll have,

2013 2017 f ( x ) d x = 2 1 3 g ( x ) d x \int\limits_{2013}^{2017}f(x)\,\mathrm dx=2\int\limits_1^3g(x)\,\mathrm dx

This integral can be easily evaluated from here. It's obvious that this is almost as tedious as finding the unknowns, which was why I said that both the approaches are equivalently tedious.

Prasun Biswas - 6 years ago
Hasmik Garyaka
Aug 13, 2017

Simpson's Rule gives the exact integral of cubic function on any interval. So we calculate ( b a ) / 6 ( f ( 2013 ) + 4 f ( 2015 ) + f ( 2017 ) ) = 8 (b-a)/6 *(f(2013)+4f(2015)+f(2017))=8

Could you explain why this is?

John Frank - 2 years, 11 months ago

The reason is in the second sentence of the Simpson's Rule article. The reason why that works is implicit in my own explanation below.

A Former Brilliant Member - 2 years, 5 months ago

the reason is in the second sentence of the Simpson's rule article. the reason why that works is implicit in my own explanation below.

Am Kemplin - 1 month, 3 weeks ago

Using finite differences , an exact cubic polynomial fitting those data points was computed. The resulting resulting polynomial was integrated as specified in the problem. generator = Function [ { diffs , start , step } , Function [ x , Evaluate [ Expand [ i = 0 Length [ diffs ] 1 diffs [ [ i + 1 ] ] j = 0 i 1 ( n j ) i ! /. n x start step ] ] ] ] \text{generator}=\text{Function}\left[\{\text{diffs},\text{start},\text{step}\}, \\ \text{Function}\left[x,\text{Evaluate}\left[\text{Expand}\left[\sum _{i=0}^{\text{Length}[\text{diffs}]-1} \frac{\text{diffs}[[i+1]] \prod _{j=0}^{i-1} (n-j)}{i!}\text{/.}\, n\to \frac{x-\text{start}}{\text{step}}\right]\right]\right]\right] estimate = generator ( { 3 , 2 , 6 , 2000 } , 2013 , 2 ) Function [ x , 125 x 3 3 1007497 x 2 4 + 1522574809 x 3 1363545375851 4 ] \text{estimate}=\text{generator}(\{3,-2,6,2000\},2013,2) \Longrightarrow \\ \text{Function}\left[x,\frac{125 x^3}{3}-\frac{1007497 x^2}{4}+\frac{1522574809 x}{3}-\frac{1363545375851}{4}\right] 2013 2017 estimate ( x ) d x 8 \int_{2013}^{2017} \text{estimate}(x) \, dx \Longrightarrow 8

The computer algebra system used was Wolfram Mathematica TM {}^{\text{TM}} 11.3.0.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...