Differentiation, MATLAB in Mathematics

Differentiation:

The derivative of a function y = f(x) can be written as follows

107_Differentiation.png

or f  '(x) and is defined as the rate of change of the dependent variable y with respect to x. The derivative is the slope of line tangent to the function at given point.

The MATLAB has a function polyder that will find the derivative of a polynomial. For illustration, for the polynomial x3 + 2x2 - 4x + 3, that would be represented by the vector

 [1 2 - 4 3], the derivative is found by:

>> origp = [1 2 -4 3];

>> diffp = polyder(origp)

diffp =

3 4 -4

that shows that the derivative is the polynomial 3x2 + 4x - 4. The function polyval can be used then to find the derivative for certain values of x; for illustration for x = 1, 2, and 3:

>> polyval(diffp, 1:3)

ans =

3 16 35

The derivative can be written as folows 

692_Differentiation1.png

and can be approximated by difference equation.

Posted Date: 10/22/2012 8:59:42 AM | Location : United States







Related Discussions:- Differentiation, Assignment Help, Ask Question on Differentiation, Get Answer, Expert's Help, Differentiation Discussions

Write discussion on Differentiation
Your posts are moderated
Related Questions
Plot Functions: Faraway, we have plotted to generate two-dimensional plots and bar to generate bar charts. We have seen how to clear the Figure Window by using clf, and how to

This project requires you to use the ideas of Chapter 25 regarding maximization of a function. Here we assume that evolution has acted to generate highly efficient foragers. By hig

Writing to Files: There are many lower level functions which can write to files. We will focus on the fprintf function that can be used to write a file and also to append to a

Write a MATLAB function [d1, u1, l1, c1, r1] = NaiveGaussArrow(d, u, l, c, r) that takes as input the 5 vectors de ned above representing A. This function performs Naive Gauss redu

Illustration of Writing to files: Here is the other illustration in which a matrix is written to a file. At First, an arbitrary 2 × 4 matrix is generated, and then it is writt

Common form of the switch statement: The common form of the switch statement is as shown below:   switch switch_expression   case caseexp1    action1   case cas

Using Functions with the Vectors and Matrices: As MATLAB is written to work with the vectors and matrices, the whole vector or matrix can be passed as an argument to the funct

Strcat function - Concatenation : The strcat function, though, will eliminate the trailing blanks from strings before concatenating. Note that in these illustrations, the trail

Minimum and Maximum Value The MATLAB has built-in functions for numerous statistics. For illustration, min and max to find the minimum or maximum value in a data set. >> x

Functions to create special matrices: The MATLAB also has various functions which create special matrices. For illustration, the zeros function generates a matrix of all zeros