Composing functions

Algebra Level 5

Consider all pairs of polynomials f ( x ) f(x) and g ( x ) g(x) such that { f ( g ( x ) ) = f ( x ) + g ( x ) , f ( 0 ) = 5 , f ( 1 ) = 7 , g ( 0 ) 0. \begin{cases} f(g(x)) =f(x)+g(x), \\ f(0) = 5, \\ f(1) = 7, \\ g(0) \neq 0.\\ \end{cases} What are the last three digits of the sum of all (distinct) possible values of f ( 20 ) ? f(20)?

Details and assumptions

The empty sum (sum of no elements) is 0.


The answer is 615.

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.

4 solutions

Zi Song Yeoh
Aug 13, 2013

Denote the first equation by ( 1 ) (1) . Let m a x ( a , b ) max(a, b) denote the maximum value of a and b. Let the degrees of f ( x ) f(x) and g ( x ) g(x) be f f and g g respectively. Note that f > 0 f > 0 since f ( 0 ) f ( 1 ) f(0) \ne f(1) . By ( 1 ) (1) , f g = m a x ( f , g ) fg = max(f, g) . We now have two cases.

i) g f g \ge f

Then f g = g fg = g . Now we have two cases.

a) g = 0 g = 0

Then g ( x ) = c g(x) = c for some c R c \in \mathbb{R} . But, by ( 1 ) (1) , f ( x ) = f ( c ) c f(x) = f(c) - c , which is a constant, which contradicts f > 0 f > 0 .

b) f = 1 f = 1

Then f ( 0 ) = 5 f(0) = 5 and f ( 1 ) = 7 f(1) = 7 implies f ( x ) = 2 x + 5 f(x) = 2x + 5 . Substituting this into ( 1 ) (1) gives g ( x ) = 2 x g(x) = 2x , which contradicts g ( 0 ) 0 g(0) \ne 0 .

ii) f > g f > g Then, f g = f fg = f . Since f > 0 f > 0 , g = 1 g = 1 . Let g ( x ) = a x + b g(x) = ax + b . Let f ( x ) = a n x n + a n 1 x n 1 + . . . + a 0 f(x) = a_{n}x^{n} + a_{n - 1}x^{n - 1} + ... + a_{0} , a n 0 a_{n} \ne 0 . The leading coefficient of f ( g ( x ) ) f(g(x)) is a n a n a^{n} \cdot a_{n} and the leading coefficient of f ( x ) + g ( x ) f(x) + g(x) is a n a_{n} .  Thus, a n = 1 a^{n} = 1 . We again have two cases.

a) a = 1 a = 1

Then, since g ( 0 ) 0 g(0) \ne 0 , b 0 b \ne 0 . Equation ( 1 ) (1) gives f ( x + b ) f ( x ) = x + b f(x + b) - f(x) = x + b . The degree of the LHS is n 1 n - 1 while the degree of the RHS is 1 1 , so n = 2 n = 2 . Note that a 0 = f ( 0 ) = 5 a_{0} = f(0) = 5 and a 1 + a 2 = f ( 1 ) a 0 = 2 a_{1} + a_{2} = f(1) - a_{0} = 2 . Substituting this into f ( x + b ) f ( x ) = x + b f(x + b) - f(x) = x + b and solving for a 1 , a 2 a_{1}, a_{2} and b b gives a 1 = 1 2 , a 2 = 3 2 , b = 1 3 a_{1} = \frac{1}{2}, a_{2} = \frac{3}{2}, b = \frac{1}{3} . It remains to note that the set of polynomials f ( x ) = 3 2 x 2 + 1 2 x + 5 , g ( x ) = x + 1 3 f(x) = \frac{3}{2}x^{2} + \frac{1}{2}x + 5, g(x) = x + \frac{1}{3} satisfies the equations. This gives f ( 20 ) = 615 f(20) = 615 .

b) a = 1 a = -1 and n n is even.

Again, f ( x + b ) f ( x ) = x + b f(-x + b) - f(x) = -x + b and the degree of LHS is still n 1 n - 1 since n n is even. Thus, n = 2 n = 2 using the same argument as the above. Using similar arguments, we can find the equations a 1 + a 2 = 2 a_{1} + a_{2} = 2 , 2 b a 2 2 a 1 = 1 -2ba_{2} - 2a_{1} = -1 , b 2 a 2 + b a 1 = b b^{2}a_{2} + ba_{1} = b . Simplifying the last two equations give b a 2 + a 1 = 1 2 ba_{2} + a_{1} = \frac{1}{2} and b a 2 + a 1 = 1 ba_{2} + a_{1} = 1 , which is a contradiction. Thus, f ( 20 ) = 615 f(20) = 615 is the only solution.

Moderator note:

This solution is essentially the same as James L.'s, but written more compactly. This is generally considered better, as long as all the important details are made explicit. A side remark one should use different letters for the degrees of the polynomials, because, say, f f usually still means f ( x ) . f(x).

James Lin
Aug 12, 2013

Let d f d_f and d g d_g be the degrees of f ( x ) f(x) and g ( x ) g(x) , respectively, and let f f and g g be the leading coefficients of f ( x ) f(x) and g ( x ) g(x) , respectively.

Note that f ( x ) f(x) is not a constant, since f ( 0 ) f(0) and f ( 1 ) f(1) take on different values. If g ( x ) g(x) is constant, then let g ( x ) = c g(x)=c . Then, we have

f ( c ) = f ( x ) + c f ( x ) = f ( c ) c , \begin{aligned} f(c)&=f(x)+c\\ \implies f(x)&=f(c)-c, \end{aligned}

but f ( c ) c f(c)-c is constant since c c is a fixed value, so hence we get f ( x ) f(x) is constant, a contradiction. Hence, we have that d f , d g 1 d_f,d_g\ge 1 .

Note that the degree of f ( g ( x ) ) f(g(x)) is d f d g d_fd_g , and the degree of f ( x ) + g ( x ) f(x)+g(x) is at most max ( d f , d g ) \max(d_f,d_g) (The reason why we have the "max" is because if d f = d g d_f=d_g and f = g f=-g , then we don't have equality). From f ( g ( x ) ) = f ( x ) + g ( x ) f(g(x))=f(x)+g(x) , we get that d f d g max ( d f , d g ) d_fd_g\le \max(d_f,d_g) .

If d f d g d_f\ge d_g , then we get that

d f d g d f d g 1 , \begin{aligned} d_fd_g&\le d_f\\ \implies d_g&\le 1, \end{aligned}

so d g = 1 d_g=1 since g ( x ) g(x) is not constant.

Similarly, if d g d f d_g\ge d_f , we get that d f = 1 d_f=1 .

Hence, either f ( x ) f(x) or g ( x ) g(x) is linear.

If f ( x ) f(x) is linear, then from f ( 0 ) = 5 f(0)=5 and f ( 1 ) = 7 f(1)=7 we get that f ( x ) = 2 x + 5 f(x)=2x+5 . Plugging this into f ( g ( x ) ) = f ( x ) + g ( x ) f(g(x))=f(x)+g(x) , we get that

2 g ( x ) + 5 = g ( x ) + 2 x + 5 g ( x ) = 2 x , \begin{aligned} 2g(x)+5&=g(x)+2x+5\\ \implies g(x)&=2x, \end{aligned}

but this means that g ( 0 ) = 0 g(0)=0 , contradicting g ( 0 ) 0 g(0)\neq 0 .

Thus, we have that g ( x ) g(x) is linear, and f ( x ) f(x) has degree at least 2 2 . Let g ( x ) = a x + b g(x)=ax+b .

Then, we get that f ( a x + b ) = f ( x ) + a x + b f(ax+b)=f(x)+ax+b . Now, we compare the leading coefficients of both sides of this equation.

The leading coefficient of the left side is a d f f a^{d_f}f , and the leading coefficient of the right side is f f since f ( x ) f(x) has degree at least 2 2 , so a x + b ax+b doesn't affect the leading coefficient. Hence,

a d f f = f a d f = 1 a = ± 1. \begin{aligned} a^{d_f}f&=f\\ \implies a^{d_f}&=1\\ \implies a&=\pm 1. \end{aligned}

If a = 1 a=-1 , then we get that f ( x + b ) = f ( x ) x + b f(-x+b)=f(x)-x+b . Plugging in x = b x=b gives f ( 0 ) = f ( b ) = 5 f(0)=f(b)=5 , so define p ( x ) = f ( x ) 5 p(x)=f(x)-5 . Then, we get that p ( 0 ) = p ( b ) = 0 p(0)=p(b)=0 . Note that since g ( 0 ) 0 g(0)\neq 0 , we get that b 0 b\neq 0 . Since the degree of p ( x ) p(x) is at least 2 2 , we have that p ( x ) = x ( x b ) q ( x ) p(x)=x(x-b)q(x) for some polynomial q ( x ) q(x) .

We have that

f ( x + b ) = f ( x ) x + b f ( x + b ) 5 = ( f ( x ) 5 ) x + b p ( x + b ) = p ( x ) x + b ( x + b ) ( x ) q ( x + b ) = x ( x b ) q ( x ) + ( x + b ) ( x ) q ( x + b ) = x q ( x ) + 1 x ( q ( x ) q ( x + b ) ) = 1 \begin{aligned} f(-x+b)&=f(x)-x+b\\ \implies f(-x+b)-5&=(f(x)-5)-x+b\\ \implies p(-x+b)&=p(x)-x+b\\ \implies (-x+b)(-x)q(-x+b)&=x(x-b)q(x)+(-x+b)\\ \implies (-x)q(-x+b)&=-xq(x)+1\\ \implies x(q(x)-q(-x+b))&=1 \end{aligned}

If q ( x ) = q ( x + b ) q(x)=q(-x+b) , then we get that 0 = 1 0=1 , a contradiction. Otherwise, we have that the left side has degree at least 1 1 while the right side is constant, a contradiction.

Hence, we can't have g ( x ) = x + b g(x)=-x+b , so we must have g ( x ) = x + b g(x)=x+b . Unfortunately, a similar solution doesn't work for this case.

We have that f ( x + b ) = f ( x ) + x + b f(x+b)=f(x)+x+b , or f ( x + b ) f ( x ) = x + b f(x+b)-f(x)=x+b . But f ( x + b ) f ( x ) f(x+b)-f(x) is just a finite difference of f ( x ) f(x) , so hence it has degree d f 1 d_f-1 (Also, after expanding f ( x + b ) f ( x ) f(x+b)-f(x) , it is easy to see that the coefficient of x d f x^{d_f} is 0 0 and the coefficient of x d f 1 x^{d_f-1} is b f d f bfd_f , which is nonzero since b , f , d f 0 b,f,d_f\neq 0 ).

Hence, the left side of f ( x + b ) f ( x ) = x + b f(x+b)-f(x)=x+b has degree d f 1 d_f-1 and the right side has degree 1 1 , so hence we have d f = 2 d_f=2 and thus f ( x ) f(x) is quadratic.

Let f ( x ) = r x 2 + s x + t f(x)=rx^2+sx+t . Since f ( 0 ) = 5 f(0)=5 we have f ( x ) = r x 2 + s x + 5 f(x)=rx^2+sx+5 . Since f ( 1 ) = 7 f(1)=7 we have that r + s = 2 r+s=2 and f ( x ) = r x 2 + ( 2 r ) x + 5 f(x)=rx^2+(2-r)x+5 . Plugging this into f ( x + b ) f ( x ) = x + b f(x+b)-f(x)=x+b gives

[ r ( x + b ) 2 + ( 2 r ) ( x + b ) + 5 ] [ r x 2 + ( 2 r ) x + 5 ] = x + b 2 r b x + r b 2 + ( 2 r ) b = x + b , \begin{aligned} [r(x+b)^2+(2-r)(x+b)+5]-[rx^2+(2-r)x+5]&=x+b\\ \implies 2rbx+rb^2+(2-r)b&=x+b, \end{aligned}

so equating coefficients gives us 2 r b = 1 r b = 1 2 2rb=1\implies rb=\frac 12 and

r b 2 + ( 2 r ) b = b r b + 2 r = 1 1 2 + 2 r = 1 r = 3 2 , \begin{aligned} rb^2+(2-r)b&=b\\ \implies rb+2-r&=1\\ \implies \frac 12+2-r&=1\\ \implies r&=\frac 32, \end{aligned}

where we divided by b 0 b\neq 0 and substituted r b = 1 2 rb=\frac 12 . Then, we get that f ( x ) = 3 2 x 2 + 1 2 x + 5 f(x)=\frac 32 x^2+\frac 12 x+5 and g ( x ) = x + 1 3 g(x)=x+\frac 13 . It is easy to check that these two polynomials satisfy our original conditions, so our only possibility for f ( 20 ) f(20) is 3 2 2 0 2 + 1 2 20 + 5 = 615 \frac 32 \cdot 20^2+\frac 12 \cdot 20+5=\boxed{615} .

Moderator note:

This is a very detailed solution. While it may appear long, it is just because all the details are explicitly written up. There is no really short solution to this problem.

Daniel Chiu
Aug 12, 2013

Consider the following, where deg ( f ( x ) ) \deg(f(x)) denotes the degree of f ( x ) f(x) . deg ( f ( g ( x ) ) ) = deg ( f ( x ) + g ( x ) ) \deg(f(g(x)))=\deg(f(x)+g(x)) deg ( f ( x ) ) deg ( g ( x ) ) = max ( deg ( f ( x ) ) , deg ( g ( x ) ) ) \deg(f(x))\cdot\deg(g(x))=\max(\deg(f(x)),\deg(g(x))) Therefore, one of ( f ( x ) , g ( x ) ) (f(x),g(x)) is linear. First, assume f ( x ) f(x) is linear. Therefore, f ( x ) = 2 x + 5 f(x)=2x+5 Plugging into the first equation: 2 g ( x ) + 5 = 2 x + 5 + g ( x ) 2g(x)+5=2x+5+g(x) g ( x ) = 2 x g(x)=2x However, since 2 ( 0 ) = 0 2(0)=0 , this does not satisfy the fourth given condition. Therefore, deg ( f ( x ) ) 2 \deg(f(x))\ge 2 and deg ( g ( x ) ) = 1 \deg(g(x))=1 . Let g ( x ) = a x + b g(x)=ax+b , and b 0 b\neq 0 by the fourth given condition. f ( a x + b ) = f ( x ) + a x + b f(ax+b)=f(x)+ax+b Considering the leading term of both sides, a = 1 a=1 . f ( x + b ) f ( x ) = x + b f(x+b)-f(x)=x+b This expression is an algebraic identity. Let f ( x ) = a 1 x n + a 2 x n 1 f(x)=a_1x^n+a_2x^{n-1}\cdots Now, the coefficient of the term with degree n 1 n-1 is a 1 n b a_1nb on the LHS and either 0 or 1 on the right side. Therefore, n = 2 n=2 , since a 1 , n , b 0 a_1,n,b\neq 0 . Now, let f ( x ) = a 1 x 2 + a 2 x + 5 f(x)=a_1x^2+a_2x+5 . We can expand and equate coefficients, giving: a 1 b = 1 2 a_1b=\dfrac{1}{2} a 1 b + a 2 = 1 a_1b+a_2=1 Therefore, a 2 = 1 2 a_2=\dfrac{1}{2} . f ( x ) = a 1 x 2 + 1 2 x + 5 f(x)=a_1x^2+\dfrac{1}{2}x+5 Since f ( 1 ) = 7 f(1)=7 , we find that a 1 = 3 2 a_1=\dfrac{3}{2} . We now know only one polynomial f ( x ) f(x) satisfies the conditions. The answer is f ( 20 ) = 615 f(20)=\boxed{615} .

There seems to be a little glitch here: why is a = 1 ? a=1? If the degree of f is even, then a = 1 a =-1 is also possible,

Alexander Borisov - 7 years, 10 months ago

Log in to reply

You are correct. Let me add a little:

If a = 1 a=-1 , we can still show n = 2 n=2 , and then we equate coefficients to get: a 2 + a 1 b = 1 a_2+a_1b=1 2 a 2 + 2 a 1 b = 1 2a_2+2a_1b=1 This is a contradiction, so a = 1 a=1 , and we can proceed as above.

Daniel Chiu - 7 years, 10 months ago
Matthew Lipman
Aug 17, 2013

First, let the degree of f be i and the degree of g be j. We see that i*j=max(i,j).

Suppose j>=i. We see that i*j=j, so, assuming g is nonconstant, i=1. This implies f=2x+5. Therefore, 2g+5=2x+5+g, so g=2x, which is impossible. If j=0, then we have that i=0, contradiction, since f is nonconstant.

Therefore, i>j. Since the first condition gives us that i*j=i. Since i>0 (because f is nonconstant), we have that j=1. Now, consider the leading coefficient of f(g(x)). We know it must equal the leading coefficient of f(x), so we see that g(x)=x+y, for some nonzero constant y. Furthermore, (x+y)^i has positive coefficients of degree i-1, so it follows that i=2.

Therefore f(x)=ax^2+bx+5. Substituting into our equation, ax^2+2ayx+ay^2+bx+by+5=ax^2+bx+5+x+y, so 2ayx+by+ay^2=x+y. Matching coefficients, 2ay=1, so ay=1/2. Furthermore, ay^2+by=y. Since y is nonzero, ay+b=1 and b=1/2.

Now we have f(x)=ax^2+x/2+5. We see that a=3/2 by the third initial condition, so the answer is

3/2 400+1/2 20+5=615

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...