Find \(f \circ g\) and \(g \circ f\) for \(f(x)=x+1\) and \(g(x)=\sin x\)
📺 Video Explanation
📝 Question
Let functions \(f:\mathbb{R}\to\mathbb{R}\) and \(g:\mathbb{R}\to\mathbb{R}\) be defined as:
\[ f(x)=x+1,\qquad g(x)=\sin x \]
Find:
- \((f\circ g)(x)\)
- \((g\circ f)(x)\)
✅ Solution
🔹 Find \((f\circ g)(x)\)
By definition:
\[ (f\circ g)(x)=f(g(x)) \]
Substitute \(g(x)=\sin x\):
\[ (f\circ g)(x)=f(\sin x) \]
Since:
\[ f(x)=x+1 \]
So:
\[ (f\circ g)(x)=\sin x+1 \]
Therefore:
\[ \boxed{(f\circ g)(x)=\sin x+1} \]
🔹 Find \((g\circ f)(x)\)
By definition:
\[ (g\circ f)(x)=g(f(x)) \]
Substitute \(f(x)=x+1\):
\[ (g\circ f)(x)=g(x+1) \]
Since:
\[ g(x)=\sin x \]
So:
\[ (g\circ f)(x)=\sin(x+1) \]
Therefore:
\[ \boxed{(g\circ f)(x)=\sin(x+1)} \]
🎯 Final Answer
\[ \boxed{(f\circ g)(x)=\sin x+1} \]
\[ \boxed{(g\circ f)(x)=\sin(x+1)} \]
Hence, both are defined for all real numbers and:
\[ \boxed{f\circ g \ne g\circ f} \]
🚀 Exam Shortcut
- For \(f\circ g\): put \(\sin x\) into \(x+1\)
- For \(g\circ f\): put \(x+1\) into sine
- Order matters in composition