Differentiate the following functions:
Here's how Sage tackles this one:
[fontsize=\tiny,fontfamily=courier,fontshape=tt,frame=single,label=\sage]
sage: t = var("t")
sage: diff(log(sqrt((1-cos(t))/(1+cos(t)))),t)
(cos(t) + 1)*(sin(t)/(cos(t) + 1) + (1 - cos(t))*sin(t)/(cos(t) + 1)^2)/(2*(1 - cos(t)))
sage: diff(log(sqrt((1-cos(t))/(1+cos(t)))),t).simplify_trig()
-sin(t)/(cos(t)^2 - 1)
Since
Here's how Sage tackles this one:
[fontsize=\tiny,fontfamily=courier,fontshape=tt,frame=single,label=\sage] sage: diff(arcsin(sqrt((1-cos(x))/2)),x) sin(x)/(2*sqrt(2)*sqrt(1 - (1 - cos(x))/2)*sqrt(1 - cos(x))) sage: diff(arcsin(sqrt((1-cos(x))/2)),x).simplify_trig() sin(x)/(2*sqrt(1 - cos(x))*sqrt(cos(x) + 1)) sage: diff(arcsin(sqrt((1-cos(x))/2)),x).simplify_radical() sin(x)/(2*sqrt(1 - cos(x))*sqrt(cos(x) + 1))Here we see again that Sage does not simplify the result down to the final answer. Nonetheless, simplify_trig is useful. Since
Here's how Sage tackles this Exercise:
[fontsize=\scriptsize,fontfamily=courier,fontshape=tt,frame=single,label=\sage]
sage: a = var("a")
sage: diff(exp(a*x)*log(sin(a*x)),x)
a*e^(a*x)*log(sin(a*x)) + a*e^(a*x)*cos(a*x)/sin(a*x)
Here's how Sage tackles this one:
[fontsize=\scriptsize,fontfamily=courier,fontshape=tt,frame=single,label=\sage] sage: diff(arctan(log(3*x)),x) 1/(x*(log(3*x)^2 + 1))
Here's how Sage tackles this one:
[fontsize=\scriptsize,fontfamily=courier,fontshape=tt,frame=single,label=\sage]
sage: a,b,m,n = var("a,b,m,n")
sage: diff((b-a*x^m)^(n/3),x)
-a*m*n*x^(m - 1)*(b - a*x^m)^(n/3 - 1)/3
Here's how Sage tackles this one:
[fontsize=\scriptsize,fontfamily=courier,fontshape=tt,frame=single,label=\sage]
sage: a,m = var("a,m")
sage: diff(a^(sin(m*x)^2),x)
2*a^sin(m*x)^2*log(a)*m*cos(m*x)*sin(m*x)
david joyner 2008-11-22