SOLVER7 Study. Nothing Else.
Chapter 1 Examples Q16

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

Solution

👶 Simple Explanation

Simple Explanation

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 \).

📖 Composition of Functions: Finding gof and fog

Detailed Explanation

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.

Formula Used

\( (gof)(x) = g(f(x)) \) and \( (fog)(x) = f(g(x)) \)

Solution

  1. Step 1: Write down the given functions. We have \( f(x) = \cos x \) and \( g(x) = 3x^2 \), where both \( f \) and \( g \) map \( R \) to \( R \).
  2. Step 2: Find \( gof \). By definition, \( (gof)(x) = g(f(x)) \). Since \( f(x) = \cos x \), we substitute \( \cos x \) into \( g \). Because \( g(t) = 3t^2 \), replacing \( t \) with \( \cos x \) gives \[ (gof)(x) = g(\cos x) = 3(\cos x)^2 = 3\cos^2 x. \]
  3. Step 3: Find \( fog \). By definition, \( (fog)(x) = f(g(x)) \). Since \( g(x) = 3x^2 \), we substitute \( 3x^2 \) into \( f \). Because \( f(t) = \cos t \), replacing \( t \) with \( 3x^2 \) gives \[ (fog)(x) = f(3x^2) = \cos(3x^2). \]
  4. Step 4: Compare the two results. We obtained \( (gof)(x) = 3\cos^2 x \) and \( (fog)(x) = \cos(3x^2) \). These are clearly different expressions. To prove they are unequal, pick a convenient value of \( x \).
  5. Step 5: Test a value. Take \( x = 0 \). Then \[ (gof)(0) = 3\cos^2 0 = 3(1)^2 = 3. \] Also \[ (fog)(0) = \cos(3 \cdot 0^2) = \cos 0 = 1. \] Since \( 3 \ne 1 \), the two functions differ at \( x = 0 \).
  6. Step 6: Conclude. Because \( (gof)(0) \ne (fog)(0) \), the functions \( gof \) and \( fog \) are not equal. This confirms that composition of functions is not commutative in general.

Final 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 \).

Common Mistake

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 \).

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Identify the given functions: \( f(x) = \cos x \) and \( g(x) = 3x^2 \), both mapping \( \mathbb{R} \to \mathbb{R} \). — Reason: Clearly stating both functions prevents confusion when substituting one into the other.
  2. Step 2: To find \( (gof)(x) \), apply \( f \) first, then feed that result into \( g \). The output of \( f \) is \( \cos x \), so we compute \( g(\cos x) \). — Reason: By definition, \( (gof)(x) = g(f(x)) \), so \( f(x) \) becomes the input to \( g \).
  3. Step 3: Substitute \( \cos x \) in place of the variable in \( g(t) = 3t^2 \): \[ (gof)(x) = 3(\cos x)^2 = 3\cos^2 x. \] — Reason: We replace every occurrence of \( t \) in \( g(t) = 3t^2 \) with \( \cos x \) to get the composed function.
  4. Step 4: To find \( (fog)(x) \), apply \( g \) first, then feed that result into \( f \). The output of \( g \) is \( 3x^2 \), so we compute \( f(3x^2) \). — Reason: By definition, \( (fog)(x) = f(g(x)) \), so \( g(x) \) becomes the input to \( f \).
  5. Step 5: Substitute \( 3x^2 \) in place of the variable in \( f(t) = \cos t \): \[ (fog)(x) = \cos(3x^2). \] — Reason: We replace every occurrence of \( t \) in \( f(t) = \cos t \) with \( 3x^2 \) to get the second composed function.
  6. Step 6: Compare the two compositions by evaluating at \( x = 0 \). For \( gof \): \[ (gof)(0) = 3\cos^2(0) = 3 \times 1 = 3. \] For \( fog \): \[ (fog)(0) = \cos(3 \times 0^2) = \cos(0) = 1. \] Since \( 3 \ne 1 \), the two compositions produce different outputs at \( x = 0 \). — Reason: To prove two functions are unequal, it is sufficient to exhibit even one value of \( x \) where their outputs differ.

Final 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 \).

Common Mistake

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 \).

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Given: \( f(x) = \cos x \), \( g(x) = 3x^2 \), both mapping \( \mathbb{R} \to \mathbb{R} \).
  2. Step 2: Compute \( (gof)(x) = g(f(x)) = g(\cos x) \): \[ (gof)(x) = 3(\cos x)^2 = 3\cos^2 x \]
  3. Step 3: Compute \( (fog)(x) = f(g(x)) = f(3x^2) \): \[ (fog)(x) = \cos(3x^2) \]
  4. Step 4: At \( x = 0 \): \( (gof)(0) = 3\cos^2 0 = 3 \) and \( (fog)(0) = \cos(0) = 1 \). Since \( 3 \ne 1 \), we have \( gof \ne fog \).

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 \).

➕ More Examples

More Examples

Example 1

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 \).

Example 2

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 \).

🎯 Try a Similar Question

Try a Similar Question

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.

Solution

  1. Step 1: Find gof: We have f(x) = \(\sin x\) and g(x) = \(2x^2\). The composite gof is defined as g applied to f(x). So: \[(gof)(x) = g(f(x)) = g(\sin x) = 2(\sin x)^2 = 2\sin^2 x\]
  2. Step 2: Find fog: The composite fog is defined as f applied to g(x). So: \[(fog)(x) = f(g(x)) = f(2x^2) = \sin(2x^2)\]
  3. Step 3: Compare gof and fog at a specific value: To show \(gof \ne fog\), we evaluate both at \(x = 0\). For gof at \(x = 0\): \[(gof)(0) = 2\sin^2(0) = 2 \times 0 = 0\] For fog at \(x = 0\): \[(fog)(0) = \sin(2 \times 0^2) = \sin(0) = 0\] Since both are equal at \(x = 0\), we try \(x = \frac{\pi}{2}\).
  4. Step 4: Evaluate at x = π/2: For gof at \(x = \frac{\pi}{2}\): \[(gof)\left(\frac{\pi}{2}\right) = 2\sin^2\left(\frac{\pi}{2}\right) = 2 \times 1^2 = 2\] For fog at \(x = \frac{\pi}{2}\): \[(fog)\left(\frac{\pi}{2}\right) = \sin\left(2 \times \left(\frac{\pi}{2}\right)^2\right) = \sin\left(\frac{\pi^2}{2}\right)\] Since \(\frac{\pi^2}{2} \approx 4.93\) radians, \(\sin\left(\frac{\pi^2}{2}\right) \ne 2\). Hence \((gof)\left(\frac{\pi}{2}\right) \ne (fog)\left(\frac{\pi}{2}\right)\).
  5. Step 5: Conclusion: 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 conclude that \(gof \ne 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\).

Everything you get with Solver7

More questions in Relations and Functions