Calculus · real student question

Find all functions f satisfying f(x)/f'(x) = tan((k-1)x), where k is a constant not equal to 1.

Question

Find all functions ff satisfying

f(x)f(x)=tan ⁣((k1)x),\frac{f(x)}{f'(x)}=\tan\!\left((k-1)x\right),

where k1k\neq 1 is a constant.

Step-by-step solution

  1. Flip the ratio so the logarithmic derivative appears. Taking reciprocals of both sides, f(x)f(x)=cot ⁣((k1)x).\frac{f'(x)}{f(x)}=\cot\!\left((k-1)x\right). The left side is exactly ddxlnf(x)\dfrac{d}{dx}\ln|f(x)|, which is why this rearrangement is worth doing before anything else - it converts an equation about ff and ff' into a plain antiderivative problem.

  2. Integrate both sides. lnf(x)=cot ⁣((k1)x)dx.\ln|f(x)|=\int\cot\!\left((k-1)x\right)dx. Write m=k1m=k-1 (nonzero by hypothesis) and substitute u=mxu=mx, du=mdxdu=m\,dx: cot(mx)dx=1mcotudu=1mlnsinu+C=1mlnsin(mx)+C.\int\cot(mx)\,dx=\frac{1}{m}\int\cot u\,du=\frac{1}{m}\ln|\sin u|+C=\frac{1}{m}\ln\left|\sin(mx)\right|+C. The standard result cotudu=lnsinu\int\cot u\,du=\ln|\sin u| comes from uu-substituting the sine itself.

  3. Exponentiate to recover ff. From lnf(x)=1mlnsin(mx)+C\ln|f(x)|=\frac{1}{m}\ln|\sin(mx)|+C, f(x)=eCsin(mx)1/m,|f(x)|=e^{C}\left|\sin(mx)\right|^{1/m}, and absorbing ±eC\pm e^{C} into a single arbitrary nonzero constant gives f(x)=Csin ⁣((k1)x)1k1.f(x)=C\left|\sin\!\left((k-1)x\right)\right|^{\frac{1}{k-1}}.

  4. Verify by differentiating. With m=k1m=k-1 and f=(sinmx)1/mf=\left(\sin mx\right)^{1/m} on an interval where sinmx>0\sin mx>0, the chain rule gives f=1m(sinmx)1m1mcosmx=(sinmx)1m1cosmx,f'=\frac{1}{m}\left(\sin mx\right)^{\frac1m-1}\cdot m\cos mx=\left(\sin mx\right)^{\frac1m-1}\cos mx, so ff=(sinmx)1/m(sinmx)1m1cosmx=sinmxcosmx=tanmx.\frac{f}{f'}=\frac{\left(\sin mx\right)^{1/m}}{\left(\sin mx\right)^{\frac1m-1}\cos mx}=\frac{\sin mx}{\cos mx}=\tan mx. The exponent 1/m1/m is precisely what makes the powers of sin\sin cancel down to a single first power.

  5. Check numerically as well. Take k=3k=3, so m=2m=2 and f(x)=sin2xf(x)=\sqrt{\sin 2x}. At x=0.5x=0.5 a centred difference gives f(0.5)=0.606140f'(0.5)=0.606140 and f(0.5)=0.943985f(0.5)=0.943985, so f/f=1.557408f/f'=1.557408, while tan(2×0.5)=tan1=1.557408\tan(2\times 0.5)=\tan 1=1.557408. They agree to six decimals.

  6. Note the domain and the excluded case. The solution only makes sense where sin ⁣((k1)x)0\sin\!\left((k-1)x\right)\neq 0, so xx must avoid the multiples of π/(k1)\pi/(k-1); on each such interval CC can be chosen independently. If k=1k=1 the right-hand side is tan0=0\tan 0=0, forcing f0f\equiv 0, which is why k1k\neq 1 is assumed.

Answer

f(x)=Csin ⁣((k1)x)1k1,C0, k1f(x)=C\left|\sin\!\left((k-1)x\right)\right|^{\frac{1}{k-1}},\qquad C\neq 0,\ k\neq 1

Need to solve a different problem like this? Open the solver →