Understanding how to perform basic operations with functions, such as addition and subtraction, is essential in algebra. When adding or subtracting functions, the process mirrors that of combining polynomials. For instance, if we have two polynomials, we can combine like terms to simplify the expression. For example, if we add the polynomials \( f(x) = x^2 + 4 \) and \( g(x) = 5x + 7 \), we can express this as:
\[ f(x) + g(x) = x^2 + 5x + 11 \]
This can also be denoted using function notation as \( (f + g)(x) \). Similarly, subtraction can be represented as \( f(x) - g(x) \) or \( (f - g)(x) \). It is crucial to be aware of different notations that may appear in various contexts.
When determining the domain of the resulting function after addition or subtraction, it is important to identify the common values that both functions can accept. For example, if \( f(x) = \frac{x^2 + 1}{x} \) and \( g(x) = x^2 + x + 2 \), the domain of \( f \) is restricted because the denominator cannot be zero, leading to the condition \( x \neq 0 \). In contrast, \( g \) has a domain of all real numbers, \( (-\infty, \infty) \). Therefore, the domain of \( f + g \) is also restricted to \( x \neq 0 \).
In another example, consider \( g(x) = x^2 + x + 2 \) and \( h(x) = x + \sqrt{x - 8} \). To find \( g(x) - h(x) \), we distribute the negative sign and combine like terms:
\[ g(x) - h(x) = x^2 + x + 2 - x - \sqrt{x - 8} = x^2 + 2 - \sqrt{x - 8} \]
Here, the domain of \( h \) is restricted by the square root, requiring \( x - 8 \geq 0 \) or \( x \geq 8 \). Thus, the domain of \( g - h \) is also \( x \geq 8 \).
In summary, when adding or subtracting functions, it is essential to combine like terms and carefully analyze the domains of the individual functions to determine the domain of the resulting function. This understanding is foundational for further studies in algebra and calculus.