Math Lab 5 - Jupyter Notebook
Math Lab 5 - Jupyter Notebook
Out[5]: 2𝑥 − 𝑦
𝑥 − 2𝑦
In [6]: #make eq1 and eq2, to solve it would be sp.solve then [eq1, eq2], [x,y]
horizontal_p = sp.solve([2*x-y, lhs-rhs],[x,y])
print(horizontal_p)
vertical_p = sp.solve([],[x,y])
In [20]: #3a
x = sp.symbols('x')
y = (x**4) * ((7+x)**(1-(x**2)))
f = sp.expand_log(sp.log(y), force=True)
print(f)
(1 - x**2)*log(x + 7) + 4*log(x)
In [24]: #3b
logydiff=sp.diff((1-(x**2))*((sp.log(x+7))+4)*(sp.log(x)),x)
print(logydiff)
In [25]: #3c
ydiff = logydiff * y
print(ydiff)
In [28]:
ive of the derivative of the log is x**4*(x + 7)**(1 - x**2)*(-2*x*log(x + 7) + (1 - x**2)/(x + 7)) + 4*x**3*(x + 7)**(1 - x**2),
The derivative of y found with the derivative of the derivative of the log is x**4*(x + 7)**(1 - x**2)*(-2*x*log(x + 7) + (1 -
x**2)/(x + 7)) + 4*x**3*(x + 7)**(1 - x**2), the derivative of y is x**4*(x + 7)**(1 - x**2)*(-2*x*log(x + 7) + (1 - x**2)/(x +
7)) + 4*x**3*(x + 7)**(1 - x**2)
In [ ]: