Derivative of |sinx|: Solving Homework Problem

  • Thread starter Thread starter PirateFan308
  • Start date Start date
  • Tags Tags
    Derivative
Click For Summary
To compute the derivative of |sin(x)|, the function must be expressed piecewise based on the sign of sin(x). The derivative is determined using the chain rule, leading to two cases: for sin(x) ≥ 0, the derivative is cos(x), and for sin(x) < 0, it is -cos(x). The derivative does not exist at points where sin(x) equals zero. Additionally, the sign function can be utilized to express the derivative more succinctly. Understanding the behavior of sin(x) is crucial for accurately determining the derivative of |sin(x)|.
PirateFan308
Messages
91
Reaction score
0

Homework Statement


Compute the derivatives of the following (where they are differentiable):
h) |sinx|


Homework Equations


Chain rule: (f°g)'(c) = f'(g(c))(g'(c))


The Attempt at a Solution


Let f=|x| and g=sin x
(f°g)'(c) = f'(g(x))g'(c) = f'(sin x)(cos x)
But I don't know what (|x|)' is. It's +1 when x>0 and -1 when x<0 and it's not differentiable at 0, but then there is no x to plug g into, and looking at the graph, I don't think this would be right. Thanks!
 
Physics news on Phys.org
Hint:
<br /> \vert x \vert \equiv \left\lbrace\begin{array}{rl}<br /> x &amp;, \ x \ge 0 \\<br /> <br /> -x &amp;, \ x &lt; 0<br /> \end{array}\right.<br />

Therefore:
<br /> \frac{d}{d x} \vert x \vert = \left\lbrace \begin{array}{rl}<br /> 1 &amp;, \ x &gt; 0 \\<br /> <br /> -1 &amp;, \ x &lt; 0<br /> \end{array}\right. \equiv \mathrm{sgn}(x)<br />
The derivative does not exist at x = 0.

Then, use the chain rule.
 
express the function piecewise to remove the absolute value sign.
eg |x| = {x: x>0 and -x: x<0 and 0: x=0}

[edit]Dickfore beat me to it
 
Dickfore said:
Hint:
<br /> Therefore:<br /> &lt;br /&gt; \frac{d}{d x} \vert x \vert = \left\lbrace \begin{array}{rl}&lt;br /&gt; 1 &amp;amp;, \ x &amp;gt; 0 \\&lt;br /&gt; &lt;br /&gt; -1 &amp;amp;, \ x &amp;lt; 0&lt;br /&gt; \end{array}\right. \equiv \mathrm{sgn}(x)&lt;br /&gt;<br /> The derivative does not exist at x = 0.<br /> <br /> Then, use the chain rule.
<br /> <br /> So if x&gt;0, (f°g)&amp;#039; = f&amp;#039;(g(x))g&amp;#039;(x) = (1)(cos x) = cos x<br /> <br /> If x&lt;0, (f°g)&amp;#039; = f&amp;#039;(g(x))g&amp;#039;(x) = (-1)(cos x) = -cos x<br /> <br /> Thanks for the hint!
 
PirateFan308 said:
So if x>0, (f°g)&#039; = f&#039;(g(x))g&#039;(x) = (1)(cos x) = cos x

If x<0, (f°g)&#039; = f&#039;(g(x))g&#039;(x) = (-1)(cos x) = -cos x

Thanks for the hint!

What you have is not correct. sin(x) may be negative when x > 0 .

Your function is:

\vert \sin(x) \vert \equiv \left\lbrace\begin{array}{rl} <br /> \sin(x) &amp;\text{if } \ \sin(x) \ge 0 \\ <br /> <br /> -\sin(x) &amp;\text{if } \ \sin(x) &lt; 0 <br /> \end{array}\right.

So, what matters is the sign of sin(x), not the sign of x itself.
 
Last edited:
You can use the "sign" function sign(a)=a/|a| (http://mathworld.wolfram.com/Sign.html) to express the derivative of |sinx|.

It is also possible to use the identity

|a|=\sqrt{a^2}

and determine the derivative of \sqrt{sin^2(x)}.

ehild
 
Last edited:
Thanks!
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
974
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
Replies
2
Views
1K
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K