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

Click For Summary
To find the derivative of y=xe^(-kx), the chain rule and product rule must be applied correctly. The initial attempt incorrectly combined the derivatives without properly accounting for the product of x and e^(-kx). The correct approach involves using the product rule first, differentiating x and e^(-kx) separately. The final derivative is e^(-kx)(-kx + 1), confirming the need to carefully apply both rules to avoid errors. Understanding these rules is crucial for accurately solving similar problems.
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

\frac{dy}{du} = xeu+eu

u = -kx

\frac{du}{dx} = -k


\frac{dy}{dx} = (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?
 
Physics news 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

\frac{dy}{du} = 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 1 person
I'm sorry, but I don't get what you mean.

\frac{d}{dx} xeu = eu\frac{d}{dx}x+x\frac{d}{dx}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.

\frac{d}{dx} xeu = eu\frac{d}{dx}x+x\frac{d}{dx}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!
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
1K
Replies
14
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K