Solveeit Logo

Question

Question: How do you use the chain rule to differentiate \(y={{\sin }^{3}}x+{{\cos }^{3}}x\)?...

How do you use the chain rule to differentiate y=sin3x+cos3xy={{\sin }^{3}}x+{{\cos }^{3}}x?

Explanation

Solution

In this question we have a composite function in the form f(x)=g(h(x))f\left( x \right)=g\left( h\left( x \right) \right) which has no direct formula for calculating the derivative therefore, we will use the chain rule on the function which is f(x)=g(h(x))h(x)f'\left( x \right)=g'\left( h\left( x \right) \right)h'\left( x \right). We have the expression in the form of addition of 22 terms both of which are in the form of g(h(x))g\left( h\left( x \right) \right). In both the terms we will consider g(x)=x3g\left( x \right)={{x}^{3}} and h(x)=sinxh\left( x \right)=\sin x and h(x)=cosxh\left( x \right)=\cos x respectively.

Complete step by step solution:
We have the expression given as:
y=sin3x+cos3x\Rightarrow y={{\sin }^{3}}x+{{\cos }^{3}}x
Since we have to find the derivative of the term, it can be written as:
y=ddx(sin3x+cos3x)\Rightarrow y'=\dfrac{d}{dx}\left( {{\sin }^{3}}x+{{\cos }^{3}}x \right)
On splitting the derivative, we get:
y=ddxsin3x+ddxcos3x(1)\Rightarrow y'=\dfrac{d}{dx}{{\sin }^{3}}x+\dfrac{d}{dx}{{\cos }^{3}}x\to \left( 1 \right)
Now since there is no direct formula for calculating the derivative of the given expression, we will use the chain rule which is f(x)=g(h(x))h(x)f'\left( x \right)=g'\left( h\left( x \right) \right)h'\left( x \right).
Consider the first part of the equation (1)\left( 1 \right):
ddxsin3x\Rightarrow \dfrac{d}{dx}{{\sin }^{3}}x
In this term, we have g(x)=x3g\left( x \right)={{x}^{3}} and h(x)=sinxh\left( x \right)=\sin x
We know that g(x)=d(x3)dx=3x2g'\left( x \right)=\dfrac{d\left( {{x}^{3}} \right)}{dx}=3{{x}^{2}}, and since h(x)=sinxh\left( x \right)=\sin x, we are using chain rule on both the terms, we will write it as:
3sin2x×h(x)\Rightarrow 3{{\sin }^{2}}x\times h'\left( x \right)
Now h(x)=sinxh\left( x \right)=\sin x
We know that h(x)=ddx(sinx)=cosxh'\left( x \right)=\dfrac{d}{dx}\left( \sin x \right)=\cos x therefore, on substituting, we get:
3sin2xcosx(2)\Rightarrow 3{{\sin }^{2}}x\cos x\to \left( 2 \right)
Consider the second part of the equation (1)\left( 1 \right):
ddxcos3x\Rightarrow \dfrac{d}{dx}{{\cos }^{3}}x
In this term, we have g(x)=x3g\left( x \right)={{x}^{3}} and h(x)=cosxh\left( x \right)=\cos x
We know that g(x)=d(x3)dx=3x2g'\left( x \right)=\dfrac{d\left( {{x}^{3}} \right)}{dx}=3{{x}^{2}}, and since h(x)=cosxh\left( x \right)=\cos x, we are using chain rule on both the terms, we will write it as:
3sin2x×h(x)\Rightarrow 3{{\sin }^{2}}x\times h'\left( x \right)
Now h(x)=sinxh\left( x \right)=\sin x
We know that h(x)=ddx(cosx)=sinxh'\left( x \right)=\dfrac{d}{dx}\left( \cos x \right)=-\sin x therefore, on substituting, we get:
3cos2x(sinx)\Rightarrow 3{{\cos }^{2}}x\left( -\sin x \right)
On simplifying, we get:
3cos2xsinx(3)\Rightarrow -3{{\cos }^{2}}x\sin x\to \left( 3 \right)
On combining equations (2)\left( 2 \right) and (3)\left( 3 \right), we get:
y=3sin2xcosx3cos2xsinx\Rightarrow y'=3{{\sin }^{2}}x\cos x-3{{\cos }^{2}}x\sin x
Now we can see that the term 3sinxcosx3\sin x\cos x is common in both the terms therefore, on taking it out as common, we get:
y=3sinxcosx(sinxcosx)\Rightarrow y'=3\sin x\cos x\left( \sin x-\cos x \right), which is the required solution.

Note: It is to be remembered that the chain rule is a different rule than the product and the quotient rule. Is to be remembered that there can be more than two functions in a composite function. The general rule to differentiate is by first solving the outer function and then moving to the inward functions.
It is to be also remembered that differentiation is the inverse of integration. If the integration of a term aa is bb, then the differentiation of the term bb will be aa and vice versa.