# Simplification and implicit function

I have two question in one : 1) I have this $z= \frac{\alpha x^{\alpha-1}y^\beta y^{-\beta-1}}{\beta x^\alpha}$. There are obvious simplification since this is equal to $\frac{\alpha}{\beta} \frac{y}{x}$.

z.full_simplify() has no impact z.expand() simplify on $y$ but not on $x$

So what can I do to obtain the good result.

2) how to take the result and consider it as an implicit function to obtain the derivative de $y$. as a function of x

edit retag close merge delete

Sort by » oldest newest most voted

I have two question in one : 1) I have this $z=\frac{αx^{α−1}y^βy^{−β−1}}{βx^α}$. There are obvious simplification since this is equal to $\frac{α}{β}\frac{y}{x}$.

It isn't:

sage: foo=a*x^(a-1)*y^b*y^-(b+1)/(b*x^a);foo
a*x^(a - 1)*y^b*y^(-b - 1)/(b*x^a)
a/(b*x*y)


2) how to take the result and consider it as an implicit function to obtain the derivative de y. as a function of x

sage: foo.canonicalize_radical().diff(y)
-a/(b*x*y^2)


which should be obvious given the (correct) result of your simplification...

more

In fact my problem was nearly similar but with your helps I have understud what was wrong in my approach. In reality I had $tms= U_x/U_y$ where the U_(x or y) where the partial dérivatives of U(x, Y) = A x^\alpha y{^\1- beta}. Even with canonicalize.radical I was unable to obtain you result since I was writing U_x/U_y.canonalize.radical() and not (U_x/U_y).canonalize.radical(). Thanks for all.

Now for 2) your result is obviously wrong since you Don't use the implicit command differenti&tion

Okay.

sage: foo.canonicalize_radical()
a/(b*x*y)
-a/(b*x*y^2)
sage: foo.diff(y)
a*x^(a - 1)*y^(b - 1)*y^(-b - 1)/x^a - a*(b + 1)*x^(a - 1)*y^b*y^(-b - 2)/(b*x^a)
-a/(b*x*y^2)


Where is this "obviously wrong" ?

And, by the way:

sage: U
(x, y) |--> A*x^alpha*y^beta
alpha*y/(beta*x)