Calculus Examples

Find the Derivative Using Chain Rule - d/dx J_j(theta)=-y^(j) log of sigma(x^(j)*theta)-(1-y^(j)) log of 1-sigma(x^(j)*theta)
Step 1
By the Sum Rule, the derivative of with respect to is .
Step 2
Evaluate .
Tap for more steps...
Step 2.1
Since is constant with respect to , the derivative of with respect to is .
Step 2.2
Differentiate using the Power Rule which states that is where .
Step 3
Evaluate .
Tap for more steps...
Step 3.1
Since is constant with respect to , the derivative of with respect to is .
Step 3.2
Differentiate using the chain rule, which states that is where and .
Tap for more steps...
Step 3.2.1
To apply the Chain Rule, set as .
Step 3.2.2
The derivative of with respect to is .
Step 3.3
By the Sum Rule, the derivative of with respect to is .
Step 3.4
Since is constant with respect to , the derivative of with respect to is .
Step 3.5
Since is constant with respect to , the derivative of with respect to is .
Step 3.6
Differentiate using the Power Rule which states that is where .
Step 3.7
Subtract from .
Step 3.8
Combine and .
Step 3.9
Combine and .
Step 3.10
Combine and .
Step 3.11
Combine and .
Step 3.12
Multiply by .
Step 3.13
Multiply by .
Step 4
Simplify.
Tap for more steps...
Step 4.1
Apply the distributive property.
Step 4.2
Multiply by .
Step 4.3
Reorder terms.