# factoring an expression

Hello,

Is there a way to factor the following expression out

```
x^3+3*x
```

as

```
x^2*(x+3/x)
```

Thanks for your help.

factoring an expression

asked **
2020-06-08 15:38:02 -0500
**

Anonymous

Hello,

Is there a way to factor the following expression out

```
x^3+3*x
```

as

```
x^2*(x+3/x)
```

Thanks for your help.

add a comment

1

I am not sure about the context, but you can do:

```
sage: (f/x^2).expand() * x^2
(x + 3/x)*x^2
```

Asked: **
2020-06-08 15:38:02 -0500
**

Seen: **28 times**

Last updated: **Jun 08**

simplify expression (square polynomial)

Excluding a common factor in a sum

Factorize characteristic polynomial in SR base ring

how to best simplify/factor symbolic expressions

how to factorize an expression with constant variables ?

Why does @parallel change my outputs?

Polynomial as a sum of simply factored expressions?

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.