Finding the Derivative of y=xe-kx using the Chain Rule

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
physics604
Messages
92
Reaction score
2

Homework Statement



Find the derivative of y=xe-kx

Homework Equations



Chain rule

The Attempt at a Solution



y = xeu

[itex]\frac{dy}{du}[/itex] = xeu+eu

u = -kx

[itex]\frac{du}{dx}[/itex] = -k


[itex]\frac{dy}{dx}[/itex] = (xe-kx+e-kx)(-k)

= e-kx(x+1)(-k)

= e-kx(-kx-k)

The answer is e-kx(-kx+1). What did I do wrong?
 
on Phys.org
physics604 said:

Homework Statement



Find the derivative of y=xe-kx

Homework Equations



Chain rule

The Attempt at a Solution



y = xeu

[itex]\frac{dy}{du}[/itex] = xeu+eu

There is a subtle error here. The problem is that if ##u=-kx## then ##x=-\frac u k## and you have to include ##\frac{dx}{du} = -\frac 1 k## in your second term. But it's best to avoid this error completely by noting that you have a product and should use the product rule before the chain rule. Try$$
\frac d {dx} xe^u = e^u\frac d {dx} x + x \frac d {dx}e^u$$ and use your method on that last term.
 
  • Like
Likes   Reactions: 1 person
I'm sorry, but I don't get what you mean.

[itex]\frac{d}{dx}[/itex] xeu = eu[itex]\frac{d}{dx}[/itex]x+x[itex]\frac{d}{dx}[/itex]eu

is still equal to eu + xeu.
 
Okay, I get it. Thanks!
 
LCKurtz said:
But it's best to avoid this error completely by noting that you have a product and should use the product rule before the chain rule. Try$$
\frac d {dx} xe^u = e^u\frac d {dx} x + x \frac d {dx}e^u$$ and use your method on that last term.

physics604 said:
I'm sorry, but I don't get what you mean.

[itex]\frac{d}{dx}[/itex] xeu = eu[itex]\frac{d}{dx}[/itex]x+x[itex]\frac{d}{dx}[/itex]eu

is still equal to eu + xeu.


No it isn't. By your own steps in your original post you showed$$
\frac d {dx} e^u = -ke^{-kx}$$and if you put that in you get the correct answer.
 
I get it now. Thanks!