- #1
marellasunny
- 255
- 3
I use the general formula: if y=|f(x)| then y'=[itex]\frac{d|f(x)|}{dx}= \frac{f(x)*f'(x)}{|f(x)|}[/itex] to calculate the derivative of the piecewise function given below.
Given: Piecewise function
$$h(y)=\alpha(m_1 y+\frac{1}{2}(m_0 - m_1)(|y+1|-|y-1|))$$
My attempt at calculating the derivative:
$$\frac{\mathrm{d} h}{\mathrm{d} y}=\alpha m_1+\alpha 0.5(m_0-m_1)(\frac{y+1}{|y+1|}-\frac{y-1}{|y-1|})$$, is this right?
Given: Piecewise function
$$h(y)=\alpha(m_1 y+\frac{1}{2}(m_0 - m_1)(|y+1|-|y-1|))$$
My attempt at calculating the derivative:
$$\frac{\mathrm{d} h}{\mathrm{d} y}=\alpha m_1+\alpha 0.5(m_0-m_1)(\frac{y+1}{|y+1|}-\frac{y-1}{|y-1|})$$, is this right?
Last edited: