Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions