How Do You Solve a Composite Function Problem with Constants?

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 3K views
valmancer
Messages
8
Reaction score
0
Given f(x)=ax+b, and f(3)(x)=64x+21, find the values of the constants a and b.

(note: f(3)(x) means fff(x))


To me this seems like I have to use two equations to find the value of three variables, since when I have found a and b, I should be able to get the value of x. Even though it should be impossible to find the values of three variables (I don't know what the difference between an unknown constant and a variable is) with two equations I went ahead and started simplifying the equation hoping it to magically solve itself:

f(3)(x)=a(a(ax+b)+b)+b=a(a^2x+ab+b)+b

=>a^3x+a^2b+ab+b=64x+21

=>b(a^2+a+1)=64x+21-a^3x

=>b=(64x+21-a^3x)/(a^2+a+1)

And this is where I understood that the way I was going about solving the thing won't work (I need to find exact values, which are not dependent on any variables). I'm out of ideas for how to try and solve the question.

Thanks in advance
 
Physics news on Phys.org
After a^3x+a^2b+ab+b=64x+21 you should have two equations:

a^3 = 64
and a^2b+ab+b = 21

---> a = 4
and 4^2b + 4b +b = 21
16b + 4b +b = 21
21 b = 21
b = 21
 
Do you know what makes two polynomials equal? Two polynomials are equal if and only if their coefficients with respect to the variables are equal. For example, if
[tex]ax^2 + b = 16x^2 + 4[/tex]
then [tex]a=16[/tex] and [tex]b = 4[/tex]
 
Thanks a lot; I don't understand how I didn't notice that.

This is how I got the answer in case anyone's interested:

a^3x+(a^2b+ab+b)=64x+21

Therefore a^3=64 => a=4

a^2b+ab+b=21
=> b(4^2+4+1)=21 => b=21/21=1

Thank you