Some more logarithm stuff giving me trouble

  • Thread starter Thread starter 1MileCrash
  • Start date Start date
  • Tags Tags
    Logarithm
1MileCrash
Messages
1,338
Reaction score
41

Homework Statement



y = 2^(sin x)

Find derivative.

Homework Equations





The Attempt at a Solution



y = 2^{sin x}
ln y = ln (2^{sin x})
ln y = sin x ln(2)
y' = [ln(2)] (cos x) (2^{sin x})

Yet, according to some rule in the book:

a^x derivative is ln a times a^x, or in this case ln(2)2^(sin x)

But usually these rules don't conflict with other valid ways of coming to the answer. Wolfram shows me my answer, mathway shows me the book's answer.
 
Physics news on Phys.org
What you have is correct. Remember, you need to use the chain rule.

{{d}\over{dx}}\left( a^{f(x)} \right) = ln(a)a^{f(x)}f'(x)

just as if it were something simpler like y = e^{x^2}
 
Thank you, I was getting frustrated. Another textbook error, I suppose I shouldn't be surprised.
 
1MileCrash said:
Thank you, I was getting frustrated. Another textbook error, I suppose I shouldn't be surprised.

I think you are mis-interpreting what the book said. According to you, the book said (d/dx) a^x = ln(a) * a^x, and that is perfectly true. However, your question was different. Are you saying that the book's answer for this specific problem, (d/dx) 2^(sin(x)) is wrong? Of course, books DO make mistakes, but I cannot figure out from what you said whether that is the case here, or not.

RGV
 
1MileCrash said:

Homework Statement



y = 2^(sin x)

Find derivative.

Homework Equations





The Attempt at a Solution



y = 2^{sin x}
ln y = ln (2^{sin x})
ln y = sin x ln(2)
y' = [ln(2)] (cos x) (2^{sin x})

Yet, according to some rule in the book:

a^x derivative is ln a times a^x, or in this case ln(2)2^(sin x)
No, in this case, ln(2)2^(sin x) times the derivative of sin(x) so the derivative is ln(2)2^(sin(x))cos(x) exactly as you have.

But usually these rules don't conflict with other valid ways of coming to the answer. Wolfram shows me my answer, mathway shows me the book's answer.
 
Ray Vickson said:
I think you are mis-interpreting what the book said. According to you, the book said (d/dx) a^x = ln(a) * a^x, and that is perfectly true. However, your question was different. Are you saying that the book's answer for this specific problem, (d/dx) 2^(sin(x)) is wrong? Of course, books DO make mistakes, but I cannot figure out from what you said whether that is the case here, or not.

RGV

I'm sorry, I meant both actually.

The book referenced the "box" where that rule was written (right above, on the same page) and then explicitly wrote the answer as n(2)2^(sin x) in accordance with that rule.

I understand the rule is true, but it doesn't nullify the chain rule if I have some function for the exponent. That's what I gathered from the book's example, and that's what was the source of my frustration.

As for mathway...

[PLAIN]http://img263.imageshack.us/img263/1599/mathwaywrong.png
 
Last edited by a moderator:
Then mathway is wrong. The derivative of 2^{sin(x)} is 2^{sin(x)}ln(2)cos(x). The cos(x), the derivative of sin(x), is missing from what you show.
 
HallsofIvy said:
Then mathway is wrong. The derivative of 2^{sin(x)} is 2^{sin(x)}ln(2)cos(x). The cos(x), the derivative of sin(x), is missing from what you show.

Yes, this has been established.
 
Back
Top