Stuck on this? Solve it with AI
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⁡ ⁣((k−1)x),\frac{f(x)}{f'(x)}=\tan\!\left((k-1)x\right),

where k≠1k\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⁡ ⁣((k−1)x).\frac{f'(x)}{f(x)}=\cot\!\left((k-1)x\right). The left side is exactly ddxln⁡∣f(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 f′f' into a plain antiderivative problem.

  2. Integrate both sides. ln⁡∣f(x)∣=∫cot⁡ ⁣((k−1)x)dx.\ln|f(x)|=\int\cot\!\left((k-1)x\right)dx. Write m=k−1m=k-1 (nonzero by hypothesis) and substitute u=mxu=mx, du=m dxdu=m\,dx: ∫cot⁡(mx) dx=1m∫cot⁡u du=1mln⁡∣sin⁡u∣+C=1mln⁡∣sin⁡(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 ∫cot⁡u du=ln⁡∣sin⁡u∣\int\cot u\,du=\ln|\sin u| comes from uu-substituting the sine itself.

  3. Exponentiate to recover ff. From ln⁡∣f(x)∣=1mln⁡∣sin⁡(mx)∣+C\ln|f(x)|=\frac{1}{m}\ln|\sin(mx)|+C, ∣f(x)∣=eC∣sin⁡(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)=C∣sin⁡ ⁣((k−1)x)∣1k−1.f(x)=C\left|\sin\!\left((k-1)x\right)\right|^{\frac{1}{k-1}}.

  4. Verify by differentiating. With m=k−1m=k-1 and f=(sin⁡mx)1/mf=\left(\sin mx\right)^{1/m} on an interval where sin⁡mx>0\sin mx>0, the chain rule gives f′=1m(sin⁡mx)1m−1⋅mcos⁡mx=(sin⁡mx)1m−1cos⁡mx,f'=\frac{1}{m}\left(\sin mx\right)^{\frac1m-1}\cdot m\cos mx=\left(\sin mx\right)^{\frac1m-1}\cos mx, so ff′=(sin⁡mx)1/m(sin⁡mx)1m−1cos⁡mx=sin⁡mxcos⁡mx=tan⁡mx.\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)=sin⁡2xf(x)=\sqrt{\sin 2x}. At x=0.5x=0.5 a centred difference gives f′(0.5)=0.589003f'(0.5)=0.589003 and f(0.5)=0.917317f(0.5)=0.917317, so f/f′=1.557408f/f'=1.557408, while tan⁡(2×0.5)=tan⁡1=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⁡ ⁣((k−1)x)≠0\sin\!\left((k-1)x\right)\neq 0, so xx must avoid the multiples of π/(k−1)\pi/(k-1); on each such interval CC can be chosen independently. If k=1k=1 the right-hand side is tan⁡0=0\tan 0=0, forcing f≡0f\equiv 0, which is why k≠1k\neq 1 is assumed.

Answer

f(x)=C∣sin⁡ ⁣((k−1)x)∣1k−1,C≠0, k≠1f(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 →