Achievable logoAchievable logo
FE Civil
Sign in
Sign up
Purchase
Textbook
Practice exams
Support
How it works
Exam catalog
Mountain with a flag at the peak
Textbook
Introduction
1. Mathematics
1.1 Coordinate geometry
1.2 Geometric feature and trigonometry
1.3 Algebra
1.4 Calculus
1.5 Matrices and Vectors
2. Combinatorics, probability and statistics
3. Engineering economics
4. Statics
5. Materials
6. Dynamics
7. Mechanics of materials
8. Fluid mechanics
9. Soil mechanics
10. Structural engineering
11. Concrete structure design
12. Water resources engineering
13. Environmental engineering
14. Transportation engineering
15. Surveying, construction, ethics and professional practice
16. Wrapping up
(change me)
Achievable logoAchievable logo
1.5 Matrices and Vectors
Achievable FE Civil
1. Mathematics
Our FE Civil course is currently in development and is a work-in-progress.

Matrices and Vectors

10 min read
Font
Discuss
Share
Feedback

This chapter covers the following topics:

  • Matrices and their operations
  • Vectors
  • Gradient, divergence, and curl
  • Identities
  • Newton’s method for root extraction
  • Trapezoidal rule for numerical integration
  • Simpson’s rule for numerical integration

Matrices and their operations

A matrix is a rectangular array of numbers arranged in rows and columns. We usually write an m×n matrix (with m rows and n columns) as:

A=​a11​a21​⋮am1​​a12​a22​⋮am2​​……⋱…​a1n​a2n​⋮amn​​​

Addition and subtraction

You can add or subtract two matrices only if they have the same dimensions. The operation is done element by element.

Addition:

C=A+B=​a11​+b11​a21​+b21​⋮am1​+bm1​​a12​+b12​a22​+b22​⋮am2​+bm2​​……⋱…​a1n​+b1n​a2n​+b2n​⋮amn​+bmn​​​

Subtraction:

C=A−B=​a11​−b11​a21​−b21​⋮am1​−bm1​​a12​−b12​a22​−b22​⋮am2​−bm2​​……⋱…​a1n​−b1n​a2n​−b2n​⋮amn​−bmn​​​

Matrix multiplication

Matrix multiplication is not done element by element. Instead, each entry of the product comes from a row-by-column dot product.

C=AB

If A is an m×p matrix and B is a p×n matrix, then C is an m×n matrix, and each entry is

cij​=k=1∑p​aik​bkj​

Matrix multiplication is defined only when the number of columns of A matches the number of rows of B.

Determinant of a matrix

The determinant is defined for square matrices. It produces a single number that is used in several places, including checking whether a matrix is invertible.

For a 2×2 matrix:

det(A)=​ac​bd​​=ad−bc

For a 3×3 matrix:

det(A)=​a11​a21​a31​​a12​a22​a32​​a13​a23​a33​​​=a11​​a22​a32​​a23​a33​​​−a12​​a21​a31​​a23​a33​​​+a13​​a21​a31​​a22​a32​​​

Adjoint of a matrix

The adjoint (also called the adjugate) of a square matrix A is the transpose of its cofactor matrix:

adj(A)=Cof(A)T

Inverse of a matrix

A square matrix A has an inverse only if its determinant is nonzero (that is, det(A)=0). When the inverse exists, it is given by:

A−1=det(A)1​adj(A)

Identity matrix

An identity matrix is a square matrix with ones on the diagonal and zeros everywhere else:

In​=​10⋮0​01⋮0​……⋱…​00⋮1​​

It acts like the number 1 in matrix multiplication:

AI=IA=A

Properties of matrices

  1. Associative property: (AB)C=A(BC)
  2. Distributive property: A(B+C)=AB+AC
  3. Commutative property (addition): A+B=B+A
  4. Transpose of a product: (AB)T=BTAT
  5. Inverse property: AA−1=A−1A=I

This section has outlined the main matrix operations and the key definitions used with square matrices.

Vectors

A vector is a quantity that has both magnitude and direction. In three dimensions, a vector is often written in component form as:

A=a1​i^+a2​j^​+a3​k^

Where:

  • a1​,a2​,a3​ are the components of the vector in the x, y, and z directions.
  • i^,j^​,k^ are unit vectors in the x, y, and z directions, respectively.

Vector addition and subtraction

Addition

Vector addition combines components in the same direction:

A+B=(a1​+b1​)i^+(a2​+b2​)j^​+(a3​+b3​)k^

Subtraction

Vector subtraction subtracts components in the same direction:

A−B=(a1​−b1​)i^+(a2​−b2​)j^​+(a3​−b3​)k^

Dot product (scalar product)

The dot product of two vectors produces a scalar. It can be defined using magnitudes and the angle θ between the vectors:

A⋅B=∣A∣∣B∣cosθ

Or computed directly from components:

A⋅B=a1​b1​+a2​b2​+a3​b3​

  • Result: Scalar
  • Measures projection of one vector onto another.

Cross product (vector product)

The cross product of two vectors produces a vector perpendicular to both. Its magnitude depends on the angle θ between the vectors:

A×B=∣A∣∣B∣sinθ n^

Where n^ is the unit vector perpendicular to both A and B.

Using a determinant form:

A×B=​i^a1​b1​​j^​a2​b2​​k^a3​b3​​​

  • Result: Vector
  • Direction follows the right-hand rule.

Angle between two vectors

You can find the angle between two nonzero vectors using the dot product:

cosθ=∣A∣∣B∣A⋅B​

Projection of a vector

Scalar projection of A on B:

The scalar projection gives the signed length of A in the direction of B:

projB​A=∣B∣A⋅B​

Vector projection of A on B:

The vector projection gives the actual vector component of A parallel to B:

A∥​=(∣B∣2A⋅B​)B

Gradient, divergence, and curl

Gradient (∇f)

The gradient takes a scalar field f(x,y,z) and produces a vector field. The gradient points in the direction where f increases most rapidly.

∇f=∂x∂f​i^+∂y∂f​j^​+∂z∂f​k^


Divergence (∇·F)

The divergence takes a vector field F=Fx​i^+Fy​j^​+Fz​k^ and produces a scalar field:

∇⋅F=∂x∂Fx​​+∂y∂Fy​​+∂z∂Fz​​

  • Measures the “outflowing-ness” of a vector field at a point.

Curl (∇×F)

The curl takes a vector field F=Fx​i^+Fy​j^​+Fz​k^ and produces another vector field:

∇×F=​i^∂x∂​Fx​​j^​∂y∂​Fy​​k^∂z∂​Fz​​​

  • Measures the rotation or swirling strength of the field.

Identities

Vector algebra identities

Vector dot product properties

  1. Commutativity:

    A⋅B=B⋅A

  2. Distributive property:

    A⋅(B+C)=A⋅B+A⋅C

  3. Dot product with itself (magnitude squared):

    A⋅A=∣A∣2

  4. Unit vector dot products:

    i⋅i=j⋅j=k⋅k=1

  5. Perpendicular unit vectors:

    i⋅j=j⋅k=k⋅i=0

  6. Zero dot product condition:

    If A⋅B=0, then either:

    • A=0,
    • B=0,
    • or A is perpendicular to B.

Vector cross product properties

  1. Anti-commutativity:

    A×B=−B×A

  2. Distributive property:

    A×(B+C)=(A×B)+(A×C)

  3. Alternative distributive property:

    (B+C)×A=(B×A)+(C×A)

  4. Unit vector cross products:

    i×i=j×j=k×k=0

  5. Cyclic permutation:

    i×j=k,j×k=i,k×i=j

  6. Anti-symmetry property:

    j×i=−k,k×j=−i,i×k=−j

  7. Zero cross product condition:

    If A×B=0, then either:

    • A=0,
    • B=0,
    • or A is parallel to B.

Vector calculus identities

  1. Laplacian operator:

    ∇2ϕ=∇⋅(∇ϕ)=(∇⋅∇)ϕ

  2. Curl of a gradient:

    ∇×∇ϕ=0

  3. Divergence of a curl:

    ∇⋅(∇×A)=0

  4. Vector Laplacian identity:

    ∇×(∇×A)=∇(∇⋅A)−∇2A

Newton’s method for root extraction

Newton’s method (also called the Newton-Raphson method) is an iterative numerical technique for finding roots of a real-valued function f(x) (that is, values of x where f(x)=0).

The iteration formula is:

xn+1​=xn​−f′(xn​)f(xn​)​

  1. Choose an initial guess x0​
  2. Compute successive approximations using the formula
  3. Stop when the difference ∣xn+1​−xn​∣ is below a chosen tolerance

Example

To find the square root of 2, define a function whose root is 2​:

  • f(x)=x2−2
  • f′(x)=2x

Substitute into the iteration formula:

xn+1​=xn​−2xn​xn2​−2​

Trapezoidal rule for numerical integration

The trapezoidal rule estimates a definite integral by approximating the graph of f(x) with straight-line segments, forming trapezoids.

Single application

For f(x) over [a,b]:

∫ab​f(x)dx≈2b−a​[f(a)+f(b)]

Composite trapezoidal rule

Divide the interval into n equal subintervals of width h=nb−a​, then:

∫ab​f(x)dx≈2h​[f(x0​)+2i=1∑n−1​f(xi​)+f(xn​)]

Simpson’s rule for numerical integration

Simpson’s rule estimates a definite integral by fitting parabolas through points on the curve.

Single application

For f(x) over [a,b], with midpoint m=2a+b​:

∫ab​f(x)dx≈6b−a​[f(a)+4f(m)+f(b)]

Composite simpson’s rule

Let n be even and h=nb−a​:

∫ab​f(x)dx≈3h​[f(x0​)+4i=1,3,5,…∑n−1​f(xi​)+2i=2,4,6,…∑n−2​f(xi​)+f(xn​)]

Matrices and their operations

  • Matrix: rectangular array, m×n dimensions
  • Addition/subtraction: element-wise, same dimensions required
  • Multiplication: row-by-column dot product, defined if columns of A = rows of B
  • Determinant: defined for square matrices, used for invertibility
    • 2×2: ad−bc
    • 3×3: expansion by minors
  • Adjoint: transpose of cofactor matrix, adj(A)=Cof(A)T
  • Inverse: A−1=det(A)1​adj(A), exists if det(A)=0
  • Identity matrix: diagonal of ones, AI=IA=A
  • Properties: associative, distributive, commutative (addition), transpose of product, inverse property

Vectors

  • Vector: has magnitude and direction, written as A=a1​i^+a2​j^​+a3​k^
  • Addition/subtraction: add/subtract components in each direction
  • Dot product: scalar, A⋅B=∣A∣∣B∣cosθ=a1​b1​+a2​b2​+a3​b3​
  • Cross product: vector, A×B=∣A∣∣B∣sinθ n^, determinant form, right-hand rule
  • Angle between vectors: cosθ=∣A∣∣B∣A⋅B​
  • Projection:
    • Scalar: ∣B∣A⋅B​
    • Vector: (∣B∣2A⋅B​)B

Gradient, divergence, and curl

  • Gradient (∇f): vector field from scalar field, points in direction of greatest increase
    • ∇f=∂x∂f​i^+∂y∂f​j^​+∂z∂f​k^
  • Divergence (∇⋅F): scalar from vector field, measures outflowing-ness
    • ∇⋅F=∂x∂Fx​​+∂y∂Fy​​+∂z∂Fz​​
  • Curl (∇×F): vector from vector field, measures rotation
    • Determinant form with partial derivatives and components

Identities

  • Vector dot product:
    • Commutative: A⋅B=B⋅A
    • Distributive: A⋅(B+C)=A⋅B+A⋅C
    • A⋅A=∣A∣2
    • Unit vectors: i⋅i=1, i⋅j=0
    • Zero dot product: vectors are perpendicular or one is zero
  • Vector cross product:
    • Anti-commutative: A×B=−B×A
    • Distributive: A×(B+C)=(A×B)+(A×C)
    • Unit vectors: i×j=k, cyclic permutations
    • Zero cross product: vectors are parallel or one is zero
  • Vector calculus:
    • Laplacian: ∇2ϕ=∇⋅(∇ϕ)
    • Curl of gradient: ∇×∇ϕ=0
    • Divergence of curl: ∇⋅(∇×A)=0
    • Vector Laplacian: ∇×(∇×A)=∇(∇⋅A)−∇2A

Newton’s method for root extraction

  • Iterative method for solving f(x)=0
  • Formula: xn+1​=xn​−f′(xn​)f(xn​)​
  • Steps:
    • Choose initial guess x0​
    • Repeat iteration until ∣xn+1​−xn​∣ is small

Trapezoidal rule for numerical integration

  • Approximates ∫ab​f(x)dx using trapezoids
  • Single: 2b−a​[f(a)+f(b)]
  • Composite: 2h​[f(x0​)+2∑i=1n−1​f(xi​)+f(xn​)], h=nb−a​

Simpson’s rule for numerical integration

  • Approximates ∫ab​f(x)dx using parabolas
  • Single: 6b−a​[f(a)+4f(m)+f(b)], m=2a+b​
  • Composite: 3h​[f(x0​)+4∑i=1,3,…n−1​f(xi​)+2∑i=2,4,…n−2​f(xi​)+f(xn​)], n even, h=nb−a​

Sign up for free to take 7 quiz questions on this topic

Previous
Next  | 2.1 Combinatorics and probability
All rights reserved ©2016 - 2026 Achievable, Inc.

Matrices and Vectors

This chapter covers the following topics:

  • Matrices and their operations
  • Vectors
  • Gradient, divergence, and curl
  • Identities
  • Newton’s method for root extraction
  • Trapezoidal rule for numerical integration
  • Simpson’s rule for numerical integration

Matrices and their operations

A matrix is a rectangular array of numbers arranged in rows and columns. We usually write an m×n matrix (with m rows and n columns) as:

A=​a11​a21​⋮am1​​a12​a22​⋮am2​​……⋱…​a1n​a2n​⋮amn​​​

Addition and subtraction

You can add or subtract two matrices only if they have the same dimensions. The operation is done element by element.

Addition:

C=A+B=​a11​+b11​a21​+b21​⋮am1​+bm1​​a12​+b12​a22​+b22​⋮am2​+bm2​​……⋱…​a1n​+b1n​a2n​+b2n​⋮amn​+bmn​​​

Subtraction:

C=A−B=​a11​−b11​a21​−b21​⋮am1​−bm1​​a12​−b12​a22​−b22​⋮am2​−bm2​​……⋱…​a1n​−b1n​a2n​−b2n​⋮amn​−bmn​​​

Matrix multiplication

Matrix multiplication is not done element by element. Instead, each entry of the product comes from a row-by-column dot product.

C=AB

If A is an m×p matrix and B is a p×n matrix, then C is an m×n matrix, and each entry is

cij​=k=1∑p​aik​bkj​

Matrix multiplication is defined only when the number of columns of A matches the number of rows of B.

Determinant of a matrix

The determinant is defined for square matrices. It produces a single number that is used in several places, including checking whether a matrix is invertible.

For a 2×2 matrix:

det(A)=​ac​bd​​=ad−bc

For a 3×3 matrix:

det(A)=​a11​a21​a31​​a12​a22​a32​​a13​a23​a33​​​=a11​​a22​a32​​a23​a33​​​−a12​​a21​a31​​a23​a33​​​+a13​​a21​a31​​a22​a32​​​

Adjoint of a matrix

The adjoint (also called the adjugate) of a square matrix A is the transpose of its cofactor matrix:

adj(A)=Cof(A)T

Inverse of a matrix

A square matrix A has an inverse only if its determinant is nonzero (that is, det(A)=0). When the inverse exists, it is given by:

A−1=det(A)1​adj(A)

Identity matrix

An identity matrix is a square matrix with ones on the diagonal and zeros everywhere else:

In​=​10⋮0​01⋮0​……⋱…​00⋮1​​

It acts like the number 1 in matrix multiplication:

AI=IA=A

Properties of matrices

  1. Associative property: (AB)C=A(BC)
  2. Distributive property: A(B+C)=AB+AC
  3. Commutative property (addition): A+B=B+A
  4. Transpose of a product: (AB)T=BTAT
  5. Inverse property: AA−1=A−1A=I

This section has outlined the main matrix operations and the key definitions used with square matrices.

Vectors

A vector is a quantity that has both magnitude and direction. In three dimensions, a vector is often written in component form as:

A=a1​i^+a2​j^​+a3​k^

Where:

  • a1​,a2​,a3​ are the components of the vector in the x, y, and z directions.
  • i^,j^​,k^ are unit vectors in the x, y, and z directions, respectively.

Vector addition and subtraction

Addition

Vector addition combines components in the same direction:

A+B=(a1​+b1​)i^+(a2​+b2​)j^​+(a3​+b3​)k^

Subtraction

Vector subtraction subtracts components in the same direction:

A−B=(a1​−b1​)i^+(a2​−b2​)j^​+(a3​−b3​)k^

Dot product (scalar product)

The dot product of two vectors produces a scalar. It can be defined using magnitudes and the angle θ between the vectors:

A⋅B=∣A∣∣B∣cosθ

Or computed directly from components:

A⋅B=a1​b1​+a2​b2​+a3​b3​

  • Result: Scalar
  • Measures projection of one vector onto another.

Cross product (vector product)

The cross product of two vectors produces a vector perpendicular to both. Its magnitude depends on the angle θ between the vectors:

A×B=∣A∣∣B∣sinθ n^

Where n^ is the unit vector perpendicular to both A and B.

Using a determinant form:

A×B=​i^a1​b1​​j^​a2​b2​​k^a3​b3​​​

  • Result: Vector
  • Direction follows the right-hand rule.

Angle between two vectors

You can find the angle between two nonzero vectors using the dot product:

cosθ=∣A∣∣B∣A⋅B​

Projection of a vector

Scalar projection of A on B:

The scalar projection gives the signed length of A in the direction of B:

projB​A=∣B∣A⋅B​

Vector projection of A on B:

The vector projection gives the actual vector component of A parallel to B:

A∥​=(∣B∣2A⋅B​)B

Gradient, divergence, and curl

Gradient (∇f)

The gradient takes a scalar field f(x,y,z) and produces a vector field. The gradient points in the direction where f increases most rapidly.

∇f=∂x∂f​i^+∂y∂f​j^​+∂z∂f​k^


Divergence (∇·F)

The divergence takes a vector field F=Fx​i^+Fy​j^​+Fz​k^ and produces a scalar field:

∇⋅F=∂x∂Fx​​+∂y∂Fy​​+∂z∂Fz​​

  • Measures the “outflowing-ness” of a vector field at a point.

Curl (∇×F)

The curl takes a vector field F=Fx​i^+Fy​j^​+Fz​k^ and produces another vector field:

∇×F=​i^∂x∂​Fx​​j^​∂y∂​Fy​​k^∂z∂​Fz​​​

  • Measures the rotation or swirling strength of the field.

Identities

Vector algebra identities

Vector dot product properties

  1. Commutativity:

    A⋅B=B⋅A

  2. Distributive property:

    A⋅(B+C)=A⋅B+A⋅C

  3. Dot product with itself (magnitude squared):

    A⋅A=∣A∣2

  4. Unit vector dot products:

    i⋅i=j⋅j=k⋅k=1

  5. Perpendicular unit vectors:

    i⋅j=j⋅k=k⋅i=0

  6. Zero dot product condition:

    If A⋅B=0, then either:

    • A=0,
    • B=0,
    • or A is perpendicular to B.

Vector cross product properties

  1. Anti-commutativity:

    A×B=−B×A

  2. Distributive property:

    A×(B+C)=(A×B)+(A×C)

  3. Alternative distributive property:

    (B+C)×A=(B×A)+(C×A)

  4. Unit vector cross products:

    i×i=j×j=k×k=0

  5. Cyclic permutation:

    i×j=k,j×k=i,k×i=j

  6. Anti-symmetry property:

    j×i=−k,k×j=−i,i×k=−j

  7. Zero cross product condition:

    If A×B=0, then either:

    • A=0,
    • B=0,
    • or A is parallel to B.

Vector calculus identities

  1. Laplacian operator:

    ∇2ϕ=∇⋅(∇ϕ)=(∇⋅∇)ϕ

  2. Curl of a gradient:

    ∇×∇ϕ=0

  3. Divergence of a curl:

    ∇⋅(∇×A)=0

  4. Vector Laplacian identity:

    ∇×(∇×A)=∇(∇⋅A)−∇2A

Newton’s method for root extraction

Newton’s method (also called the Newton-Raphson method) is an iterative numerical technique for finding roots of a real-valued function f(x) (that is, values of x where f(x)=0).

The iteration formula is:

xn+1​=xn​−f′(xn​)f(xn​)​

  1. Choose an initial guess x0​
  2. Compute successive approximations using the formula
  3. Stop when the difference ∣xn+1​−xn​∣ is below a chosen tolerance

Example

To find the square root of 2, define a function whose root is 2​:

  • f(x)=x2−2
  • f′(x)=2x

Substitute into the iteration formula:

xn+1​=xn​−2xn​xn2​−2​

Trapezoidal rule for numerical integration

The trapezoidal rule estimates a definite integral by approximating the graph of f(x) with straight-line segments, forming trapezoids.

Single application

For f(x) over [a,b]:

∫ab​f(x)dx≈2b−a​[f(a)+f(b)]

Composite trapezoidal rule

Divide the interval into n equal subintervals of width h=nb−a​, then:

∫ab​f(x)dx≈2h​[f(x0​)+2i=1∑n−1​f(xi​)+f(xn​)]

Simpson’s rule for numerical integration

Simpson’s rule estimates a definite integral by fitting parabolas through points on the curve.

Single application

For f(x) over [a,b], with midpoint m=2a+b​:

∫ab​f(x)dx≈6b−a​[f(a)+4f(m)+f(b)]

Composite simpson’s rule

Let n be even and h=nb−a​:

∫ab​f(x)dx≈3h​[f(x0​)+4i=1,3,5,…∑n−1​f(xi​)+2i=2,4,6,…∑n−2​f(xi​)+f(xn​)]

Key points

Matrices and their operations

  • Matrix: rectangular array, m×n dimensions
  • Addition/subtraction: element-wise, same dimensions required
  • Multiplication: row-by-column dot product, defined if columns of A = rows of B
  • Determinant: defined for square matrices, used for invertibility
    • 2×2: ad−bc
    • 3×3: expansion by minors
  • Adjoint: transpose of cofactor matrix, adj(A)=Cof(A)T
  • Inverse: A−1=det(A)1​adj(A), exists if det(A)=0
  • Identity matrix: diagonal of ones, AI=IA=A
  • Properties: associative, distributive, commutative (addition), transpose of product, inverse property

Vectors

  • Vector: has magnitude and direction, written as A=a1​i^+a2​j^​+a3​k^
  • Addition/subtraction: add/subtract components in each direction
  • Dot product: scalar, A⋅B=∣A∣∣B∣cosθ=a1​b1​+a2​b2​+a3​b3​
  • Cross product: vector, A×B=∣A∣∣B∣sinθ n^, determinant form, right-hand rule
  • Angle between vectors: cosθ=∣A∣∣B∣A⋅B​
  • Projection:
    • Scalar: ∣B∣A⋅B​
    • Vector: (∣B∣2A⋅B​)B

Gradient, divergence, and curl

  • Gradient (∇f): vector field from scalar field, points in direction of greatest increase
    • ∇f=∂x∂f​i^+∂y∂f​j^​+∂z∂f​k^
  • Divergence (∇⋅F): scalar from vector field, measures outflowing-ness
    • ∇⋅F=∂x∂Fx​​+∂y∂Fy​​+∂z∂Fz​​
  • Curl (∇×F): vector from vector field, measures rotation
    • Determinant form with partial derivatives and components

Identities

  • Vector dot product:
    • Commutative: A⋅B=B⋅A
    • Distributive: A⋅(B+C)=A⋅B+A⋅C
    • A⋅A=∣A∣2
    • Unit vectors: i⋅i=1, i⋅j=0
    • Zero dot product: vectors are perpendicular or one is zero
  • Vector cross product:
    • Anti-commutative: A×B=−B×A
    • Distributive: A×(B+C)=(A×B)+(A×C)
    • Unit vectors: i×j=k, cyclic permutations
    • Zero cross product: vectors are parallel or one is zero
  • Vector calculus:
    • Laplacian: ∇2ϕ=∇⋅(∇ϕ)
    • Curl of gradient: ∇×∇ϕ=0
    • Divergence of curl: ∇⋅(∇×A)=0
    • Vector Laplacian: ∇×(∇×A)=∇(∇⋅A)−∇2A

Newton’s method for root extraction

  • Iterative method for solving f(x)=0
  • Formula: xn+1​=xn​−f′(xn​)f(xn​)​
  • Steps:
    • Choose initial guess x0​
    • Repeat iteration until ∣xn+1​−xn​∣ is small

Trapezoidal rule for numerical integration

  • Approximates ∫ab​f(x)dx using trapezoids
  • Single: 2b−a​[f(a)+f(b)]
  • Composite: 2h​[f(x0​)+2∑i=1n−1​f(xi​)+f(xn​)], h=nb−a​

Simpson’s rule for numerical integration

  • Approximates ∫ab​f(x)dx using parabolas
  • Single: 6b−a​[f(a)+4f(m)+f(b)], m=2a+b​
  • Composite: 3h​[f(x0​)+4∑i=1,3,…n−1​f(xi​)+2∑i=2,4,…n−2​f(xi​)+f(xn​)], n even, h=nb−a​

More from Mathematics

  • Coordinate geometry
  • Geometric feature and trigonometry
  • Algebra
  • Calculus