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

Co-ordinate geometry, CO-ORDINATE GEOMETRY : Mathematics  is  the  tool  s...

CO-ORDINATE GEOMETRY : Mathematics  is  the  tool  specially suited  for  dealing with  abstract concepts  of any  kind  and there  is  no limit  to  its  power  in this  field.

Hexagon, how many sides does a regular hexagon have?

how many sides does a regular hexagon have?

How to solve lim 1-cos(x)/1-cos(4x) as x tends to zero, Use L''hopital''s r...

Use L''hopital''s rule  since lim X-->0  1-cos(x)/1-cos(4x)  is in the indeterminate form 0/0 when we apply the limt so by l''hoptital''s rule differentiate the numerator and den

Give the introduction to amino acid and nucleotide metabolis, Give the Intr...

Give the Introduction to amino ACID and nucleotide metabolism ? Here, we studied about the chemistry of proteins and amino acids. We studied that the amino acids are used for p

Explain what is symmetry in maths, Symmetry Definition : A line of sy...

Symmetry Definition : A line of symmetry divides a set of points into two halves, each being a reflection of the other. Each image point is also a point of the set. Defin

Determine the leading order term the asymptotic expansion, Submit your work...

Submit your working in (neat) handwritten form (do not type up your solutions). For the plots that you generate in Maple or Matlab, you can print them out and attach them at the en

If oa = ob = 14cm, If OA = OB = 14cm, ∠AOB=90 o , find the area of shaded r...

If OA = OB = 14cm, ∠AOB=90 o , find the area of shaded region.  (Ans:21cm 2 ) Ans:    Area of the shaded region = Area of ? AOB - Area of Semi Circle = 1/2  x 14 x

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