Chain Rule Decomposer

Decompose composite functions and apply the chain rule: dy/dx = dy/du × du/dx

y = u²
where
u = 3x + 1
dy/dx = 2(3x+1)·3
Chain rule: differentiate the outer function, keep the inner, then multiply by the derivative of the inner function.