# Thread: [SOLVED] Tricky Diff question

1. ## [SOLVED] Tricky Diff question

Hi - I just can't seem to get this one right. Looking to get the first derivative...

(1 + xe^x)/(1 - xe^x)

I assume that you use the quotient rule but I end up in a mess.

Could someone please talk me thorugh this one?

Thanks, D

2. Hello dojo
Originally Posted by dojo
Hi - I just can't seem to get this one right. Looking to get the first derivative...

(1 + xe^x)/(1 - xe^x)

I assume that you use the quotient rule but I end up in a mess.

Could someone please talk me thorugh this one?

Thanks, D
Yes, you'll need to use both the quotient and the product rules:
$f(x) = \frac{1+xe^x}{1-xe^x}$

$\Rightarrow f'(x)= \frac{(1-xe^x)(xe^x+e^x)-(1+xe^x)(-xe^x-e^x)}{(1-xe^x)^2}$
$= \frac{e^x(1-xe^x)(x+1)+e^x(1+xe^x)(x+1)}{(1-xe^x)^2}$

$= \frac{e^x(x+1)(1-xe^x+1+xe^x)}{(1-xe^x)^2}$

$= \frac{2e^x(x+1)}{(1-xe^x)^2}$

3. The book gives the answer with the same numerator as you have bu the denom as (xe^2 - 1)^2

Thanks for the workings - I think my algebra needs a bit of work. I think the book must be wrong as the quotien rule does state that v^2 is the denom.

Thanks

4. Hello dojo
Originally Posted by dojo
The book gives the answer with the same numerator as you have bu the denom as (xe^2 - 1)^2

Thanks for the workings - I think my algebra needs a bit of work. I think the book must be wrong as the quotien rule does state that v^2 is the denom.

Thanks
Since $(a-b)^2$ is the same as $(b-a)^2$, you could certainly write the denominator as $(xe^x-1)^2$, but not $(xe^2-1)^2$.

Are you sure that's what the book said? If so, it's just a typo.