Calculus In the Mathematica examples below, boldface type is Input, regular type is Output.
Differentiation is always possible, but integration sometimes has to be done numerically instead of symbolically.
D[ Sin[x]-x^2, x ] -2 x + Cos[x]
Integrate[ Sin[x]-x^2, x ] (-x^3 - 3 Cos[x])/3 Integrate[ Sqrt[Sin[x]], x ] Integrate[ Sqrt[Sin[x]], x ] (Can't do it symbolically!!)
Integrate[ x^4, {x, 1, w} ]
-1/5 + w^5/5
Integrate[E^(-x^2-y^2), {x,0,Infinity}, {y,-Infinity,0}]
Pi/4 (Double integral!! Infinite range!!)
Integrate[ Log[k]^Sin[v], {k,2,3}, {v,0,1} ]
Integrate[ Log[k]^Sin[v], {k,2,3}, {v,0,1} ] (fails)
NIntegrate[ Sqrt[Sin[x]], {x, 0, Pi}]
2.39628
NIntegrate[ Log[k]^Sin[v], {k,2,3}, {v,0,1} ]
0.956122
NIntegrate[ Sqrt[Sin[x]], {x, 0, Pi}, WorkingPrecision->35]
2.396280469471184414879845
DSolve[ y''[t]==3-y[t], y[t], t ]
{{y[t] -> 3 + C[2] Cos[t] - C[1] Sin[t]}}
DSolve[ {y''[t]==3-y[t], y[0]==10}, y[t], t ]
{{y[t] -> 3 + 7 Cos[t] - C[1] Sin[t]}}
See more on solving Ordinary Differential Equations
Table of Contents