Question
Question: How do I find the derivative of \(y = \ln ({e^{ - x}} + x{e^{ - x}})\) ?...
How do I find the derivative of y=ln(e−x+xe−x) ?
Solution
In this question, we need to differentiate the given function with respect to x. Firstly, we will factor out the common term inside the parenthesis. Then we will apply one of the properties of logarithms which is given by ln(a⋅b)=lna+lnb. Also we use the fact that ln(ea)=a. Then the obtained expression we will differentiate using the sum rule of differentiation. After that we will simplify it and obtain the required derivative.
Complete step by step solution:
Given an expression of the form y=ln(e−x+xe−x) …… (1)
We are asked to find the derivative of the above expression.
The given function is a logarithmic function. The logarithmic function is represented as logba, where b is called the base and a is a number.
Here we have given the natural logarithmic function where it’s base is e and it is represented as ln.
Firstly, we will factor out the common term inside the parenthesis in the equation (1).
So factoring out e−x within the parenthesis, we get,
y=ln(e−x(1+x))
Now we apply the property of logarithm which is given by, ln(a⋅b)=lna+lnb
Here a=e−x and b=1+x
Hence the above expression becomes,
y=ln(e−x)+ln(1+x)
Now for the first term, we use the fact that ln(ea)=a.
Here we have a=−x. So applying this we get,
y=−x+ln(1+x)
Now we will differentiate the expression obtained with respect to x.
⇒dxdy=dxd(−x+ln(1+x)
We will use the sum rule of differentiation here, which is given by,
dxd(u+v)=dxdu+dxdv
Here u=−x and v=ln(1+x)
Hence using sum rule, we get,
⇒dxdy=dxd(−x)+dxdln(1+x)
In the first term taking out the constant term which is -1, we get,
⇒dxdy=(−1)dxdx+dxdln(1+x)
⇒dxdy=(−1)(1)+dxdln(1+x)
We know that dxdlnx=x1
So we get,
⇒dxdy=−1+1+x1
Now we add the fractions, we get,
⇒dxdy=1+x−(1+x)+1
Simplifying we get,
⇒dxdy=1+x−x−1+1
⇒dxdy=1+x−x+0
⇒dxdy=−1+xx
Hence the derivative of the function y=ln(e−x+xe−x) is given by dxdy=−1+xx.
Note: If the question has the word log or ln, it represents the given function as logarithmic function. Note that we have two types of logarithmic function.
One is a common logarithmic function which is represented as a log and its base is 10.
The other one is a natural logarithmic function represented as lnand its base is e.
We must know the basic properties of logarithmic functions and note that these properties hold for both log and ln functions.
Here we must be careful while applying the property related to logarithmic function.
We must know the derivative of the logarithmic function given by dxdlnx=x1.
Some properties of logarithmic functions are given below.
(1) ln(x⋅y)=lnx+lny
(2) ln(yx)=lnx−lny
(3) lnxn=nlnx
(4) ln1=0
(5) logee=1