Derivative of |sinx|: Solving Homework Problem

  • Thread starter Thread starter PirateFan308
  • Start date Start date
  • Tags Tags
    Derivative
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
6 replies · 3K views
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:
[tex] \vert x \vert \equiv \left\lbrace\begin{array}{rl}<br /> x &, \ x \ge 0 \\<br /> <br /> -x &, \ x < 0<br /> \end{array}\right.[/tex]

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

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

If x<0, [itex](f°g)' = f'(g(x))g'(x) = (-1)(cos x) = -cos x[/itex]

Thanks for the hint!

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

Your function is:

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

So, what matters is the sign of sin(x), not the sign of x itself.
 
Last edited: