Sharedfirst_steps / InClass / Tangent and Velocity Problems.sagewsOpen in CoCalc

Create an animation showing the tangent line being approached from left.

Create an animation showing the tangent line being approached from right.


x=var('x')
u=var('u')
w=var('w')
Background=plot(x^2,0,4)
Times=[1+1/t for t in range(20,1,-1)]
for i in range(20): Times.append(2+2*i/20)
Times=Times[::-1]
Films=[plot(((w^2-1)/(w-1))*(u-1)+1,0,4,aspect_ratio=1/4,ymax=16,ymin=-1)+Background for w in Times]
a=animate(Films)
a.show()

Showing the numerical data of the slopes m_x for x approaching 1 from left.

Showing the numerical data of the slopes m_x for x approaching 1 from right.

Compute the average speed over a period of time.

Interact: please open in CoCalc
2626c048-df1a-4ed0-9702-6a9e6aef07c0