• Nakafa

    Nakafa

    Learn free and with quality.
Subject
    • Grade 10
    • Grade 11
    • Grade 12
Exercises
Holy
  • Quran
Articles
  • Politics
  • Community
  • About

Command Palette

Search for a command to run...

Function Composition and Inverse Function

Addition and Subtraction of Functions

Combining Functions

Imagine you have two function machines, let's call them machine fff and machine ggg. Each machine has its own rules, which are its function (f(x)f(x)f(x) and g(x)g(x)g(x)) and the raw materials it can process (its domain, DfD_fDf​ and DgD_gDg​). We can combine these two machines to create a new machine using addition or subtraction operations.

Function Addition Visualization
Observe how the lines f(x)=xf(x)=xf(x)=x and g(x)=2g(x)=2g(x)=2 are added to become (f+g)(x)=x+2(f+g)(x)=x+2(f+g)(x)=x+2.

Addition of Two Functions

If we want to add function fff and function ggg, we simply add the results from each function for the same value of xxx. The result is a new function we call (f+g)(f+g)(f+g).

(f+g)(x)=f(x)+g(x)(f+g)(x) = f(x) + g(x)(f+g)(x)=f(x)+g(x)

Important note: The combined machine (f+g)(f+g)(f+g) can only process raw materials (values of xxx) that can be processed by both original machines, fff and ggg. So, the domain (domain of origin) of the function (f+g)(f+g)(f+g) is the intersection of the domain of fff and the domain of ggg.

Df+g=Df∩DgD_{f+g} = D_f \cap D_gDf+g​=Df​∩Dg​

This means that xxx must be a member of DfD_fDf​ AND also a member of DgD_gDg​.

Example of Addition

Suppose we have two functions:

  1. f(x)=x2f(x) = x^2f(x)=x2, with domain Df={x∣x∈R}D_f = \{x | x \in \mathbb{R}\}Df​={x∣x∈R} (all real numbers).
  2. g(x)=x+2g(x) = \sqrt{x+2}g(x)=x+2​, with domain Dg={x∣x≥−2,x∈R}D_g = \{x | x \ge -2, x \in \mathbb{R}\}Dg​={x∣x≥−2,x∈R} (all real numbers greater than or equal to -2, because the square root cannot be negative).

Step 1: Determine the resulting function from addition

(f+g)(x)=f(x)+g(x)=x2+x+2(f+g)(x) = f(x) + g(x) = x^2 + \sqrt{x+2}(f+g)(x)=f(x)+g(x)=x2+x+2​

Step 2: Determine the domain of the resulting function

We find the intersection of DfD_fDf​ and DgD_gDg​:

Df+g=Df∩Dg={x∣x∈R}∩{x∣x≥−2,x∈R}D_{f+g} = D_f \cap D_g = \{x | x \in \mathbb{R}\} \cap \{x | x \ge -2, x \in \mathbb{R}\}Df+g​=Df​∩Dg​={x∣x∈R}∩{x∣x≥−2,x∈R}
Df+g={x∣x≥−2,x∈R}D_{f+g} = \{x | x \ge -2, x \in \mathbb{R}\}Df+g​={x∣x≥−2,x∈R}

So, the resulting function from addition is (f+g)(x)=x2+x+2(f+g)(x) = x^2 + \sqrt{x+2}(f+g)(x)=x2+x+2​ with domain {x∣x≥−2,x∈R}\{x | x \ge -2, x \in \mathbb{R}\}{x∣x≥−2,x∈R}.

Subtraction of Two Functions

The process is similar to addition. To subtract function ggg from function fff, we subtract the result of g(x)g(x)g(x) from f(x)f(x)f(x) for the same value of xxx. The result is a new function (f−g)(f-g)(f−g).

(f−g)(x)=f(x)−g(x)(f-g)(x) = f(x) - g(x)(f−g)(x)=f(x)−g(x)

Its domain is also the same as for addition, namely the intersection of the domain of fff and the domain of ggg. Why? Because again, the value of xxx must be processable by both initial functions before it can be subtracted.

Df−g=Df∩DgD_{f-g} = D_f \cap D_gDf−g​=Df​∩Dg​

Example of Subtraction

We use the same functions as in the addition example:

  1. f(x)=x2f(x) = x^2f(x)=x2, Df={x∣x∈R}D_f = \{x | x \in \mathbb{R}\}Df​={x∣x∈R}
  2. g(x)=x+2g(x) = \sqrt{x+2}g(x)=x+2​, Dg={x∣x≥−2,x∈R}D_g = \{x | x \ge -2, x \in \mathbb{R}\}Dg​={x∣x≥−2,x∈R}

Step 1: Determine the resulting function from subtraction

(f−g)(x)=f(x)−g(x)=x2−x+2(f-g)(x) = f(x) - g(x) = x^2 - \sqrt{x+2}(f−g)(x)=f(x)−g(x)=x2−x+2​

Step 2: Determine the domain of the resulting function Its domain is the same as the domain of the addition result because the intersection rule is the same:

Df−g=Df∩Dg={x∣x≥−2,x∈R}D_{f-g} = D_f \cap D_g = \{x | x \ge -2, x \in \mathbb{R}\}Df−g​=Df​∩Dg​={x∣x≥−2,x∈R}

So, the resulting function from subtraction is (f−g)(x)=x2−x+2(f-g)(x) = x^2 - \sqrt{x+2}(f−g)(x)=x2−x+2​ with domain {x∣x≥−2,x∈R}\{x | x \ge -2, x \in \mathbb{R}\}{x∣x≥−2,x∈R}.

Practice Problems

Given the functions f(x)=2x−1f(x) = 2x - 1f(x)=2x−1 with Df={x∣x∈R}D_f = \{x | x \in \mathbb{R}\}Df​={x∣x∈R} and function g(x)=x2+3g(x) = x^2 + 3g(x)=x2+3 with Dg={x∣x∈R}D_g = \{x | x \in \mathbb{R}\}Dg​={x∣x∈R}.

  1. Determine (f+g)(x)(f+g)(x)(f+g)(x) and its domain Df+gD_{f+g}Df+g​.
  2. Determine (f−g)(x)(f-g)(x)(f−g)(x) and its domain Df−gD_{f-g}Df−g​.
  3. Calculate the value of (f+g)(2)(f+g)(2)(f+g)(2).
  4. Calculate the value of (f−g)(−1)(f-g)(-1)(f−g)(−1).

Answer Key

  1. Finding (f+g)(x)(f+g)(x)(f+g)(x):

    (f+g)(x)=f(x)+g(x)(f+g)(x) = f(x) + g(x)(f+g)(x)=f(x)+g(x)
    =(2x−1)+(x2+3)= (2x - 1) + (x^2 + 3)=(2x−1)+(x2+3)
    =x2+2x+2= x^2 + 2x + 2=x2+2x+2

    Finding Domain Df+gD_{f+g}Df+g​:

    Df+g=Df∩DgD_{f+g} = D_f \cap D_gDf+g​=Df​∩Dg​
    ={x∣x∈R}∩{x∣x∈R}= \{x | x \in \mathbb{R}\} \cap \{x | x \in \mathbb{R}\}={x∣x∈R}∩{x∣x∈R}
    ={x∣x∈R}= \{x | x \in \mathbb{R}\}={x∣x∈R}

    So, (f+g)(x)=x2+2x+2(f+g)(x) = x^2 + 2x + 2(f+g)(x)=x2+2x+2 with domain all real numbers.

  2. Finding (f−g)(x)(f-g)(x)(f−g)(x):

    (f−g)(x)=f(x)−g(x)(f-g)(x) = f(x) - g(x)(f−g)(x)=f(x)−g(x)
    =(2x−1)−(x2+3)= (2x - 1) - (x^2 + 3)=(2x−1)−(x2+3)
    =2x−1−x2−3= 2x - 1 - x^2 - 3=2x−1−x2−3
    =−x2+2x−4= -x^2 + 2x - 4=−x2+2x−4

    Finding Domain Df−gD_{f-g}Df−g​:

    Df−g=Df∩DgD_{f-g} = D_f \cap D_gDf−g​=Df​∩Dg​
    ={x∣x∈R}∩{x∣x∈R}= \{x | x \in \mathbb{R}\} \cap \{x | x \in \mathbb{R}\}={x∣x∈R}∩{x∣x∈R}
    ={x∣x∈R}= \{x | x \in \mathbb{R}\}={x∣x∈R}

    So, (f−g)(x)=−x2+2x−4(f-g)(x) = -x^2 + 2x - 4(f−g)(x)=−x2+2x−4 with domain all real numbers.

  3. Calculating (f+g)(2)(f+g)(2)(f+g)(2):

    We use the result from number 1: (f+g)(x)=x2+2x+2(f+g)(x) = x^2 + 2x + 2(f+g)(x)=x2+2x+2

    (f+g)(2)=(2)2+2(2)+2(f+g)(2) = (2)^2 + 2(2) + 2(f+g)(2)=(2)2+2(2)+2
    =4+4+2= 4 + 4 + 2=4+4+2
    =10= 10=10
  4. Calculating (f−g)(−1)(f-g)(-1)(f−g)(−1):

    We use the result from number 2: (f−g)(x)=−x2+2x−4(f-g)(x) = -x^2 + 2x - 4(f−g)(x)=−x2+2x−4

    (f−g)(−1)=−(−1)2+2(−1)−4(f-g)(-1) = -(-1)^2 + 2(-1) - 4(f−g)(−1)=−(−1)2+2(−1)−4
    =−(1)−2−4= -(1) - 2 - 4=−(1)−2−4
    =−7= -7=−7
Previous

Domain, Codomain, and Range

Next

Multiplication and Division of Functions

  • Addition and Subtraction of FunctionsLearn how to add and subtract functions step-by-step with domain intersection rules. Master function operations through clear examples and practice problems.
On this page
  • Combining Functions
  • Addition of Two Functions
    • Example of Addition
  • Subtraction of Two Functions
    • Example of Subtraction
  • Practice Problems
    • Answer Key
  • Comments
  • Report
  • Source code