Find all functions satisfying
where is a constant.
Flip the ratio so the logarithmic derivative appears. Taking reciprocals of both sides, The left side is exactly , which is why this rearrangement is worth doing before anything else - it converts an equation about and into a plain antiderivative problem.
Integrate both sides. Write (nonzero by hypothesis) and substitute , : The standard result comes from -substituting the sine itself.
Exponentiate to recover . From , and absorbing into a single arbitrary nonzero constant gives
Verify by differentiating. With and on an interval where , the chain rule gives so The exponent is precisely what makes the powers of cancel down to a single first power.
Check numerically as well. Take , so and . At a centred difference gives and , so , while . They agree to six decimals.
Note the domain and the excluded case. The solution only makes sense where , so must avoid the multiples of ; on each such interval can be chosen independently. If the right-hand side is , forcing , which is why is assumed.
Need to solve a different problem like this? Open the solver →