%html
Calculus, plotting & interact
Exercise: Let . Define as a symbolic function.
%html
Exercise: Plot on the domain .
%html
Exercise: Find numerical approximations for the critical values of by taking the derivative of and using the find_root method. (Hint: plot the derivative.)
%html
Exercise: Find numerical approximations for the critical values of by taking the derivative of 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 of the tangent line to the function at the points and .
%html
Exercise: Write a function that takes as an argument and returns the equation of the tangent line to through the point .
%html
Exercise: Write a function that takes as an argument and plots together with the the tangent line to through the point . Make the line red.
%html
Exercise: Convert the function you created above into an @interact object. Turn the argument into a slider. (Hint: see the documentation for interact for examples on creating sliders.)