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

surfaces z + |y| = 1, Describe and sketch the surfaces z + |y| = 1 and (x ...

Describe and sketch the surfaces z + |y| = 1 and (x   2) 2 y + z 2 = 0.

Find the volume of ice cream cone, An ice-cream cone has a hemispherical to...

An ice-cream cone has a hemispherical top. If the height of the cone is 9 cm and base radius is 2.5 cm, find the volume of ice cream cone.

Equation of the plane x + 4y 3z = 1, Find the equation of the plane thro...

Find the equation of the plane through (2, 1, 0) and parallel to x + 4y   3z = 1.

Determine the second derivative of q (t ) = sec (5t ), Determine the secon...

Determine the second derivative for following functions.                             Q (t ) = sec (5t ) Solution : Following is the first derivative.              Q′ (t

Build upon the childs background with maths, BUILD UPON THE CHILDS BACKGROU...

BUILD UPON THE CHILDS BACKGROUND :  As you read in previous, each child is unique. Individual children vary in age, level of cognition, background, etc. What implications does thi

Draw and label the graphs of the pdf, 1. What is the value of Φ(0)? 2. Φ...

1. What is the value of Φ(0)? 2. Φ is the pdf for N(0, 1); calculate the value of Φ(1.5). 3.  Suppose X ~ N(0, 1). Which, if either, is more likely: .3 ≤ X ≤ .4, or .7 ≤ X ≤

Example of developing estimation skills, There are a variety of strategies ...

There are a variety of strategies that people use for developing this ability. For instance, while adding 1821,695 and 250, a person could estimate it mentally i) by rounding of

Geometry, finding missing values from given triangle diagra m..

finding missing values from given triangle diagra m..

Percentage of values will fall in the normal group, If the normal range is ...

If the normal range is 65-10 mg/dl, then what percentage of values will fall in the normal group?

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