Processing math: 100%

First time here? Check out the FAQ!

Ask Your Question
1

How do I differentiate an implicit function in sagemath?

asked 4 years ago

lolora gravatar image

I'm trying to differentiate an implicit expression

xey=xy

This is my sagemath code

x = var('x')
f(x,y)= x*e**y - x + y
show(diff(f))

Sagemath Answer is (x,y)  (ey1,xey+1)

But the actual answer is 1eyxey+1

How do I get the actual answer using sagemath?

Preview: (hide)

Comments

1 Answer

Sort by » oldest newest most voted
1

answered 4 years ago

Juanjo gravatar image

The code

x = var('x')
y = function("y")(x)
eq = x*e**y == x - y
dy = diff(y,x)
sol = solve(diff(eq), dy)
show(dy.subs(sol))

yields ey(x)1xey(x)+1 as expected

Preview: (hide)
link

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: 4 years ago

Seen: 1,868 times

Last updated: Jun 28 '20