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 (I)\textbf{(I)} if you don't want to read this first half.

Seem simple enough? Let's expand



Let's match the coefficients of x2x^2



Now assume a=2a=2 for now, match the coefficients of x1x^1



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


Match the coefficients of x0x^0 we get



b=1±ib=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+ba+b. For all we know, (a,b)=(6+i, Pikachu)(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 a2b2a^2-b^2

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

Notice what we did in the original equation, we assumed thata=±2a=\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=1x=1 which im not sure if this is valid. By doing this, g(1)=a+bg(1)=a+b.

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

(I)\textbf{(I)} Set f(g(1))=(a+b)22(a+b)1=4(1)23(1)1f(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

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

Do the reverse of part 1.



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

(III)  \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)g(1) into f(x)f(x) we get


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




a+b=23, 1\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|x|<0

4) Am I right?

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

Note by Trevor Arashiro
6 years, 6 months ago

No vote yet
1 vote

  Easy Math Editor

This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.

When posting on Brilliant:

  • Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
  • Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
  • Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.
  • Stay on topic — we're all here to learn more about math and science, not to hear about your favorite get-rich-quick scheme or current world events.

MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold

- bulleted
- list

  • bulleted
  • list

1. numbered
2. list

  1. numbered
  2. list
Note: you must add a full line of space before and after lists for them to show up correctly
paragraph 1

paragraph 2

paragraph 1

paragraph 2

[example link]( link
> This is a quote
This is a quote
    # I indented these lines
    # 4 spaces, and now they show
    # up as a code block.

    print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
MathAppears as
Remember to wrap math in \( ... \) or \[ ... \] to ensure proper formatting.
2 \times 3 2×3 2 \times 3
2^{34} 234 2^{34}
a_{i-1} ai1 a_{i-1}
\frac{2}{3} 23 \frac{2}{3}
\sqrt{2} 2 \sqrt{2}
\sum_{i=1}^3 i=13 \sum_{i=1}^3
\sin \theta sinθ \sin \theta
\boxed{123} 123 \boxed{123}


Sort by:

Top Newest

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

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

Calvin Lin Staff - 6 years, 6 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 - 6 years, 6 months ago

Log in to reply

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

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

Janardhanan Sivaramakrishnan - 6 years, 6 months ago

Log in to reply

(II) is clearly wrong.

Calvin Lin Staff - 6 years, 6 months ago

Log in to reply

Thank you for the clarification

Trevor Arashiro - 6 years, 6 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 - 6 years, 6 months ago

Log in to reply


Problem Loading...

Note Loading...

Set Loading...