Ask Your Question

How to expand the result of derivative()?

asked 2019-08-14 18:15:47 +0200

Fusion809 gravatar image

I ran:

derivative(acosh(x), x)

and the result was:

1/(sqrt(x + 1)*sqrt(x - 1))

I personally would prefer 1/sqrt(x^2-1) as it's an expanded form and I'm wondering how I can get SageMath to show this. I've tried adding .expand() afterwards and that made no difference to the result.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-08-14 20:36:18 +0200

ortollj gravatar image


I propose this code despite little heavy ! I think it must exist simpler

d=derivative(acosh(x), x)
edit flag offensive delete link more



An alternative:

sage: (derivative(acosh(x), x)^2).simplify_full().sqrt()
1/sqrt(x^2 - 1)

but I'm not sanguine about the whole thing ...

Emmanuel Charpentier gravatar imageEmmanuel Charpentier ( 2019-08-15 00:56:54 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2019-08-14 18:15:47 +0200

Seen: 235 times

Last updated: Aug 14 '19