Composing functions (article) | Khan Academy (2024)

Walk through examples, explanations, and practice problems to learn how to find and evaluate composite functions.

Want to join the conversation?

Log in

  • Tess Van Horn

    8 years agoPosted 8 years ago. Direct link to Tess Van Horn's post “In practice Q 4, where is...”

    In practice Q 4, where is 4t created? I see where t^2 and 4 come from, but am not sure what puts 4t in

    (66 votes)

    • Mr.Magroo

      8 years agoPosted 8 years ago. Direct link to Mr.Magroo's post “I was stuck on this too, ...”

      Composing functions (article) | Khan Academy (4)

      Composing functions (article) | Khan Academy (5)

      Composing functions (article) | Khan Academy (6)

      I was stuck on this too, but I think the reason is that (t-2)^2 = (t-2)(t-2) . Using the distributive property, you get t^2-4t+4.

      (115 votes)

  • Nigar Kainath

    8 years agoPosted 8 years ago. Direct link to Nigar Kainath's post “(f ∘ g)(x)here, what doe...”

    (f ∘ g)(x)
    here, what does the sign ∘ mean?

    (2 votes)

    • Levi Geadelmann

      8 years agoPosted 8 years ago. Direct link to Levi Geadelmann's post “(f ∘ g)(x) is read "f of ...”

      Composing functions (article) | Khan Academy (10)

      (f ∘ g)(x) is read "f of g of x", so the ∘ translates to "of".
      In this case, if you had functions defined, f(x) and g(x), then to get (f ∘ g)(x) you would substitute g(x) for x inside of f(x). Another way to write it is f(g(x)).

      (15 votes)

  • How do you know when to use the "inside out property" or the composing function?

    (9 votes)

    • Judith Gibson

      7 years agoPosted 7 years ago. Direct link to Judith Gibson's post “It doesn't really matter ...”

      It doesn't really matter --- they will both give the same answer, so it's up to you to choose what works best/easiest for you with the problem you're given at the time!
      (But, of course, you need to be familiar with both techniques.)

      (7 votes)

  • Aditya Mahajan

    5 years agoPosted 5 years ago. Direct link to Aditya Mahajan's post “May someone please explai...”

    May someone please explain the challenge problem to me?

    (2 votes)

    • Dylan Chan

      5 years agoPosted 5 years ago. Direct link to Dylan Chan's post “The challenge problem say...”

      Composing functions (article) | Khan Academy (17)

      The challenge problem says, "The graphs of the equations y=f(x) and y=g(x) are shown in the grid below." So basically the two graphs is a visual representation of what the two different functions would look like if graphed and they're asking us to find (f∘g)(8), which is combining the two functions and inputting 8. From the definition, we know (f∘g)(8)=f(g(8)). So let's work "inside out". If we look at the graph of "g", we see that g(8) is 2 (look at the 8 at the x-axis and if you go up to where it meets the line, the y value would be 2). Because g(8)=2, then when you substitute it back in the equation, f(g(8)) would equal f(2). Then if we look at the graph of "f", we can see that f(2) is -3. (when you look at the 2 in the x-axis, it will correspond to -3 on the y-axis). So by looking at the graph, you can figure out that (f∘g)(8) is approximately -3.
      ~Dylan

      (13 votes)

  • flowermap21

    10 months agoPosted 10 months ago. Direct link to flowermap21's post “In question 4 how do peop...”

    In question 4 how do people get the 4t in tsquered-t4+9?

    (3 votes)

    • Kim Seidel

      10 months agoPosted 10 months ago. Direct link to Kim Seidel's post “It comes from (t-2)^2(t-...”

      Composing functions (article) | Khan Academy (21)

      It comes from (t-2)^2
      (t-2)^2 = (t-2)(t-2) = t^2-2t-2t+4 = t^2-4t+4
      To square binomials, you need to use FOIL or the pattern for creating a perfect square trinomial. You can't square the 2 terms and get the right answer.

      Hope this helps.

      (11 votes)

  • magk2006

    10 months agoPosted 10 months ago. Direct link to magk2006's post “in the example question "...”

    in the example question "g(x)= x+4, h(x)= x(squared)-2x" how does it get the +8x and -2x in the distribute section ?
    here's the distribute equation =(x(squared)+8x+16−2x−8)

    (5 votes)

    • Kim Seidel

      10 months agoPosted 10 months ago. Direct link to Kim Seidel's post “h(g(x)) = (x+4)^2 - 2(x+4...”

      h(g(x)) = (x+4)^2 - 2(x+4)
      Basically each "x" in h(x) gets replaced with (x+4), which if g(x). Then, you simplify.

      1) FOIL out (x+4)^2:
      h(g(x)) = x^2+4x+4x+16 - 2(x+4) = x^2 + 8x + 16 - 2(x+4)

      2) Distribute -2: h(g(x)) = x^2 + 8x + 16 - 2x - 8

      3) Combine like terms: x^2 + 6x + 8

      Hope this helps.

      (6 votes)

  • ScribofThoth

    10 months agoPosted 10 months ago. Direct link to ScribofThoth's post “I still can't get this. I...”

    I still can't get this. I think my problem is them showing multiple ways to do this instead of focusing on how to combine it into one equation. Either I have to work each function alone then combine them at the end or have more help figuring out how to make one equation.

    (2 votes)

    • ersepsi

      10 months agoPosted 10 months ago. Direct link to ersepsi's post “I don't think their aim i...”

      I don't think their aim is to show you the multiple ways you can evaluate the composite function.

      The first example they basically show what evaluating a composite function really means, it's like you said "work each function alone". In the second example they showed a more faster and efficient way to evaluate the composite function by combining them into one equation.

      If you're still confused about composite functions, I'll explain this way:

      we have a function f(x), this function takes "x" as "input". Now, I'm certain you're used to the variable x being substituted for a number, but in maths, you can pretty much substitute it for anything you like. (Expressions for example)

      Like I can let x = 5, but I can also let x = 2h. Doesn't that mean I can also substitute x for some function? In other words x = g(x).

      Say if g(k) = 4k, then this would become: x = 4k. (Because x = g(k) = 4k)

      Since we let x = g(k) = 4k, then our function f can be written as: f( g(k) ) or f(5k) (We substituted x for g(k) )

      if f(x) = 5x, by substituting x for g(k), this becomes:

      f( g(x) ) = 5g(x) ---> f( 4k ) = 5(4k) = 20k

      This also means that our composite function changes value depending on the value of k.

      Conclusion: g(k) becomes input for function f.

      (8 votes)

  • awesomeness.RM

    8 years agoPosted 8 years ago. Direct link to awesomeness.RM's post “Can someone please simpli...”

    Can someone please simplify all of this for me cause i am so confused!

    (2 votes)

    • Kim Seidel

      8 years agoPosted 8 years ago. Direct link to Kim Seidel's post “Sometimes it's useful to ...”

      Sometimes it's useful to look at a different point of view. Try this site. Then come back and try this video again. http://www.mathsisfun.com/sets/functions-composition.html

      (6 votes)

  • Jennifer Laessig

    7 years agoPosted 7 years ago. Direct link to Jennifer Laessig's post “If f(x)=(1/x) and (f/g)(x...”

    If f(x)=(1/x) and (f/g)(x)=((x+4)/(x^2+2x)), what is the function g?

    (4 votes)

    • Kim Seidel

      7 years agoPosted 7 years ago. Direct link to Kim Seidel's post “Based upon the rules for ...”

      Based upon the rules for dividing with fractions: f/g = (1/x) / g = (1/x) * the reciprocal of g

      We need to work in reverse
      1) Factor denominator to undo the multiplication: (x+4)/(x^2+2x) = (x+4)/[x(x+2)]
      We can see there is a factor of X in the denominator. This would have been from multiplying 1/x * the reciprocal of g.
      2) Separate the factor 1/x: (1/x) * (x+4)/(x+2)
      This tells us the reciprocal of g = (x+4)/(x+2)

      3) Flip it to find g: g(x) = (x+2)/(x+4)

      Hope this helps.

      (2 votes)

  • x.asper

    8 months agoPosted 8 months ago. Direct link to x.asper's post “How do we know that g = 3...”

    How do we know that g = 3 in the first example study? I looked multiple times, and couldn't see where we found that value. Any help?

    (3 votes)

    • Kim Seidel

      8 months agoPosted 8 months ago. Direct link to Kim Seidel's post “I assume you are asking a...”

      I assume you are asking about the first example on the page. The initial problem statement gives you the equations for f(x) and g(x). It then asks you to find f(g(3)).

      g(3) is part of what the problem is asking you to find. It doesn't say that g=3. It says uses the function g(x) with an input value of x=3.

      Hope this clarifies thing.

      (3 votes)

Composing functions (article) | Khan Academy (2024)

FAQs

What are composing functions? ›

In mathematics, function composition is an operation ∘ that takes two functions f and g, and produces a function h = g ∘ f such that h(x) = g(f(x)). In this operation, the function g is applied to the result of applying the function f to x.

Can you actually learn math from Khan Academy? ›

I recommend you go through all of the Khan Academy courses fully, completing all of the modules between Algebra I and Calculus. This will take time, but it will lay the foundation you need to do well in Calculus and give you critical problem-solving skills to answer more complex problems Calculus might give you.

Is Khan Academy 100% free? ›

With our iOS and Android apps, you can learn anything on just-about any device! They're all 100% free, with no in-app purchases or subscriptions.

How to do f ∘ g? ›

In this case, if you had functions defined, f(x) and g(x), then to get (f ∘ g)(x) you would substitute g(x) for x inside of f(x). Another way to write it is f(g(x)).

What is a real world example of composing functions? ›

An example of a real-life composite function is where you're calculating the amount of money you'll have to spend on petrol. The first function will calculate the amount of petrol required by dividing the distance to be travelled (input variable) by the distance that the car can travel per litre(constant).

How to do composing functions? ›

Composition of Functions
  1. rewrite f • g as f(g(x));
  2. replace g(x) with the function that it represents;
  3. evaluate f by replacing every x with the function that g(x) represents; and.
  4. finally, if given a numerical value of x, evaluate the new function at this value by replacing all remaining x with the given value.

Is Khan Academy struggling? ›

As a non-profit, Khan Academy was already struggling to manage their costs. Now, with COVID-19, the struggle has become worse. Luckily, the Bank of America has stepped up to support the global learning service and combat the financial problems which Khan Academy has been facing.

What is better than Khan Academy for math? ›

IXL is a good option for students who are looking for a self-paced learning platform. It offers a wide range of practice problems in math, science, social studies, and language arts. Time4Learning is a good option for students who are looking for a comprehensive online learning program.

Is Khan Academy good or bad? ›

Overall, Khan Academy is a great resource for students who want to learn more about a certain subject, but it is far from an ideal learning environment for those attending formal classes. It fails to provide an adequate learning experience for students and often does not align with the curriculum.

Does Bill Gates fund Khan Academy? ›

The Bill & Melinda Gates Foundation has donated $1.5 million to Khan Academy.

Is Khan Academy no longer free? ›

It's all free for learners and teachers.

Does Khan Academy actually need money? ›

Khan Academy materials are available for free at www.khanacademy.org. The organization is supported through the generosity of donors and grants. We believe that everyone should have the right to access a world-class education for free.

What is fog in math? ›

The composite function is denoted by (f o g)(x), which is read as “f composed with g of x”. The idea is that we first apply g to the input x, and then apply f to the output of g. So, (f o g)(x) = f(g(x)).

What does ∘ mean in math? ›

The open circle symbol ∘ is called the composition operator. We use this operator mainly when we wish to emphasize the relationship between the functions themselves without referring to any particular input value.

What does g∘ f mean? ›

Composite Functions Definition

Let f : A → B and g : B → C be two functions. Then the composition of f and g, denoted by g ∘ f, is defined as the function g ∘ f : A → C given by g ∘ f (x) = g(f (x)), ∀ x ∈ A. The below figure shows the representation of composite functions.

What is composing functions in functional programming? ›

In functional programming, function composition is a powerful technique that allows developers to combine multiple functions into a single function. This compositional approach promotes code reuse, modularity, and readability. In JavaScript, the compose function plays a central role in enabling function composition.

What is composition of functions in English? ›

A composition of functions is written as f(g(x)) or g(f(x)) dependent on which function is composed of the other. We can also use other letters to notate the functions. For example if the problem identified h(x) as a function, we could write g(h(x)) which would notate inputting the h(x) function into g(x).

What is the difference between combining and composing functions? ›

While the arithmetic combinations of functions are straightforward and fairly easy, there is another type of combination called a composition. A composition of functions is the applying of one function to another function. The symbol of composition of functions is a small circle between the function names.

References

Top Articles
Latest Posts
Article information

Author: Kerri Lueilwitz

Last Updated:

Views: 5843

Rating: 4.7 / 5 (67 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Kerri Lueilwitz

Birthday: 1992-10-31

Address: Suite 878 3699 Chantelle Roads, Colebury, NC 68599

Phone: +6111989609516

Job: Chief Farming Manager

Hobby: Mycology, Stone skipping, Dowsing, Whittling, Taxidermy, Sand art, Roller skating

Introduction: My name is Kerri Lueilwitz, I am a courageous, gentle, quaint, thankful, outstanding, brave, vast person who loves writing and wants to share my knowledge and understanding with you.