# Need help with symbolic integration

I have

f[x_] := g[x]/g'[x]
FullSimplify[Integrate[f[x], x]]


I'm trying to get F[x] in terms of g[x], but evaluating the above gives the random expression below as output

1/4 (x^2 + 2 Log[x])


How would I get F[x] based on g[x] to be returned?

• What's the definition of g? – John Doty Aug 18 at 18:50
• @JohnDoty Nothing, that's all I have input. I'm trying to make it generic so I didn't make g(x) anything I just want it to base it in terms of g(x). That's why I have no idea where it's getting the output from. – Nick Arnold Aug 18 at 19:16
• It's possible you defined one of those functions earlier and forgot. To clear any such definitions, try quitting the kernel and re-evaluating that cell. You should get $\int \frac{g(x)}{g'(x)} \, dx$ (that's what I get). – theorist Aug 18 at 19:54
• Is it possible that you are looking for Integrate[g'[x]/g[x], x] (*Log[g[x]]*)? – Ulrich Neumann Aug 18 at 19:58
• The integral has no closed-form solution. – AccidentalFourierTransform Aug 18 at 20:42