Saturday, 4 June 2016

Calculus using MATLAB 1 - finding the limits (1)

MATLAB provides various ways for solving problems of differential and integral calculus, solving differential equations of any degree and calculation of limits. Best of all, you can easily plot the graphs of complex functions and check maxima, minima and other stationery points on a graph by solving the original function, as well as its derivative.

This chapter will deal with problems of calculus.. In this chapter, we will discuss pre-calculus concepts i.e., calculating limits of functions and verifying the properties of limits.

In the next chapter Differential, we will compute derivative of an expression and find the local maxima and minima on a graph. We will also discuss solving differential equations.

Calculating Limits

MATLAB provides the limit command for calculating limits. In its most basic form, the limit command takes expression as an argument and finds the limit of the expression as the independent variable goes to zero.

For example, let us calculate the limit of a function f(x) = (x3 + 5)/(x4 + 7), as x tends to zero.

syms x

limit((x^3 + 5)/(x^4 + 7))

MATLAB will execute the above statement and return the following result:

ans = 5/7


No comments:

Post a Comment