Title: Chapter 11 Calculus
1Chapter 11Calculus
2Symbolic ExpressionsRequiredgt Symbolic Math
Toolboxgt Use Symbolic Variables
3Functions for Symbolic Processingx sym(x)
Creates the symbolic
variable with name x.syms x y u v Creates
the symbolic variables x,
y, u, v.Simplify(ans) Simplifies the
expression ans.
4Symbolic Expression Examplegtgtsyms x
ygtgtsxygtgtrsqrt(x2y2)
5Symbolic Expression Examplegtgtn3gtgtsyms
xgtgtAx.((0n)(0n))gtgtA 1, 1, 1, 1 1,
x, x2, x3 1, x2, x4, x6 1, x3, x6,
x9
6Manipulating ExpressionsUse the expand
commandgtgtsyms x ygtgtexpand((xy)2)ans x22
xyy2gtgtexpand(sin(xy))ans sin(x)cos(y)cos
(x)sin(y)
7Evaluating ExpressionsUse subs(E, old, new) or
double(y)gtgtsyms xgtgtEx26x7gtgtGsubs(E,x,2)
G 23
8Multiple Variablesgtgtsyms x y zgtgtEx26y2zgt
gtsubs(E,x,y,z,2,2,3)ans 22
9Using Double Command Examplegtgtsqroot2sym(sqrt(2
))gtgty6sqroot2y 62(1/2)gtgtzdouble(y)z
8.4853
10Plotting ExpressionsUse ezplot commandgtgtsyms
xgtgtEx2-6x7gtgtezplot(E,-2 6)
11(No Transcript)
12Symbolic Calculus Functionsdiff(E) Returns
the derivative of the expression E with respect
to the default independent variable.diff(E,v)
To variable v.diff(E,v,n) nth derivative
int(E) Returns the integrallimit(E)
Returns the limit
13(No Transcript)
14(No Transcript)
15Laplace Transformslaplace(exp) Returns
Laplace transform.ilaplace(exp) Returns
inverse Laplace.
16(No Transcript)