Question
Question: Differentiate the following function with respect to \(x\): \({{x}^{n}}{{\log }_{a}}x\text{ }{{e}^...
Differentiate the following function with respect to x:
xnlogax ex
Solution
Hint: For solving this question we will write the term logax as lnalnx in the given function and then, differentiate y=lna1(xnlnx ex) with respect to x. After that, we will apply the product rule of differential calculus, and formulas like dxd(xn)=nxn−1, dxd(lnx)=x1 and dxd(ex)=ex. Then, we will arrange the terms in the result to get the final answer.
Complete step-by-step answer:
We to differentiate the following function with respect to x:
y=xnlogax ex
Now, as we will use the formula logcb=logeclogeb to write logax=logealogex in the above equation. Then,
y=xnlogax ex⇒y=xn×logealogex×ex
Now, we can write logex=lnx and logea=lna in the above equation. Then,
y=xn×logealogex×ex⇒y=lna1(xnlnx ex)..................(1)
Now, before we proceed, we should know the following formulas and concepts of differential calculus:
1. If y=f(x)⋅g(x) , then dxdy=dxd(f(x)⋅g(x))=f′(x)⋅g(x)+f(x)⋅g′(x) . This is also known as the product rule of differentiation.
2. If y=xn , then dxdy=dxd(xn)=nxn−1 .
3. If y=lnx , then dxdy=dxd(lnx)=x1 .
4. If y=ex , then dxdy=dxd(ex)=ex .
Now, from the equation (1) we have the following equation:
y=lna1(xnlnx ex)
Now, we will differentiate the above equation with respect to x . Then,
y=lna1(xnlnx ex)⇒dxdy=dxd(lna1(xnlnx ex))
Now, as lna1 is a constant term so, we can write dxd(lna1(xnlnx ex))=lna1dxd(xnlnx ex) . Then,
dxdy=dxd(lna1(xnlnx ex))⇒dxdy=lna1dxd(xnlnx ex)
Now, we will use the product rule of differentiation to write dxd(xnlnx ex)=(lnx ex)×dxd(xn)+(xnex)×dxd(lnx)+(xnlnx)×dxd(ex) in the above equation. Then,
dxdy=lna1dxd(xnlnx ex)⇒dxdy=lna1×((lnx ex)×dxd(xn)+(xnex)×dxd(lnx)+(xnlnx)×dxd(ex))
Now, we will use the formulas of the differential calculus discussed above, to write dxd(xn)=nxn−1 , dxd(lnx)=x1 and dxd(ex)=ex in the above equation. Then,
dxdy=lna1×((lnx ex)×dxd(xn)+(xnex)×dxd(lnx)+(xnlnx)×dxd(ex))⇒dxdy=lna1((lnx ex)×(nxn−1)+(xnex)×x1+(xnlnx)×ex)⇒dxdy=lna1(nxn−1lnx ex+xn−1ex+xnlnx ex)⇒dxdy=lnaxn−1ex(nlnx+xlnx+1)
Now, from the above result we conclude that if y=xnlogax ex then, differentiation of y with respect to x will be dxdy=lnaxn−1ex(nlnx+xlnx+1) .
Thus, dxdy=lnaxn−1ex(nlnx+xlnx+1) will be our final answer.
Note: Here, the student should first understand what is asked in the question and then proceed in the right direction to get the correct answer quickly. And first, we should write the term logaxas lnalnx and then, differentiate y=lna1(xnlnx ex) with respect to x . Moreover, we should apply the product rule of differential calculus, and formulas like dxd(xn)=nxn−1 , dxd(lnx)=x1 and dxd(ex)=ex correctly without any mathematical error to get the correct answer easily.