So I have the code above but when I run it it gives me back some random expression. I’m trying to make it return something in terms of g(x) but it won’t.
How would I make it give me F(x) in terms of g(x)?
1/4 (x^2 + 2 Log[x])
^ What it returns when I run the code. Where is it getting that from?
I don’t have it set to anything, I want it to be generic and just give F(x) in terms of g(x) and it’s derivatives so that that stuff can just be plugged in. I want it to just be symbolic
There exists no formula for an integral that works for all g(x), So, if you quit your kernel, you’ll see that Mathematica simply returns an unevaluated form:
A bit of impetuous formal manipulation perhaps illuminates. In the integrand (1/g) (dg/dx) dx, the dx cancel, leaving dg/g. The dependence on x has disappeared. This doesnt happen with the integrand you want to integrate, so the integral cannot be performed without knowledge of the functional relationship between g and x.