Find \(gof\) and \( fog,\) if \( f : R → R \) and \(g: R → R\) are given by \(f(x) =\) cos \(x\) and \( g(x) = 3x^2.\) Show that \(gof \ne fog.\)
CBSE Class 12 Maths · Relations and Functions
CBSE Class 12 Maths · Relations and Functions
Think of two machines on a conveyor belt. One machine squares your number and triples it, the other takes the cosine. Feeding something into machine one first, then machine two, gives a different result than feeding it the other way around. The order you use the machines truly matters. Here, \( f(x) = \cos x \) and \( g(x) = 3x^2 \) are our two machines, and swapping their order changes the final output entirely.
Answer: \( (gof)(x) = 3\cos^2 x \) and \( (fog)(x) = \cos(3x^2) \). Since \( (gof)(0) = 3 \) but \( (fog)(0) = 1 \), we have \( gof \ne fog \).
The composition of two functions is a way of applying one function to the result of another. If \( f : R \to R \) and \( g : R \to R \), then the composition \( gof \) means we first apply \( f \) and then apply \( g \) to that output. Symbolically, \( (gof)(x) = g(f(x)) \). Similarly, \( (fog)(x) = f(g(x)) \) means we first apply \( g \) and then apply \( f \). A key point is that the order matters: composition of functions is generally NOT commutative, meaning \( gof \) and \( fog \) usually give different functions. To show two functions are unequal, it is enough to find one value of \( x \) at which they give different outputs.
\( (gof)(x) = g(f(x)) \) and \( (fog)(x) = f(g(x)) \)
\( (gof)(x) = 3\cos^2 x \) and \( (fog)(x) = \cos(3x^2) \). Since \( (gof)(0) = 3 \) but \( (fog)(0) = 1 \), we have \( gof \ne fog \).
A common mistake is confusing the order of composition, for example writing \( (gof)(x) = \cos(3x^2) \) instead of \( 3\cos^2 x \). Remember that in \( gof \), the function nearest to \( x \) (that is, \( f \)) is applied first, and its output is fed into \( g \).
\( (gof)(x) = 3\cos^2 x \) and \( (fog)(x) = \cos(3x^2) \). Since \( (gof)(0) = 3 \) but \( (fog)(0) = 1 \), we have \( gof \ne fog \).
One common mistake: Students often confuse the order in \( gof \) and \( fog \) — remember that in \( (gof)(x) \), the function written on the right (\( f \)) is applied first, not \( g \).
Answer: \( (gof)(x) = 3\cos^2 x \) and \( (fog)(x) = \cos(3x^2) \). Since \( (gof)(0) = 3 \) but \( (fog)(0) = 1 \), we have \( gof \ne fog \).
Question: Find \( gof \) and \( fog \) if \( f : \mathbb{R} \to \mathbb{R} \) and \( g : \mathbb{R} \to \mathbb{R} \) are given by \( f(x) = \sin x \) and \( g(x) = x^2 + 1 \). Show that \( gof \ne fog \).
Solution: We are given \( f(x) = \sin x \) and \( g(x) = x^2 + 1 \). Step 1: Find \( gof \). By definition, \( gof(x) = g(f(x)) \). Substituting \( f(x) = \sin x \) into \( g \): \[ gof(x) = g(\sin x) = (\sin x)^2 + 1 = \sin^2 x + 1 \] Step 2: Find \( fog \). By definition, \( fog(x) = f(g(x)) \). Substituting \( g(x) = x^2 + 1 \) into \( f \): \[ fog(x) = f(x^2 + 1) = \sin(x^2 + 1) \] Step 3: Compare \( gof \) and \( fog \). We have \( gof(x) = \sin^2 x + 1 \) and \( fog(x) = \sin(x^2 + 1) \). To see they differ, take \( x = 0 \): \( gof(0) = \sin^2(0) + 1 = 0 + 1 = 1 \) \( fog(0) = \sin(0^2 + 1) = \sin(1) \approx 0.841 \) Since \( 1 \ne \sin(1) \), the two compositions are not equal. Hence, \( gof \ne fog \).
Answer: \( gof(x) = \sin^2 x + 1 \), \( fog(x) = \sin(x^2 + 1) \), and \( gof \ne fog \).
Question: Let \( f : \mathbb{R} \to \mathbb{R} \) and \( g : \mathbb{R} \to \mathbb{R} \) be defined by \( f(x) = 2x + 3 \) and \( g(x) = x^2 - 1 \). Find \( gof \) and \( fog \) and show that \( gof \ne fog \).
Solution: We are given \( f(x) = 2x + 3 \) and \( g(x) = x^2 - 1 \). Step 1: Find \( gof \). By definition, \( gof(x) = g(f(x)) \). Substituting \( f(x) = 2x + 3 \) into \( g \): \[ gof(x) = g(2x + 3) = (2x + 3)^2 - 1 \] Expanding: \[ gof(x) = 4x^2 + 12x + 9 - 1 = 4x^2 + 12x + 8 \] Step 2: Find \( fog \). By definition, \( fog(x) = f(g(x)) \). Substituting \( g(x) = x^2 - 1 \) into \( f \): \[ fog(x) = f(x^2 - 1) = 2(x^2 - 1) + 3 = 2x^2 - 2 + 3 = 2x^2 + 1 \] Step 3: Compare \( gof \) and \( fog \). We have \( gof(x) = 4x^2 + 12x + 8 \) and \( fog(x) = 2x^2 + 1 \). These are clearly different polynomial expressions. To confirm, take \( x = 1 \): \( gof(1) = 4(1)^2 + 12(1) + 8 = 4 + 12 + 8 = 24 \) \( fog(1) = 2(1)^2 + 1 = 2 + 1 = 3 \) Since \( 24 \ne 3 \), we conclude that \( gof \ne fog \).
Answer: \( gof(x) = 4x^2 + 12x + 8 \), \( fog(x) = 2x^2 + 1 \), and \( gof \ne fog \).
Question: Let f : R → R and g : R → R be defined by f(x) = sin x and g(x) = 2x^2. Find gof and fog. Show that gof ≠ fog.
Answer: \((gof)(x) = 2\sin^2 x\) and \((fog)(x) = \sin(2x^2)\). Since \((gof)\left(\frac{\pi}{2}\right) = 2\) but \((fog)\left(\frac{\pi}{2}\right) = \sin\left(\frac{\pi^2}{2}\right) \ne 2\), we have \(gof \ne fog\).