Calculus Examples

Use Logarithmic Differentiation to Find the Derivative y=x^2cos(x)
Step 1
Let , take the natural logarithm of both sides .
Step 2
Expand the right hand side.
Tap for more steps...
Step 2.1
Rewrite as .
Step 2.2
Expand by moving outside the logarithm.
Step 3
Differentiate the expression using the chain rule, keeping in mind that is a function of .
Tap for more steps...
Step 3.1
Differentiate the left hand side using the chain rule.
Step 3.2
Differentiate the right hand side.
Tap for more steps...
Step 3.2.1
Differentiate .
Step 3.2.2
By the Sum Rule, the derivative of with respect to is .
Step 3.2.3
Evaluate .
Tap for more steps...
Step 3.2.3.1
Since is constant with respect to , the derivative of with respect to is .
Step 3.2.3.2
The derivative of with respect to is .
Step 3.2.3.3
Combine and .
Step 3.2.4
Evaluate .
Tap for more steps...
Step 3.2.4.1
Differentiate using the chain rule, which states that is where and .
Tap for more steps...
Step 3.2.4.1.1
To apply the Chain Rule, set as .
Step 3.2.4.1.2
The derivative of with respect to is .
Step 3.2.4.1.3
Replace all occurrences of with .
Step 3.2.4.2
The derivative of with respect to is .
Step 3.2.4.3
Convert from to .
Step 3.2.5
Simplify.
Tap for more steps...
Step 3.2.5.1
Reorder terms.
Step 3.2.5.2
Simplify each term.
Tap for more steps...
Step 3.2.5.2.1
Rewrite in terms of sines and cosines.
Step 3.2.5.2.2
Combine and .
Step 3.2.5.3
Convert from to .
Step 4
Isolate and substitute the original function for in the right hand side.
Step 5
Simplify the right hand side.
Tap for more steps...
Step 5.1
Rewrite in terms of sines and cosines.
Step 5.2
Apply the distributive property.
Step 5.3
Cancel the common factor of .
Tap for more steps...
Step 5.3.1
Move the leading negative in into the numerator.
Step 5.3.2
Factor out of .
Step 5.3.3
Cancel the common factor.
Step 5.3.4
Rewrite the expression.
Step 5.4
Cancel the common factor of .
Tap for more steps...
Step 5.4.1
Factor out of .
Step 5.4.2
Cancel the common factor.
Step 5.4.3
Rewrite the expression.
Step 5.5
Reorder factors in .