Math — Plot: Function & Its Derivative
y = x^2 alongside its derivative y' = 2x.
Rendering…
Make it your own.
{
"data": [
{"type":"scatter","mode":"lines","name":"f(x)=x^2","line":{"color":"#2563eb","width":3},
"x":[-3,-2,-1,0,1,2,3],"y":[9,4,1,0,1,4,9]},
{"type":"scatter","mode":"lines","name":"f'(x)=2x","line":{"color":"#db2777","width":3},
"x":[-3,-2,-1,0,1,2,3],"y":[-6,-4,-2,0,2,4,6]}
],
"layout": {"title":"A function and its derivative","xaxis":{"title":"x"},"yaxis":{"title":"y"}}
}