Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 1427
Kernel: SageMath (stable)

%html

Calculus, plotting & interact

Exercise: Let f(x)=x4+x313x2x+12f(x) = x^4 + x^3 - 13 x^2 - x + 12. Define ff as a symbolic function.

%html

 

Exercise: Plot ff on the domain 4.5x3.5-4.5 \leq x \leq 3.5.

%html

 

Exercise: Find numerical approximations for the critical values of ff by taking the derivative of ff and using the find_root method. (Hint: plot the derivative.)

%html

 

Exercise: Find numerical approximations for the critical values of ff by taking the derivative of ff and using the roots(ring=RR) method. (Here, RR stands for the real numbers.) Are there any roots over the ring of rationals (QQ)?

%html

Exercise: Compute the equation y=mx+by = mx +b of the tangent line to the function ff at the points x=1x=-1 and x=2x=2.

%html


Exercise: Write a function that takes xx as an argument and returns the equation of the tangent line to ff through the point xx.

%html


Exercise: Write a function that takes xx as an argument and plots ff together with the the tangent line to ff through the point xx. Make the line red.

%html


Exercise: Convert the function you created above into an @interact object. Turn the argument xx into a slider. (Hint: see the documentation for interact for examples on creating sliders.)