Find the integral of a function, Mathematics

Assignment Help:

We want to find the integral of a function at an arbitrary location x from the origin. Thus,

1486_find the integral of a function.png

where I(x=0) is the value of the integral for all times less than 0. (Essentially, I(x=0) is the unknown constant of integration or the initial condition.) From the class lecture on the trapezoidal rule for numerical integration, it can be seen that this function can be approximated by

2413_find the integral of a function1.png

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule. Your function should accept two vectors as inputs, x and f.

The first vector (x) contains the independent variable data (the points at which the values of the function are known. The second vector (f) should contain the values of the function at the points provided in the first vector. Your function should return the integral of f with respect to x, as a function of x.


Related Discussions:- Find the integral of a function

Trignometry, whta are the formulas needed for proving in trignometry .

whta are the formulas needed for proving in trignometry .

Explain simple classification and chance and probability, E1) From your exp...

E1) From your experience, and what you have studied so far, by which age would-you expect an average child to be ready to acquire the following concepts? i) Simple classificatio

Linear programming , use the simplex method to solve the following lp probl...

use the simplex method to solve the following lp problem. max z = 107x1 + x2 + 2x3 subject to 14x1 + x2 - 6x3 + 3x4 = 7 16x1 + x2 - 6x3 3x1 - x2 - x3 x1,x2,x3,x4 > = 0

Algebra, 25 algebraic equations that equal 36

25 algebraic equations that equal 36

How do you traverse a binary tree, How do you traverse a Binary Tree?  Desc...

How do you traverse a Binary Tree?  Describe Preorder, Inorder and Postorder traversals with example.     Ans: Traversal of tree means tree searching for a aim. The aim may be

Solving a system of 2 equations addition-subtraction method, Solving a Syst...

Solving a System of 2 Equations Using the Addition/Subtraction Method To solve a system of linear equations using the addition/subtraction method, both equations should first b

External forces, It is the catch all force. If there are some other forces ...

It is the catch all force. If there are some other forces which we decide we need to act on our object we lump them in now and call this good. We classically call F(t) the forcing

Maths For Fun, Ask Suppose I offer you a loan to start a safety matchstick ...

Ask Suppose I offer you a loan to start a safety matchstick production unit on the following terms: I shall first advance you Rs.50,000/- to set up your unit, and wait for 3 month

Partial derivatives, So far we have considered differentiation of functions...

So far we have considered differentiation of functions of one independent variable. In many situations, we come across functions with more than one independent variable

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