Back To Course

Math 104: Calculus14 chapters | 116 lessons | 11 flashcard sets

Are you a student or a teacher?

Try Study.com, risk-free

As a member, you'll also get unlimited access to over 75,000 lessons in math, English, science, history, and more. Plus, get practice tests, quizzes, and personalized coaching to help you succeed.

Try it risk-freeWhat teachers are saying about Study.com

Already registered? Login here for access

Your next lesson will play in
10 seconds

Lesson Transcript

Instructor:
*Robert Egan*

We know that functions map numbers to other numbers, so what happens when you have a function of a function? Welcome to functions within functions, the realm of composite functions!

Recall that **functions** are like a black box; they map numbers to other numbers. If *y* is a function of *x*, then we write it as *y*=*f(x)*. And for this function, we have an input, *x*, and an output, *y*. So *x* is our independent variable, and *y* is our dependent variable. Our input will be anywhere within the **domain** of the function, and our output will be anywhere within the **range** of the function. So perhaps it's not too much of a stretch to know that you can combine functions into a big function.

In math, this is known as a composition of functions. Here you start with *x*, and you use it as input to a function, *y*=*f(x)*. And you're going to put that as input into a second function, *g*. So if we have a function *y*=*f(x)*, and we want to plug it into *z*=*g(y)*, we can end up with *z*=*g(f(x))*. This is a **composite function**.

When you're looking at composite functions, there are two main points to keep in mind. First, you need to evaluate the function from the inside out. You need to figure out what *f(x)* is before you figure out what *g* is. Say we have the function *f(x)*=3*x*, and we have another function *g(x)*= 4 + *x*. I'm going to find *z* when *x*=2. We're going to find *f(x)* when *x*=2 for f(2)= 3 * 2, which is 6. Saying *g*(*f*(2)) is like saying *g*(6). We do the same thing and say *g*(6) = 4 + 6. Well, that's 10, so *z* is just 10.

The second thing to keep in mind is that *g(f(x))* does not equal *f(g(x))*. There are some cases where it can, but in general, it does not. So if we use *f(x)*=3*x* and *g(x)*=*x* + 4, then let's look at the case where *x*=0. Then *g*(*f*(0)), where f(0) is 0 * 3 - well that's just zero, so I'm looking at *g*(0). I plug zero in for *x* here, and it's just 4. Now, if I look at *f*(*g*(0)), that's like saying *f*(4), and that gives me 12. *f*(*g*(0))=12, and *g*(*f*(0))=4. Those are not the same. So, *g(f(x))* does not equal *f(g(x))*.

What happens to the domain and range of a composite function? Well, if we have the function *g(x)*, we have some domain and some range for *g(x)*. Separately we've got a domain for *f(x)* and a range for *g(x)*. If I write *f(g(x))*, then the output of *g(x)*, which is the range, has to be somewhere in the domain of *f(x)*. Otherwise, we could get a number here that *f(x)* really doesn't know what to do with. What does all this really mean? Consider the function *f(x)*=sin(*x*).

The domain of sin(*x*) is going to be all of *x*, and the range is going to be between -1 and 1. Now let's look at the function *g(x)* equals the absolute value of *x*, or *g(x)*=abs(*x*). Again the domain is all of *x*, and the range is everything greater than 1 or equal to 0. If I take those two - here's my range of sin(*x*) - what happens to *g(f(x))*? So *g* is the absolute value, so I'll have abs(sin(*x*)).

What's the domain and range of that composite function? If I'm graphing *g(f(x))*, I'm graphing the absolute value of sin(*x*), so the graph looks like this. I have a range here that goes from 0 to 1 and a domain that covers all of *x*. Well, this makes sense. What if I look at *f(g(x))*, so the function is going to be sine of the absolute value of x, sin(abs(*x*)).

For the absolute value of *x*, you can take anything as input, so the domain is going to be all values of *x*, and the range of abs(*x*) is going to be zero and up, so anything that's a positive number. Now, sine can take anything, so the range of abs(*x*) is within the domain of sin(*x*), but what happens to the output? What is the range of this composite function? Let's graph it - is that unexpected? Now the range is in between -1 and 1, which just so happens to be the range of *f(x)*.

To recap, we know **functions** map numbers to other numbers, like *y*=*f(x)*. The **domain** and **range** tell us the possible values for the input and output of a function.

**Composite functions** take the output of one function and use it as input for another function, and we write this *f(g(x))*. We're going to evaluate *f(g(x))* from the inside out, so we're going to evaluate *g(x)* before we evaluate *f(x)*. And we also know that *f(g(x))* does not equal *g(f(x))*.

To unlock this lesson you must be a Study.com Member.

Create your account

Are you a student or a teacher?

Already a member? Log In

BackWhat teachers are saying about Study.com

Already registered? Login here for access

Did you know… We have over 160 college courses that prepare you to earn credit by exam that is accepted by over 1,500 colleges and universities. You can test out of the first two years of college and save thousands off your degree. Anyone can earn credit-by-exam regardless of age or education level.

To learn more, visit our Earning Credit Page

Not sure what college you want to attend yet? Study.com has thousands of articles about every imaginable degree, area of study and career path that can help you find the school that's right for you.

You are viewing lesson
Lesson
3 in chapter 1 of the course:

Back To Course

Math 104: Calculus14 chapters | 116 lessons | 11 flashcard sets

- What is a Function: Basics and Key Terms 7:57
- Graphing Basic Functions 8:01
- Compounding Functions and Graphing Functions of Functions 7:47
- Polynomial Functions: Properties and Factoring 7:45
- Polynomial Functions: Exponentials and Simplifying 7:45
- Exponentials, Logarithms & the Natural Log 8:36
- Slopes and Tangents on a Graph 10:05
- Equation of a Line Using Point-Slope Formula 9:27
- Horizontal and Vertical Asymptotes 7:47
- Implicit Functions 4:30
- Go to Graphing and Functions

- Go to Continuity

- Go to Limits

- Computer Science 109: Introduction to Programming
- Introduction to HTML & CSS
- Introduction to JavaScript
- Computer Science 332: Cybersecurity Policies and Management
- Introduction to SQL
- Early Civilizations & The Ancient Near East
- Fundamental Overview of World War I
- The Virginia Dynasty & Jacksonian America
- 1920's America and the Great Depression
- Building the United States After the American Revolution
- CEOE Test Cost
- PHR Exam Registration Information
- Claiming a Tax Deduction for Your Study.com Teacher Edition
- What is the PHR Exam?
- Anti-Bullying Survey Finds Teachers Lack the Support They Need
- What is the ASCP Exam?
- ASCPI vs ASCP

- Subtraction in Java: Method, Code & Examples
- Hydrogen Chloride vs. Hydrochloric Acid
- Extraction of Aluminum, Copper, Zinc & Iron
- Iroquois Culture, Traditions & Facts
- Noun Clauses Lesson Plan
- Adverb of Manner Lesson Plan
- Timeline Project Ideas for High School
- Quiz & Worksheet - Multi-Dimensional Arrays in C
- Quiz & Worksheet - What is a Diastereoisomer?
- Quiz & Worksheet - Mauryan Empire Art & Culture
- Quiz & Worksheet - What is a Convergent Sequence?
- Flashcards - Measurement & Experimental Design
- Flashcards - Stars & Celestial Bodies
- ESL Teaching Strategies for ESL Students
- Formative Assessment in Schools | A Guide to Formative Assessment

- Business Ethics for Teachers: Professional Development
- FERPA Training for Educators
- Biology 104: Bioethics
- WEST Early Childhood Education (101): Practice & Study Guide
- College Composition Textbook
- TExMaT Master Reading Teacher: Professional Development
- GACE Marketing: Brand Positioning & Consumer Protection
- Quiz & Worksheet - Impact of Contact & Exchange Between Societies
- Quiz & Worksheet - History of the US Flag & National Anthem
- Quiz & Worksheet - Earths Axial Tilt & Orbit Around the Sun
- Quiz & Worksheet - Fertile Soil Orders in the U.S.
- Quiz & Worksheet - Social Facilitation Studies

- Fertile Soil Orders in the United States
- The Sierpinski Triangle & The Chaos Game
- WIDA Can Do Descriptors for Grades 6-8
- Is the SAT a Standardized Test?
- Election of 1860 Lesson Plan
- NYS Earth Science Regents Exam Information
- Independent Study Courses
- Science Fiction Writing Prompts
- Common Core State Standards in Arkansas
- How to Find Classroom Grants for Teachers
- TExES PPR Test Dates
- Best PSAT Prep Book

- Tech and Engineering - Videos
- Tech and Engineering - Quizzes
- Tech and Engineering - Questions & Answers

Browse by subject