# Simplifying a simple rational expression with indeterminate exponent

`((sqrt(x)/(x+1))^n * (x+1)^n).simplify_full ()`

returns the given expression as-is, but evidently it should be simplified to `sqrt(x)^n`

. Sage indeed does this if the `x+1`

is replaced by `x`

or `n`

by a concrete number like `10`

(illustrating that sage isn't worried about division by zero, but it's something else). Is there a way to have sage simplify this?

Try

`canonicalize_radical`

:@Juanjo : you should make an answer of your comment, for the benefit of future

`ask.sagemath.org`

perusers.@Emmanuel Charpentier: Done. I thought it could exist a better solution than mine.