Let f(x)=|μμ−1−1x|1μ−1. If I want to get the derivative of this absolute value function, how would I go about doing this?
I tried using the fact that √x2=|x|, and applied the chain rule to obtain an answer as the following:
f′(x)=((√μμ−1−1x)2)−μ+2μ−1(μμ−1−1x)x2(μ−1)|μμ−1−1x|, where μ is just a constant such as μ=2,3,⋯,100.
The derivative I have works for μ=2, but does not work for other values.Is my algebra off or is there something else that I should note? Am I on the right path to getting f′(x)?
Answer
For μμ−1−1x>0⟺μμ−1>1x⟺x>1−1μ, f′(x)=ddx((μμ−1−1x)1μ−1)=1μ−1(μμ−1−1x)1μ−1−1⋅1x2
For x<1−1μ, f′(x)=ddx((−μμ−1+1x)1μ−1)=1μ−1(−μμ−1+1x)1μ−1−1⋅(−1x2)
For x=1−1μ, plug this value into each of the above derivatives. If they are the same, that is the derivative at this x. If they are different, then the derivative does not exist.
No comments:
Post a Comment