You are here:

Advanced Math/Composition of functions

Advertisement


Question
Me again.  Now I'm on functions.    Is there a specific formula that I go by?  I think I'm supposed to get the product of the two functions, but as usual I have no idea!!  Here's the question:

For the functions f(x) = -5x + 12 and g(x) = 10x + 4,
find g(f((-1)).

Answer
Questioner:   Taneisha
Category:  Advanced Math
Question:  Me again.  Now I'm on functions.    Is there a specific formula that I go by?  I think I'm supposed to get the product of the two functions, but as usual I have no idea!!  Here's the question:

For the functions f(x) = -5x + 12 and g(x) = 10x + 4,
find g(f((-1)).  << extra parenthesis mistyped.
..............................
Hi, Taneisha,

In working with functions, you have to be careful of your notation and interpret it correctly.  For example

1. f(x) + g(x)  is a sum of functions.  It says to add the results - the outputs - of computing f and g.

2. f(x)g(x)  is a product of functions.  It says multiply the results - the outputs - of computing f and g.

3. f(x) - g(x),  4. f(x)/g(x), etc...

BUT:

5. f(g(x)) is a composition of functions.  It says to apply g to (x); THEN use that as the INPUT of f.  
................................
Imagine that you have two friends, Frank and George, who we can call f and g, for short, because each is an 'expert' at computing that function.  In cases 1,2,3,4, you can take your value of x, give a copy to each of Frank and George. They work simultaneously and when you get the two answers, you add, multiply, etc. to get your answer.

But for case 5, you must FIRST give your value of x to Frank.  (In  g(f(x)), f is the inside function and is evaluated first.)  You WAIT.  When Frank gives you his answer, THEN you give THAT ANSWER to George.  Whatever he returns is your final answer.
..................................
Your example:

f(x) = -5x + 12 and g(x) = 10x + 4,  find g(f(-1))  means:

1. First apply  f to -1:

f(-1) = -5(-1) + 12 = 5 + 12 = 17

2. Now apply g to that result:

g(17) = 10(17) + 4 = 170 + 4 = 174.

.......................
Extra.  What if your problem said to compute g(f(x))?  Then you will say:

1. f(x) = -5x + 12

2. g(f(x)) = g( -5x + 12) =

10(-5x + 12) + 4 = -50x + 120 + 4

= -50x + 124
............................
Notice that

-50(-1) + 124 = 50 + 124 = 174, just as before.

Advanced Math

All Answers


Answers by Expert:


Ask Experts

Volunteer


Paul Klarreich

Expertise

I can answer questions in basic to advanced algebra (theory of equations, complex numbers), precalculus (functions, graphs, exponential, logarithmic, and trigonometric functions and identities), basic probability, and finite mathematics, including mathematical induction. I can also try (but not guarantee) to answer questions on Abstract Algebra -- groups, rings, etc. and Analysis -- sequences, limits, continuity. I won't understand specialized engineering or business jargon.

Experience

I taught at a two-year college for 25 years, including all subjects from algebra to third-semester calculus.

Education/Credentials
-----------

©2012 About.com, a part of The New York Times Company. All rights reserved.