Derivative exponential problem

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 · 2K views
MacLaddy
Gold Member
Messages
290
Reaction score
11

Homework Statement



Compute the derivative of the following function

[itex](1-2x)e^{-x}[/itex]

Homework Equations



Product Rule and Quotient rule

The Attempt at a Solution



My problem here is that I come up with two different answers when I use the quotient rule vs. the product rule.

Trying it with the product rule

f(x)= (1-2x)e^-x
f'(x)= -2e^-x + e^-x(1-2x)
f'(x)= e^-x(-2+(1-2x))
[itex]f'(x)= e^{-x}(-1-2x)[/itex] or [itex]\frac{-1-2x}{e^x}[/itex]

With the quotient rule

f'(x)= (e^-x(1-2x) - (-2e^-x)) / [e^-x]^2
f'(x)= (e^-x-2e^-x+2e^-x) / [e^-x]^2
f'(x)= (e^-x(-2x+2)) / [e^-x]^2
[itex]f'(x)= \frac{-2x+2}{e^{-x}}[/itex] or [itex]e^x(-2x+2))[/itex]

As you can see, these are two different answers. I would think that I should have the same solution either way I do this, so what am I doing wrong?
 
Last edited:
Physics news on Phys.org
MacLaddy said:

Homework Statement



Compute the derivative of the following function

(1-2x)e^(-x)

Homework Equations



Product Rule and Quotient rule

The Attempt at a Solution



My problem here is that I come up with two different answers when I use the quotient rule vs. the product rule. ( And that I can't figure out the Latex for e^-x... If someone can show me how to do that I'll clean this post up)
[itex]e^-x[/itex]

Trying it with the product rule

f(x)= (1-2x)e^-x
f'(x)= -2e^-x + e^-x(1-2x)
f'(x)= e^-x(-2+(1-2x))
f'(x)= e^-x(-1-2x) or (-1-2x)/e^x

With the quotient rule

f'(x)= (e^-x(1-2x) - (-2e^-x)) / [e^-x]^2
f'(x)= (e^-x-2e^-x+2e^-x) / [e^-x]^2
f'(x)= (e^-x(-2x+2)) / [e^-x]^2
f'(x)= (-2x+2) / (e^-x) or e^x(-2x+2)

As you can see, these are two different answers. I would think that I should have the same solution either way I do this, so what am I doing wrong?

I don't get either of your answers when I take the derivative.

(1-2x)e^{-x} = e^{-x} -2xe^{-x} = -e^{-x} -2(product rule) = ??
 
MacLaddy said:
... ( And that I can't figure out the Latex for e^-x... If someone can show me how to do that I'll clean this post up)

[itex]e^-x[/itex]

...
Put the whole exponent in braces { } .

[itex ]e^{-x}[/itex ] gives   [itex]e^{-x}[/itex]
 
Thanks SammyS. I cleaned up some of the above. Hopefully that helps.
 
MacLaddy said:
Trying it with the product rule

f(x)= (1-2x)e^-x
f'(x)= -2e^-x + e^-x(1-2x)
Here's the problem. It should be a minus above, not a plus. (Remember, chain rule.)
MacLaddy said:
With the quotient rule

f'(x)= (e^-x(1-2x) - (-2e^-x)) / [e^-x]^2
Whoa. If you want to use the quotient rule, then you need to rewrite f(x) as
[tex]f(x)=\frac{1-2x}{e^x}[/tex]
... so there shouldn't be any e-x in the first step:
[itex]f'(x) = \frac{e^x(1-2x) - (-2e^x)}{(e^x)^2}[/itex]
= ...
 
Thanks eumyang. I'm actually seeing numerous errors that I've typed above, and I'm working on cleaning it up with Latex.

Please stand by until I can clean up this mess. :smile:
 
Ahh, I didn't need to completely retype that. You are perfectly correct, eumyang, I was making those mistakes on both. I wasn't considering that the derivative of [itex]e^{-x}[/itex] is [itex]-e^{-x}[/itex]. And I wasn't playing with the signs right on the quotient rule.

Thank you very much, I appreciate the help.