有一类函数,底数和指数都含xxx,如xsinxx^{\sin x}xsinx,对这类函数求导,既不能用函数相乘来求,也不能用复合函数求导来求。那应该怎么求呢?我们可以巧用ln\lnln函数,解决指数含xxx的问题。
例1
已知y=xsinxy=x^{\sin x}y=xsinx,求y′y'y′
解:
lny=lnxsinx=sinxlnx\ln y=\ln x^{\sin x}=\sin x \ln xlny=lnxsinx=sinxlnx
两边同时求导得:
y′y=cosxlnx+sinx⋅1x\dfrac {y'}{y}=\cos x\ln x+\sin x\cdot\dfrac 1xyy′=cosxlnx+sinx⋅x1
y′=y(cosxlnx+sinx⋅1x)=ssinx(cosxlnx+sinxx)y'=y(\cos x \ln x+\sin x \cdot \dfrac1x)=s^{\sin x}(\cos x \ln x+\dfrac {\sin x}{x})y′=y(cosxlnx+sinx⋅x1)=ssinx(cosxlnx+xsinx)
注:此处yyy是一个函数,所以lny\ln ylny是一个复合函数,(lny)′=1y⋅y′=y′y(\ln y)'=\dfrac 1y\cdot y'=\dfrac{y'}{y}(lny)′=y1⋅y′=yy′
例2
已知y=xxxy=x^{x^x}y=xxx,求y′y'y′
解:
设f(x)=xxf(x)=x^xf(x)=xx
则lnf(x)=lnxx=xlnx\ln f(x)=\ln x^x=x\ln xlnf(x)=lnxx=xlnx
两边同时求导得:
f′(x)f(x)=1+lnx\dfrac{f'(x)}{f(x)}=1+\ln xf(x)f′(x)=1+lnx
f′(x)=f(x)(1+lnx)=xx+xxlnxf'(x)=f(x)(1+\ln x)=x^x+x^x\ln xf′(x)=f(x)(1+lnx)=xx+xxlnx
∵y=xxx\because y=x^{x^x}∵y=xxx
∴lny=lnxxx=xxlnx=f(x)lnx\therefore \ln y=\ln x^{x^x}=x^x\ln x=f(x)\ln x∴lny=lnxxx=xxlnx=f(x)lnx
两边同时求导得:
y′y=f′(x)lnx+f(x)⋅1x=xxlnx+xx(lnx)2+xxx\dfrac{y'}{y}=f'(x)\ln x+f(x)\cdot \dfrac 1x=x^x\ln x+x^x(\ln x)^2+\dfrac{x^x}{x}yy′=f′(x)lnx+f(x)⋅x1=xxlnx+xx(lnx)2+xxx
y′=y(xxlnx+xx(lnx)2+xxx)=xxxxxlnx+xxxxx(lnx)2+xxxxxxy'=y(x^x\ln x+x^x(\ln x)^2+\dfrac{x^x}{x})=x^{x^x}x^x\ln x+x^{x^x}x^x(\ln x)^2+\dfrac{x^{x^x}x^x}{x}y′=y(xxlnx+xx(lnx)2+xxx)=xxxxxlnx+xxxxx(lnx)2+xxxxxx