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

Estimate round to the nearest tenth of an inch, One inch equals 2.54 centim...

One inch equals 2.54 centimeters. The dimensions of a table made in Europe are 85 cm huge by 120 cm long. What is the width of the table in inches? Round to the nearest tenth of an

Homogeneous odes, how do you solve a homogeneous ode that''s not in a multi...

how do you solve a homogeneous ode that''s not in a multiplication or division form

Construct a venn diagram, In a survey of 85 people this is found that 31 wa...

In a survey of 85 people this is found that 31 want to drink milk 43 like coffee and 39 wish tea.  As well 13 want both milk and tea, 15 like milk & coffee, 20 like tea and coffee

Quistins, define even and odd function state whether given function are eve...

define even and odd function state whether given function are even odd or neither 1 f x =sin x cos x 2 f x {x}=x +x3n #Minimum 100 words accepted#

the demand forecast, The King Company is producing two types of products: ...

The King Company is producing two types of products: A and B. Both products are produced on the similar machining operation. The machines operate on two 8-hour shifts, 5 days per w

Homework help, Eduardo is combining two 6 inches pieces of wood with a piec...

Eduardo is combining two 6 inches pieces of wood with a piece that measures 4 inches. How many total inches of wood does he have?

Simplification, 4.4238/[1.047+{1.111*[9.261/7.777]}*1.01

4.4238/[1.047+{1.111*[9.261/7.777]}*1.01

Indices, 16 raised to the power x eqaual to x raised to the power 2. find x...

16 raised to the power x eqaual to x raised to the power 2. find x

Example of communicating the meaning of addition, Ms. Mehta teaches in a go...

Ms. Mehta teaches in a government primary school in Delhi. The children who come to her in Class 1 are familiar with a few numbers. At the beginning of the session, she asks the ch

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