You are on page 1of 6

Differentiate symbolic expression - MATLABProducts & Services

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)
Spreadsheet Link EX (for Microsoft Excel)
Database Connectivity and Reporting
Database Toolbox
MATLAB Report Generator
Simulink Products

Simulink
Fixed-Point Modeling
Simulink Fixed Point
Event-Based Modeling
Stateflow
SimEvents
Physical Modeling
Simscape
SimMechanics
SimDriveline
SimHydraulics
SimRF
SimElectronics
SimPowerSystems
Control System Design and Analysis
Simulink Control Design
Simulink Design Optimization
Aerospace Blockset
Signal Processing and Communications
DSP System Toolbox
Communications System Toolbox
SimRF
Computer Vision System Toolbox
Code Generation
Simulink Coder
Embedded Coder
Simulink HDL Coder
Simulink PLC Coder
DO Qualification Kit (for DO-178)
IEC Certification Kit (for ISO 26262 and IEC 61508)
Rapid Prototyping and HIL Simulation
xPC Target
xPC Target Embedded Option
Real-Time Windows Target
Verification, Validation, and Test
Simulink Verification and Validation
Simulink Design Verifier
SystemTest
EDA Simulator Link
Simulink Code Inspector
Simulation Graphics and Reporting
Simulink 3D Animation
Gauges Blockset
Simulink Report Generator
Polyspace Products

Polyspace Client for C/C++
Polyspace Server for C/C++
Polyspace Client for Ada
Polyspace Server for Ada
Polyspace Model Link SL (for Simulink)
Polyspace Model Link TL (for dSPACE TargetLink)
Polyspace UML Link RH (for IBM Rational Rhapsody)
DO Qualification Kit (for DO-178)
IEC Certification Kit (for ISO 26262 and IEC 61508)
Services

Software Maintenance
Training
Consulting
Third-Party Products & Services
Solutions

Capabilities

Technical Computing
Data Acquisition
Data Analysis
Mathematical Modeling
Algorithm Development
Parallel Computing
Desktop and Web Deployment
Simulation and Model-Based Design
System Design and Simulation
Physical Modeling
Discrete-Event Simulation
Rapid Prototyping
Embedded Code Generation
HDL Code Generation and Verification
Verification, Validation, and Test
Applications

Embedded Systems
Control Systems
Digital Signal Processing
Communications Systems
Image and Video Processing
FPGA Design
Mechatronics
Test and Measurement
Computational Biology
Computational Finance
Industries

Aerospace and Defense
Automotive
Biotech and Pharmaceutical
Communications
Electronics and Semiconductors
Energy Production
Financial Services
Industrial Automation and Machinery
Other Industries
Academia

Learn
Student Competitions Interactive Tutorials Books for Getting Started
MATLAB & Simulink Student Version Teach
Classroom Resources Hardware for Project-Based Learning Books Based on
MATLAB and Simulink Books by Cleve Moler Academic Webinars Examples
published with MATLAB Student Version Evaluation for Instructors Software
for High Schools Research
Application Areas Newsletters Technical Articles User Stories Book Program

for Authors Support

Documentation Downloads My Account Installation Support Product Support Us
er
Community

File Exchange MATLAB Answers MATLAB Newsgroup Link Exchange Contest Blogs
Loren on the Art of MATLAB Guy and Seth on Simulink Steve on Image
Processing Mike on the MATLAB Desktop Doug's MATLAB Video Tutorials File
Exchange Pick of the Week Events

Webinars Seminars Conferences Tradeshows Company

About MathWorks Careers Social Mission Press Room Newsletters User Stories

United States
United States
Canada
Australia
sterreich
Belgium

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?


Free Symbolic Math Interactive Kit
See how symbolic computations can help you find analytical solutions to math and

engineering problems.
Get free kit Trials Available
Try the latest version of symbolic math products.
Get trial software 1984-2011- The MathWorks, Inc. - Site Help -
Patents - Trademarks - Privacy Policy - Preventing Piracy -

RSS

You might also like