# Calculate the following symbolic integral?

**URL:** <https://community.wolfram.com/t/calculate-the-following-symbolic-integral/14609>\
**Category:** Questions\
**Tags:** calculus, equation-solving, symbolic-computations\
**Created:** [August 18, 2019, 6:15pm UTC](https://community.wolfram.com/t/calculate-the-following-symbolic-integral/14609 "2019-08-18T18:15:33Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![apollodrake32](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@apollodrake32](https://community.wolfram.com/u/apollodrake32)\
**Post date:** [August 18, 2019, 6:15pm UTC](https://community.wolfram.com/t/calculate-the-following-symbolic-integral/14609/1 "2019-08-18T18:15:33Z")

</div>

Consider the following code:

```
f[x_] := g[x]/g'[x] 

FullSimplify[Integrate[f[x], x]]

```

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?

---

<div class="post-metadata">

**Author:** ![murray](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/murray/32/39879_2.png) [@murray](https://community.wolfram.com/u/murray)\
**Post date:** [August 18, 2019, 7:48pm UTC](https://community.wolfram.com/t/calculate-the-following-symbolic-integral/14609/2 "2019-08-18T19:48:40Z")

</div>

What is `g[x]`?

---

<div class="post-metadata">

**Author:** ![apollodrake32](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@apollodrake32](https://community.wolfram.com/u/apollodrake32)\
**Post date:** [August 18, 2019, 7:53pm UTC](https://community.wolfram.com/t/calculate-the-following-symbolic-integral/14609/3 "2019-08-18T19:53:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bmmmburns](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/bmmmburns/32/3126_2.png) [@bmmmburns](https://community.wolfram.com/u/bmmmburns)\
**Post date:** [August 19, 2019, 4:22pm UTC](https://community.wolfram.com/t/calculate-the-following-symbolic-integral/14609/4 "2019-08-19T16:22:13Z")

</div>

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:

Enter

```
 Quit[];

```

.

Then enter

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

```

\int \frac{g (x)}{g'(x)} \, dx.

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [August 19, 2019, 5:47pm UTC](https://community.wolfram.com/t/calculate-the-following-symbolic-integral/14609/5 "2019-08-19T17:47:00Z")

</div>

This variant gives a useful result:

```
Integrate[g'[x]/g[x], x]

```

---

<div class="post-metadata">

**Author:** ![apollodrake32](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@apollodrake32](https://community.wolfram.com/u/apollodrake32)\
**Post date:** [August 19, 2019, 5:56pm UTC](https://community.wolfram.com/t/calculate-the-following-symbolic-integral/14609/6 "2019-08-19T17:56:50Z")

</div>

Ah thanks, quitting the kernal worked for that. Sucks that there’s no general solution for that form of integral

---

<div class="post-metadata">

**Author:** ![henrikschachner](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/henrikschachner/32/32119_2.png) [@henrikschachner](https://community.wolfram.com/u/henrikschachner)\
**Post date:** [August 19, 2019, 6:49pm UTC](https://community.wolfram.com/t/calculate-the-following-symbolic-integral/14609/7 "2019-08-19T18:49:33Z")

</div>

> Sucks that there’s no general solution for that form of integral

There are even simpler forms that “do not work”; what kind of output in terms of g(x) you would expect from

\int g(x) \mbox{d}x

without specifying g(x) ?

---

<div class="post-metadata">

**Author:** ![apollodrake32](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@apollodrake32](https://community.wolfram.com/u/apollodrake32)\
**Post date:** [August 19, 2019, 6:51pm UTC](https://community.wolfram.com/t/calculate-the-following-symbolic-integral/14609/8 "2019-08-19T18:51:41Z")

</div>

Fair enough, I was trying to find a general form for the function whose derivative is the inverse of the derivative of log[g(x)]

---

<div class="post-metadata">

**Author:** ![bmmmburns](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/bmmmburns/32/3126_2.png) [@bmmmburns](https://community.wolfram.com/u/bmmmburns)\
**Post date:** [August 19, 2019, 7:03pm UTC](https://community.wolfram.com/t/calculate-the-following-symbolic-integral/14609/9 "2019-08-19T19:03:30Z")

</div>

Nick Arnold:  
Try Gianluca Gorni’s input. I must have forgot that there was a standard solution for

```
Integrate[g'[x]/g[x], x]

```

.

---

<div class="post-metadata">

**Author:** ![jpd](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/jpd/32/34994_2.png) [@jpd](https://community.wolfram.com/u/jpd)\
**Post date:** [August 19, 2019, 7:35pm UTC](https://community.wolfram.com/t/calculate-the-following-symbolic-integral/14609/10 "2019-08-19T19:35:22Z")

</div>

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 doesnt happen with the integrand you want to integrate, so the integral cannot be performed without knowledge of the functional relationship between `g` and `x.`

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [August 20, 2019, 12:55pm UTC](https://community.wolfram.com/t/calculate-the-following-symbolic-integral/14609/11 "2019-08-20T12:55:53Z")

</div>

Did you have in mind something like this?

```
D[InverseFunction[Composition[Log, g]][x], x] /. x -> Log[g[y]]

```
