Derivative of |sinx|: Solving Homework Problem

  • Thread starter PirateFan308
  • Start date
  • Tags
    Derivative
In summary, the student attempted to solve a homework problem involving derivatives of sin(x), but did not understand what (|x|)' was and could not find the derivative at 0. He was helped by a hint from the interviewer which explained that sin(x) may be negative when x > 0.
  • #1
PirateFan308
94
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
  • #2
Hint:
[tex]
\vert x \vert \equiv \left\lbrace\begin{array}{rl}
x &, \ x \ge 0 \\

-x &, \ x < 0
\end{array}\right.
[/tex]

Therefore:
[tex]
\frac{d}{d x} \vert x \vert = \left\lbrace \begin{array}{rl}
1 &, \ x > 0 \\

-1 &, \ x < 0
\end{array}\right. \equiv \mathrm{sgn}(x)
[/tex]
The derivative does not exist at [itex]x = 0[/itex].

Then, use the chain rule.
 
  • #3
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
 
  • #4
Dickfore said:
Hint:
[tex]
Therefore:
[tex]
\frac{d}{d x} \vert x \vert = \left\lbrace \begin{array}{rl}
1 &, \ x > 0 \\

-1 &, \ x < 0
\end{array}\right. \equiv \mathrm{sgn}(x)
[/tex]
The derivative does not exist at [itex]x = 0[/itex].

Then, use the chain rule.

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!
 
  • #5
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}
\sin(x) &\text{if } \ \sin(x) \ge 0 \\

-\sin(x) &\text{if } \ \sin(x) < 0
\end{array}\right.[/itex]

So, what matters is the sign of sin(x), not the sign of x itself.
 
Last edited:
  • #6
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:
  • #7
Thanks!
 

FAQ: Derivative of |sinx|: Solving Homework Problem

What is the derivative of |sinx|?

The derivative of |sinx| is the function that describes the rate of change of the absolute value of sine with respect to the input variable x. It can be calculated using the chain rule and the derivative of the absolute value function.

How do I solve a homework problem involving the derivative of |sinx|?

To solve a homework problem involving the derivative of |sinx|, you can follow these steps: 1) Use the chain rule to find the derivative of the absolute value function; 2) Apply the derivative of sine function; 3) Simplify the expression to get your final answer.

Can I use different methods to solve a problem involving the derivative of |sinx|?

Yes, there are multiple methods that can be used to solve a problem involving the derivative of |sinx|. Some common methods include using the chain rule, using the quotient rule, or using the definition of the derivative.

Can I use a calculator to solve a problem involving the derivative of |sinx|?

Yes, you can use a calculator to solve a problem involving the derivative of |sinx|. However, it is important to understand the concepts and steps involved in solving the problem, rather than solely relying on a calculator.

Are there any real-life applications of the derivative of |sinx|?

Yes, the derivative of |sinx| has many real-life applications, particularly in fields such as physics, engineering, and economics. For example, it can be used to analyze the motion of a pendulum, the behavior of electrical circuits, or the price elasticity of demand for a product.

Similar threads

Replies
12
Views
728
Replies
8
Views
1K
Replies
14
Views
967
Replies
2
Views
1K
Replies
5
Views
1K
Replies
16
Views
2K
Back
Top