Simplify logarithmic expression
I am trying to simplify the expression
1/2 * log(2) - 1/2 * log(2 * x + 2 * sqrt(x^2 - 1))
under the assumptions that x is real, and x > 1. I expect
-1/2 * acosh(x)
I tried
with assuming(x, 'real', x > 1):
print((1/2 * log(2) - 1/2 * log(2 * x + 2 * sqrt(x^2 - 1))).full_simplify())
However, that just prints back the original expression.
I would do this by hand as follows:
1/2 * log(2) - 1/2 * log(2 * x + 2 * sqrt(x^2 - 1))
= 1/2 * log(2) - 1/2 * log(2 * (x + sqrt(x^2 - 1)))
= 1/2 * log(2) - 1/2 * log(2) - 1/2 * log(x + sqrt(x^2 - 1))
= -1/2 * log(x + sqrt(x^2 - 1))
= -1/2 * acosh(x)
How can I get SageMath to perform this simplification?
Even without the acosh simplification I would expect to get rid of the 1/2 * log(2)
term.