Professional Documents
Culture Documents
Differentiate Symbolic Expression - MATLAB
Differentiate Symbolic Expression - MATLAB
Differentiate Symbolic Expression - MATLAB
MATLAB Products
MATLAB
Parallel Computing
Parallel Computing Toolbox
MATLAB Distributed Computing Server
Math, Statistics, and Optimization
Symbolic Math Toolbox
Partial Differential Equation Toolbox
Statistics Toolbox
Curve Fitting Toolbox
Optimization Toolbox
Global Optimization Toolbox
Neural Network Toolbox
Model-Based Calibration Toolbox
Control System Design and Analysis
Control System Toolbox
System Identification Toolbox
Fuzzy Logic Toolbox
Robust Control Toolbox
Model Predictive Control Toolbox
Aerospace Toolbox
Signal Processing and Communications
Signal Processing Toolbox
DSP System Toolbox
Communications System Toolbox
Wavelet Toolbox
Fixed-Point Toolbox
RF Toolbox
Phased Array System Toolbox
Image Processing and Computer Vision
Image Processing Toolbox
Computer Vision System Toolbox
Image Acquisition Toolbox
Mapping Toolbox
Test and Measurement
Data Acquisition Toolbox
Instrument Control Toolbox
Image Acquisition Toolbox
OPC Toolbox
Vehicle Network Toolbox
Computational Finance
Financial Toolbox
Econometrics Toolbox
Datafeed Toolbox
Fixed-Income Toolbox
Financial Derivatives Toolbox
Computational Biology
Bioinformatics Toolbox
SimBiology
Code Generation
MATLAB Coder
Filter Design HDL Coder
Application Deployment
MATLAB Compiler
MATLAB Builder NE (for Microsoft .NET Framework)
MATLAB Builder JA (for Java language)
MATLAB Builder EX (for Microsoft Excel)
Client for
Server for
Client for
Server for
Model Link
Model Link
C/C++
C/C++
Ada
Ada
SL (for Simulink)
TL (for dSPACE TargetLink)
Denmark
Finland
France
Deutschland
India
Ireland
Italia
Luxembourg
Netherlands
Norway
Portugal
Espaa
Sweden
Schweiz / Suisse
United Kingdom
All Other Countries
| Contact Us | Store
Create AccountLog InProduct
DocumentationTrial Software Product Updates Request a Quote
Search MATLAB Documentation
R2011b Documentation Symbolic Math Toolbox
View documentation for other releases Learn more about Symbolic Math
Toolbox
Contents Index
Introduction
Getting Started
User's Guide
Functions
Calculus
diff
int
jacobian
limit
symprod
symsum
taylor
Linear Algebra
Simplification
Solution of Equations
Variable-Precision Arithmetic
Arithmetic Operations
Special Functions
MuPAD
Pedagogical and Graphical Applications
Conversions
Basic Operations
Integral and Z-Transforms
Examples
Release Notes
Symbols A B C D E F G H I J K L M N O P Q R S T U V W X
Y Z diff Differentiate symbolic expression
Syntax
diff(expr)
diff(expr,v)
diff(expr, sym('v'))
diff(expr,n)
diff(expr,v,n)
diff(expr, n, v)
Description
diff(expr) differentiates a symbolic expression expr with respect to its free
variable as determined by symvar.
diff(expr,v) and diff(expr, sym('v')) differentiate expr with respect to v.
diff(expr,n) differentiates expr n times. n is a positive integer.
diff(expr,v,n) and diff(expr, n, v) differentiate expr with respect to v n
times.
Examples
Differentiate the following single-variable expression one time:
syms x;
diff(sin(x^2))The result is
ans =
2*x*cos(x^2)
Differentiate the following single-variable expression six times:
syms t;
diff(t^6,6)The result is
ans =
720
Differentiate the following expression with respect to t:
syms x t;
diff(sin(x*t^2), t)The result is
ans =
2*t*x*cos(t^2*x)See Also
int | jacobian | symvar
How To
Differentiation
Was this topic helpful?