# Nakafa Framework: LLM
URL: /en/subject/high-school/12/mathematics/derivative-function/chain-rule-in-derivative
Source: https://raw.githubusercontent.com/nakafaai/nakafa.com/refs/heads/main/packages/contents/subject/high-school/12/mathematics/derivative-function/chain-rule-in-derivative/en.mdx
Output docs content for large language models.
---
export const metadata = {
    title: "Chain Rule in Derivative",
    description: "Master the chain rule to differentiate composite functions. Learn step-by-step methods for nested functions with power and trigonometric examples.",
    authors: [{ name: "Nabil Akbarazzima Fatih" }],
    date: "05/26/2025",
    subject: "Derivative Functions",
};
## Understanding Composite Functions
Imagine you have a machine that transforms a number (the first function), and its result is immediately fed into another machine to be processed again (the second function). This process is called a **composite function**. Mathematically, if we have  as the **inner function** and  as the **outer function**, their composition is .
The chain rule is a method for finding the derivative of functions like this, where one function is "nested" inside another.
## The Chain Rule Theorem
To differentiate a composite function, we can't just differentiate it piece by piece. There's an elegant rule that connects the derivative of the outer function with the derivative of the inner function.
> If , then its derivative is the product of the derivative of the outer function with respect to the inner function and the derivative of the inner function itself.
Formally, if we let , then . Its derivative is defined as:
This formula is known as the **chain rule**. Essentially, we differentiate from the outermost "layer" to the innermost layer and then multiply the results.
## Applying the Chain Rule
Let's try applying this theorem to a few cases to get a better feel for it.
### Power Form Functions
Find the first derivative of .
**Solution:**
First, we need to break this function down into two parts: an outer function and an inner function.
-   **Inner function** () is the expression inside the parentheses: .
-   **Outer function** () is the power operation: .
Next, we find the derivative of each function:
-   Derivative of the inner function: .
-   Derivative of the outer function: .
Now, we can combine them using the chain rule:
    
    
Finally, we substitute  back in and simplify the expression:
    
    
### Trigonometric Functions
Find the first derivative of .
**Solution:**
We can rewrite this function as . This is a case where we need to apply the chain rule more than once because there are three layers of functions.
-   **Innermost function**: 
-   **Middle function**: 
-   **Outermost function**: 
Then, we differentiate each layer:
-   Derivative of the outermost function: 
-   Derivative of the middle function: 
-   Derivative of the innermost function: 
Combine them all using the chain rule:
    
    
Now, substitute  and  back in step-by-step to get the final result:
    
    
    
## Exercises
1.  Find the first derivative of .
2.  Find the first derivative of .
### Answer Key
1.  **Solution for **
    **Step 1: Identify the functions**
    -   Inner function: 
    -   Outer function: 
    **Step 2: Find the derivative of each**
    -   
    -   
    **Step 3: Combine with the chain rule**
    
        
        
    
    
    **Step 4: Don't forget to substitute back**
    
2.  **Solution for **
    This function is . We'll use the multi-layered chain rule.
    **Step 1: Identify the functions**
    -   Innermost function: 
    -   Middle function: 
    -   Outermost function: 
    **Step 2: Find the derivative of each**
    -   
    -   
    -   
    **Step 3: Combine with the chain rule**
    
        
        
    
    **Step 4: Substitute back and simplify**