Derivative of Composite Function

Click For Summary
SUMMARY

The discussion focuses on finding the derivative of the composite function \( h = f \circ g \) where \( f(x) \) and \( g(x) \) are piecewise functions. The derived function \( h(x) \) is defined as \( h(x) = \begin{cases} 4 + 3 \cos x &, x < 0 \\ \sin x &, x \geq 0 \end{cases} \). The direct differentiation yields \( h'(x) = \begin{cases} -3 \sin x &, x < 0 \\ \cos x &, x > 0 \end{cases} \). The chain rule is applied to confirm that \( h'(x) = f'(g(x)) \cdot g'(x) \) produces the same results as direct differentiation.

PREREQUISITES
  • Understanding of piecewise functions
  • Familiarity with the chain rule in calculus
  • Knowledge of trigonometric functions and their derivatives
  • Ability to differentiate composite functions
NEXT STEPS
  • Study the application of the chain rule in different contexts
  • Explore advanced differentiation techniques for piecewise functions
  • Learn about the properties of trigonometric derivatives
  • Practice problems involving composite functions and their derivatives
USEFUL FOR

Students studying calculus, particularly those focusing on derivatives of composite functions, and educators looking for examples of applying the chain rule in piecewise scenarios.

Kenji Liew
Messages
25
Reaction score
0

Homework Statement



\begin{equation}
f(x)=
\begin{cases}
5x+2 &, x \leq 1 \\
3x^2 &, 1<x<2\\
4-x &, x\geq 2
\end{cases}
\end{equation}

\begin{equation}
g(x)=
\begin{cases}
\frac{1}{5}(2+3 cos x) &, x <0 \\
4-sin x &, x \geq 0
\end{cases}
\end{equation}

Find h = f \circ g and then by using chain rule to find the derivative of f \circ g .

Homework Equations



\begin{equation}
h(x)=f\circ g =
\begin{cases}
4+3 cos x &, x <0 \\
sin x &, x \geq 0
\end{cases}
\end{equation}

The Attempt at a Solution


From h(x) = f \circ g above, I directly differentiate and I get the following
\begin{equation}
h'(x)=
\begin{cases}
-3 sin x &, x < 0 \\
cos x &, x > 0
\end{cases}
\end{equation}

If chain rule are requested in finding the derivative, I know the formula is h&#039;(x) = f&#039; (g(x)) \cdot g&#039;(x). Any idea to find the derivative using chain rule?

Thank you.
 
Physics news on Phys.org
Kenji Liew said:

Homework Statement



\begin{equation}
f(x)=
\begin{cases}
5x+2 &, x \leq 1 \\
3x^2 &, 1<x<2\\
4-x &, x\geq 2
\end{cases}
\end{equation}

\begin{equation}
g(x)=
\begin{cases}
\frac{1}{5}(2+3 cos x) &, x <0 \\
4-sin x &, x \geq 0
\end{cases}
\end{equation}

Find h = f \circ g and then by using chain rule to find the derivative of f \circ g .

Homework Equations



\begin{equation}
h(x)=f\circ g =
\begin{cases}
4+3 cos x &, x <0 \\
sin x &, x \geq 0
\end{cases}
\end{equation}

The Attempt at a Solution


From h(x) = f \circ g above, I directly differentiate and I get the following
\begin{equation}
h'(x)=
\begin{cases}
-3 sin x &, x < 0 \\
cos x &, x > 0
\end{cases}
\end{equation}

If chain rule are requested in finding the derivative, I know the formula is h&#039;(x) = f&#039; (g(x)) \cdot g&#039;(x). Any idea to find the derivative using chain rule?

Thank you.

It seems overly pedantic to do it explicitly with the chain rule, but if you must do so, just write h(x) as a two piece formula like this:

If x ≥ 0, f(x) = 4-x, g(x) = 4 - sin(x) and h=f\circ g
If x < 0 f(x) = 5x+2, g(x) = (1/5)(2+3cos(x)) and h=f\circ g
Then do the chain rule on each piece.
 
LCKurtz said:
It seems overly pedantic to do it explicitly with the chain rule, but if you must do so, just write h(x) as a two piece formula like this:

If x ≥ 0, f(x) = 4-x, g(x) = 4 - sin(x) and h=f\circ g
If x < 0 f(x) = 5x+2, g(x) = (1/5)(2+3cos(x)) and h=f\circ g
Then do the chain rule on each piece.

Thank you for the reply. I got the idea from it. This is because my lecturer want us to compare whether the answer obtained from directly differentiate h(x) is the same
as the answer obtained from the chain rule. :smile:
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 4 ·
Replies
4
Views
1K
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 12 ·
Replies
12
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
1
Views
2K