Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
| Download
Views: 1263
Image: ubuntu2004
# Your name here Ashley Garvey

(1.) Define the functions f(x)=tan(πx24){\displaystyle f(x) = \tan\left(\frac{\pi x^2}{4}\right)} and g(x)=πx+1πg(x) = \pi x + 1 - \pi in Sage for use throughout this exercise.

plot(tan((pi*x**2)/4))
f(x)=tan((pi*x**2)/4)
plot(pi*x+1-pi)
g(x)=pi*x+1-pi

(2.) Plot both functions on the same set of axes. Choose a scaling that lets you see the key features of each graph.

plot(tan(pi*x**2)/4) + plot(pi*x+1-pi)

(3.) Find an xx-value where the two graphs intersect. You may identify this value visually. Make sure you also establish mathematically that you have found an xx-value where the graphs intersect.

f(x)=tan((pi*x**2)/4)
g(x)=pi*x+1-pi
find_root(tan((pi*x**2)/4)==pi*x+1-pi)
var(x)
solve(tan((pi*x**2)/4)==pi*x+1-pi)

(4.) Find the corresponding yy-value where the intersect. You may identify this value visually. Make sure you also establish mathematically that you have found a point (x,y)(x, y) where the graphs intersect.

(5.) One of the graphs is a line. What is its slope? In Sage, we can calculate the derivative of f(x)f(x) using the following command: derivative(f(x), x)\texttt{derivative(f(x), x)}. Use Sage to find the derivative of f(x)f(x). Use Sage to find the value of the derivative of f(x)f(x) at x=1x = 1. Explain how this value compares with the slope of the line you identified in this question. From a calculus point of view, what is the significance of how f(1)f'(1) compares to the slope? Refer to your graph in your answer.

#the slope of g(x) is pi
derivative(f(x), x)
︠ba55f18c-1aa8-4281-8688-f2a8de97de07︠ derivative(f(1), 1) #first when we found the derivative of the f(x) we were finding the derivative of the entire function. secondly when we found the derivative of the funtion we were only finding the derivative 0f the function at the particular point where x=1.