Ask Your Question
0

How to expand the result of derivative()?

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

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
0

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

ortollj gravatar image

Hi

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

x=var('x')
d=derivative(acosh(x), x)
show(d.numerator()/sqrt((d.denominator()^2).expand()))
edit flag offensive delete link more

Comments

1

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 +0100 )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

Stats

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

Seen: 292 times

Last updated: Aug 14 '19