Ask Your Question

How to expand the result of derivative()?

asked 2019-08-14 11:15:47 -0500

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 13:36:18 -0500

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-14 17:56:54 -0500 )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 11:15:47 -0500

Seen: 55 times

Last updated: Aug 14 '19