Functions (evaluate/compose)

Math · Algebra II

Question 1 of 10

0

    Given , find .

    Decimals (0.75 or 0,75), fractions (3/4) and mixed numbers (1 1/2) are accepted. Do not use thousands separators.

    How to type your answer
    • Fractions: 3/4. Mixed numbers: 1 1/2.
    • Decimals with a point or a comma: 0.75 or 0,75.
    • Negative numbers start with a minus: -3/4.
    • Percentages need the % sign: 75%.

    Stuck? Read the explanation

    Unlocks at a streak of 5 correct answers in a row.

    Print a free worksheet (PDF)

    Embed this practice on your site or class page

    Paste this HTML into your page. Students practise right there; it is free and needs no account.

    Functions (evaluate/compose) explained

    A function is a rule that takes an input and produces exactly one output. Evaluating a function means substituting a value in for the input, and composing two functions means feeding the output of one function into the other. You can think of each function as a machine that does one job and passes the result along.

    Write f(3)f(3) as "the value of ff when xx is 3". Substitute the number everywhere xx appears, keeping brackets around negative numbers so that signs are not lost. For example, if f(x)=2x2f(x) = 2x^2, then f(−3)=2(−3)2=18f(-3) = 2(-3)^2 = 18. The answer is +18+18, not −18-18, because the square of a negative number is positive.

    For composition, f(g(x))f(g(x)) means: first work out g(x)g(x), then put that result into ff in place of xx. Always work from the inside out. The order matters, because f(g(x))f(g(x)) is usually different from g(f(x))g(f(x)). UK and US courses use the same notation, and some textbooks write (f∘g)(x)(f \circ g)(x) for the same idea.

    Worked example

    Let f(x)=3x−2f(x) = 3x - 2 and g(x)=x+4g(x) = x + 4. Find f(g(1))f(g(1)).

    1. Work out the inner function: g(1)=1+4=5g(1) = 1 + 4 = 5.
    2. Put that into ff: f(5)=3(5)−2=13f(5) = 3(5) - 2 = 13.

    So f(g(1))=13f(g(1)) = 13. Reversing the order gives g(f(1))=g(1)=5g(f(1)) = g(1) = 5, a different answer.

    A common mistake is working from the outside in, applying ff to xx first. This gives the wrong answer, so always start with the innermost function.

    What you will practise

    New numbers every time you practise. Levels: Easy, Medium, Hard. Each answer is followed by a worked explanation.

    Example questions

    • Easy

      If f(x) = 5x + 4, what is f(−5)?

    • Medium

      If f(x) = x + 1 and g(x) = x + 3, what is f(g(−6))?

    • Hard

      If f(x) = x − 6 and g(x) = 2x + 5, find the value of x for which f(g(x)) = −19.