Differentiation, MATLAB in Mathematics

Assignment Help:

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.


Related Discussions:- Differentiation

Use of string variables, Use of string variables: The Characters invol...

Use of string variables: The Characters involve letters of the alphabet, punctuation marks, digits, white space, and control characters. The Control characters are characters

Indexed empty matrix, Indexed empty matrix: The Individual elements ca...

Indexed empty matrix: The Individual elements cannot be eliminated from matrices, as matrices always have the similar number of elements in every row. >> mat = [7 9 8; 4 6

Animation, Animation: In this part we will observe a couple of ways to...

Animation: In this part we will observe a couple of ways to animate a plot. These are visuals, therefore the outcomes can't really be shown here; it is essential to type these

Script a MATLAB program, Script a MATLAB program which meets the following ...

Script a MATLAB program which meets the following speci cations: The program expects an input of a two-variable real-valued continuous function f : R^2--> R The program is to cal

Writing and reading spreadsheet files, Writing and Reading Spreadsheet File...

Writing and Reading Spreadsheet Files: The MATLAB functions xlswrite & xlsread will write to and read from the spreadsheet files which have the extension .xls. For illustratio

Example of minimum and maximum value, Example of Minimum and Maximum Value ...

Example of Minimum and Maximum Value For matrices, the functions min and max operate column wise by the default: >> mat = randint(2,4,[1 20]) mat =    9   10   1

Morphological reconstruction, how can reconstruct just part of an image usi...

how can reconstruct just part of an image using imreconstruct?

Refer the subset of a matrix, Refer the subset of a matrix: It is also...

Refer the subset of a matrix: It is also possible to refer to the subset of a matrix. For illustration, this refers to the first & second rows, second & third columns: >> m

Counting in a while loop, Counting in a While Loop: Whenever it is not...

Counting in a While Loop: Whenever it is not known ahead of the time how many values will be entered into the script, it is often essential to count the number of values which

Customizing plots, Customizing Plots : There are numerous ways to custo...

Customizing Plots : There are numerous ways to customize figures in the Figure Window. On clicking the Plot Tools icon will bring up the Property Editor & Plot Browser, with ma

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd