Derivative of |sinx|: Solving Homework Problem

  • Thread starter Thread starter PirateFan308
  • Start date Start date
  • Tags Tags
    Derivative
Click For Summary

Homework Help Overview

The discussion revolves around computing the derivative of the function |sin(x)|, focusing on its differentiability and the application of the chain rule in calculus.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants explore the piecewise nature of the absolute value function and its implications for differentiability. There are attempts to apply the chain rule, with some questioning the correct approach to handling the absolute value in the context of the sine function.

Discussion Status

Several hints and clarifications have been provided regarding the piecewise definition of |sin(x)| and its derivative. Participants are actively engaging with the problem, examining different interpretations of the function's behavior based on the sign of sin(x).

Contextual Notes

There is an emphasis on the non-differentiability of the function at certain points, particularly where sin(x) changes sign. Participants are also considering the implications of using the sign function and alternative representations of the absolute value.

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.
 
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:
[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:
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

[itex]|a|=\sqrt{a^2}[/itex]

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

ehild
 
Last edited:
Thanks!
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
Replies
2
Views
2K
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