Loading [MathJax]/jax/output/HTML-CSS/jax.js
Ask Your Question
0

How to simplify expression after diff so that the denominator remains unchanged relative to the initial expression. [closed]

asked 1 year ago

y023rus gravatar image

Dear experts, I have next initial expression: y=2x352x and I need find y'. In this case I use rule (uv)=uvuvv2 and expect to obtain next result after simplification: y=4(52x)2 But after diff((2x-3)/(5-2x),x) and simplification with factor() I get. y=4(2x5)2 How I can get (52x)2 in denominator of derivative?

Preview: (hide)

Closed for the following reason the question is answered, right answer was accepted by y023rus
close date 2023-10-24 20:21:12.590365

1 Answer

Sort by » oldest newest most voted
1

answered 1 year ago

Max Alekseyev gravatar image

You can use .denominator() to extract the denominator:

diff((2*x-3)/(5-2*x),x).factor().denominator()

or

diff((2*x-3)/(5-2*x),x).denominator().factor()
Preview: (hide)
link

Comments

your code gives (2x5)2 not (52x)2 as I need

y023rus gravatar imagey023rus ( 1 year ago )

Mathematically speaking, it's the same expression. It's just a matter of how Sage orders terms in the representation. There is not much you can do about that, see https://ask.sagemath.org/question/73507/ for details and further references.

Max Alekseyev gravatar imageMax Alekseyev ( 1 year ago )

Question Tools

1 follower

Stats

Asked: 1 year ago

Seen: 149 times

Last updated: Oct 23 '23