Asked • 07/12/19

Implicit differentiation with Python 3?

How can we derivate a implicit equation in Python 3? Example `x^2+y^2=25` differentiation is: `dy/dx=-x/y`, when try this: from sympy import * init_printing(use_unicode=True) x = symbols('x') y = Function('y')(x) eq = x**2+y**2-25 sol = diff(eq, x) print(sol) But it shows: 2*x + 2*y(x)*Derivative(y(x), x) How can get `-x/y`?

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.