Question: Part 3 : The Chain Rule 3 . 1 [ 2 pt ] Use Sympy to make two functions y = x 3 - x

Part 3: The Chain Rule
3.1[2 pt] Use Sympy to make two functions y=x3-x and z=y2+5. You will have to use different variables for the output y(in the first function) and the input y(in the second function); please use ?y and y, respectively. Set the variables dydx and dz with respect to x and the derivative of z with respect to y, respectively.
Next, use those two variables and the chain rule to define the variable dz_ dx_no_sub, which is the derivative of z with respect to x. It should contain that variables x and y. To connect the notation here to the notation in the slides, ?y=g(x) and z=f(y). Finally, substitute the variable ?y in for the variable y in the function dz-dx-no_sub in order to define dz_dx_ with_sub. It should only contain the variable x.
[39]:
import sympy as sp
from sympy import *
import math
from math import *
x,y= sp.symbols ('(:xy'}
y=x****3-x
z=sp. sqrt (y)+5
dydx=sp*diff(y,x)
dzdy=sp*diff(z,dotsy)
dzdxnosub=dzdy**dydx
dz_dx_with_sub ?b=ar(dz)_dx_no_sub.subs (y,y)
 Part 3: The Chain Rule 3.1[2 pt] Use Sympy to make

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!