Waste less time on Facebook — follow Brilliant.

Composite function: help needed

On a recent quiz, I was given the question: If




Find a+b.

This first part is not necessary to be read, but it helps for sure. Skip to the \(\textbf{(I)}\) if you don't want to read this first half.

Seem simple enough? Let's expand



Let's match the coefficients of \(x^2\)



Now assume \(a=2\) for now, match the coefficients of \(x^1\)



Yay, it's pretty, therefore \(a+b=\frac{9}{4}\)


Match the coefficients of \(x^0\) we get



\[b=1\pm i\]


Now here, you might ask, "well what if a=-2" and I will respond, "Glad you asked, but don't worry, I did the calculations and it still doesn't work, I'm just a lazy sloth who is too lazy to type it out." :P

Contradiction? No solution? Empty set?

But wait, let's try another approach, because the question doesn't ask for a and b, it just asks for \(a+b\). For all we know, \((a,b)=(6+\sqrt i,~\text{Pikachu})\). Also, there are many problems which ask for a+b where you can't solve for a and b.

Here's an example:

A right triangle with one leg 6, hypotenuse a, and other leg b, find \(a^2-b^2\)

Clearly we can't solve for a and b, but we do know that by Pythagorean theorem, \(a^2-b^2=36\)

Notice what we did in the original equation, we assumed that\(a=\pm 2\) and there is no solution for b. Well, what if a=Charizard???

Now my approach ( I did method (I) on the 40 min quiz which took me about 25 mins to figure out, I still finished the other 5 or 6 questions in time though) was to plug in \(x=1\) which im not sure if this is valid. By doing this, \(g(1)=a+b\).

Now, we proceed with 3 sub-solutions from here.

\(\textbf{(I)}\) Set \(f(g(1))=(a+b)^2-2(a+b)-1=4(1)^2-3(1)-1\]




Skip to the "skip here" because I think the next two are false

\(\textbf{(II)}\). My friend did this and I think its wrong.

Do the reverse of part 1.



\[\therefore a+b=1,-\frac{1}{4}\]

\(\textbf{(III)}~~\) MY OTHER FRIEND DID THIS, PLEASE CHECK IF THIS IS WRONG, I told him it is but he says it's right. ,Plugging in \(g(1)\) into \(f(x)\) we get


Setting this equal to the \(f(g(x))\) we were given yields




\[\therefore a+b=-\frac{2}{3}, ~ 1\]

Skip Here

If anyone could provide answers for the following questions I'd greatly appreciate it

What I'm wondering is

1) Why do all the above methods have 1 as a solution? Or is it just a coincidence. Or is it the answer and all others are extraneous.

2) Are the two solutions (2 and 3) false?

3) is this problem unsolvable, false, more than one solution exists, or is it impossible because of some concept like \(|x|<0\)

4) Am I right?

5) this problem is not Alg 2 difficulty (unless all answers are extraneous)

Note by Trevor Arashiro
2 years, 8 months ago

No vote yet
1 vote


Sort by:

Top Newest

Not every equation needs to have a solution. An extreme example could be like \(f(x)=1+x\), find the value of \(x\) such that \(f(f(x)) = f(x)\).

Solving this would give an absurd situation as \(1+(1+x)=1+x \rightarrow 2=1 ?\)

Janardhanan Sivaramakrishnan - 2 years, 8 months ago

Log in to reply

I believe the answer is. "This question is wrong".

There are no corresponding values of \(a, b \) which will make the statement true, even if we allow for complex constants.

Calvin Lin Staff - 2 years, 8 months ago

Log in to reply

The other question that I have is that if I type into wolfram "solve for a and b" the result is false. But if I plug in "find a+b" I get a bunch of ugly results.

Trevor Arashiro - 2 years, 8 months ago

Log in to reply

(II) is clearly wrong.

Calvin Lin Staff - 2 years, 8 months ago

Log in to reply

Thank you for the clarification

Trevor Arashiro - 2 years, 8 months ago

Log in to reply

I know that the question didn't specify that a and b are constants, but assume they are.

Trevor Arashiro - 2 years, 8 months ago

Log in to reply


Problem Loading...

Note Loading...

Set Loading...