Written by Brent Maxfield
  • 2/10/2023
  • Read Time : 5 min.

Using Integration to Derive Beam Deflection

slope and deflection of triangularly loaded beam ptc mathcad prime

Editor's note: This blog article was originally written as a PTC Mathcad Prime worksheet. For the best reading experience, please download the Mathcad Prime 8 worksheet here. If you need a Mathcad Prime worksheet viewer, download Mathcad Prime for free here.

In previous blogs, we learned how to create shear and bending moment diagrams using free body diagrams.  I also explained how Mathcad can be used to calculate the maximum bending moment for three loading conditions.

In this blog, I will derive functions for the shear, moment, slope, and deflection for a uniformly loaded, simply supported beam starting only with the loading condition and using integration. The process will then be repeated for a triangular loading.

When integrating, Mathcad does not include the integration constant C. This will need to be solved using known constraints.

Since the uniform load is acting downward, I will use a negative value for w (force/length).

I will also use some numeric data to verify the calculated functions:

  • Beam Length: Length=20 ft
  • Uniform Load: W=2.0 kip/ft
  • Modulus of Elasticity: E1=29000 ksi
  • Moment of inertia: I1=448 in4

Numeric data to verify the calculated functions.

UNIFORM LOADING

LOADING

Image of beam W to calculate loading deflection from.

Calculate the left reaction by summing moments about point B.

Formula to sum moments around point B.

SHEAR

Calculate the shear function by integrating the load function and including the integration constant C1.

Formula to integrate the load function and include the integration constant C1.

Solve for the integration constant C1. We know that at x=0, the shear is equal to the left reaction, RA.

Calculation solving for the integration constant C1.

C1 is equal to Span*w/2. It can now be input into the function for shear, and the function for shear can be redefined without the need for C1 as an input variable.

Calculation of C1 span input into the function for shear.

MOMENT

Calculate the moment function by integrating the shear function and including the integration constant C2.

Calculation of the moment function including the integration constant C2.

Solve for the integration constant C2. We know that at x=0, the moment is 0.

Calculation solving for the integration constant C2.

C2 is equal to 0. It can now be input into the function for moment, and the function for moment can be redefined without the need for C2 as an input variable.

Calculation and plot of C2 inputted into the function for moment.

SLOPE

The relationship for the radius of curvature p, of a beam is defined from mechanics of materials as 1/p = M/(E*I), and the relationship of moment to slope, θ, is defined as M = E * I * d/dx(θ). Calculate the slope by integrating M/(E*I).

Calculation of the slope of the beam under the given conditions.

There are two ways to solve for C3 for a uniformly loaded beam.

First, we know that for a uniformly loaded beam, the beam slope is equal to zero at the point of maximum moment, and we know that the maximum moment occurs at the location where the shear is equal to zero.  The first way to solve for C3 is to calculate the location of zero shear, and use the constraint of slope=0 at the location of zero shear.  

The second way to calculate C3 is to wait until the function for deflection is derived and use the two locations where the deflection is equal to zero. Then use two equations to solve for the two unknowns C3 and C4.

Calculations solving for C3 and C4.

DEFLECTION

Calculate the deflection by integrating the slope function.  Note that there are two constants of integration that must be solved.

Calculation of the deflection when integrating the slope function.

C3 and C4 are unknown. The deflection at x=0 is 0, and the deflection at x=Span is 0.  Use these two values to solve for C3 and C4.

Calculation solving for C3 and C4. This matches the derivation for C3a previously calculated.

C3 is equal to -((span3 * w) / (24 * E * I)). It can now be input into the function for slope, and the function for slope can be redefined without the need for C3 as an input variable. C4 is equal to zero, and C4 can be eliminated.

Calculations and plots of C3 input into the function for slope.

The below plot has plots of shear, moment, beam slope, and deflection. The values of slope and deflection are multiplied by 100 to allow them to plot at the needed scale. The vertical marker, located at mid-span, is at the location of zero shear, maximum moment, zero slope, and maximum deflection.

Plot of zero shear and slope and maximum moment and deflection along a uniform beam in Mathcad Prime

Derive a function to calculate the maximum deflection for a uniformly loaded beam. The maximum deflection occurs where the beam slope is 0, where the moment is greatest, and where the shear is 0. This value, VZero, was calculated earlier.

A function to calculate the maximum deflection for a uniformly loaded beam.

TRIANGULAR LOADING

The following example repeats the process used above to derive functions to calculate the shear, moment, slope, and deflection for a triangular loaded beam, beginning with a triangular load function.

LOADING

Functions to calculate the shear, moment, slope, and deflection for a triangular loaded beam.

Calculate the left reaction by summing moments about point B.

Calculation summing moments around point B.

SHEAR

Calculate the shear function by integrating the load function and including the integration constant CT1.

Calculation of the shear function when integrating the load function and including the integration constant CT1.

Solve for the integration constant CT1. We know that at x=0, the shear is equal to the left reaction, RA.

Calculation solving for the integration constant CT1.

CT1 is equal to Span*w/6. It can now be input into the function for shear, and the function for shear can be redefined without the need for CT1 as an input variable.

Span*w/6 input into the function for shear and plotted.

MOMENT

Calculate the moment function by integrating the shear function and including the integration constant CT2.

Calculating the moment function by integrating the shear function and including the integration constant CT2.

Solve for the integration constant CT2. The moment at x=0 is 0.

Calculation solving for the integration constant CT2

CT2 is equal to 0. It can now be input into the function for moment, and the function for moment can be redefined without the need for CT2 as an input variable.

CT2 input and plotted into the function for moment.

SLOPE

The relationship for the radius of curvature, p, of a beam is defined from mechanics of materials as  1/p = M/E * I, and the relationship of moment to slope, θ, is defined as M = E * I  * d/dx(θ). Calculate the slope by integrating M/E * I.

Calculation of slope on triangularly loaded beam when integrating above functions.

For the case of triangular loading, the maximum deflection does not occur at the location of zero shear and maximum moment. Because of this, we do not know of any constraints to solve for CT3.  

For this case, the only way to solve for CT3 is to wait until the function for deflection is derived and then use the two locations where the deflection is equal to zero to solve for the two unknowns CT3 and CT4.

DEFLECTION

Calculate the deflection by integrating the slope function. Note that there are two constants of integration that must be solved.

Calculation of deflection by integrating the slope function triangle load beam

CT3 and CT4 are unknown. The deflection at x=0 is 0, and the deflection at x=Span is 0. Use these two values to solve for CT3 and CT4.

Calculations solving for CT3 and CT4 integration constants deflection trinagular beam

Now that CT3 and CT4 are known, the function for slope and deflection can be redefined.

Functions for slope and deflection triangular load beam redefined and plotted.

deflection triangular load beam plotted

Derive a function to calculate the maximum deflection for a triangular load, which occurs where beam slope equals zero. The solution for x has four solutions.

Calculation for defining the maximum deflection for a triangular load, which occurs where beam slope equals zero.

Check the numeric results and select the 3rd solution for the location of zero beam slope. Note: The subscript 3 is obtained using the left bracket [.

Calculations checking the numeric results and selecting the 3rd solution for the location of zero beam slope.

The below plot has plots of shear, moment, beam slope, and deflection. The values of slope and deflection are multiplied by 100 to allow them to plot at the needed scale. The left vertical marker is at the location of zero beam slope and at the location of the maximum deflection. The right vertical marker is at the location of zero shear and maximum moment.

Triangular load beam shear moment slope deflection Mathcad Prime plot

In this blog, I have used integration to derive functions for deflection starting only with a loading function. Along the way, I derived functions for shear, bending moment, and beam slope. These functions were checked using known equations from the AISC Steel Construction Manual.

Integration is a powerful tool in the Mathcad tool box. I demonstrated how to solve for the constants of integration by using known constraints and how to use the solve keyword with the Symbolic Evaluation Operator along with other keywords to help derive the desired functions.

In this blog, I used loading on beams to illustrate the concepts, but these same concepts can be used in numerous other fields of science and engineering.  The examples in this blog illustrate the use of:

  • Functions
  • Symbolic evaluation to derive functions, especially when the numeric values are not known
  • XY plots with multiple traces
  • Vertical markers to illustrate locations on a plot
  • Range variables
  • Integration and solving for the constants of integration



Try Mathcad Prime

Download a free 30-day trial of Mathcad Prime to see the best of Mathcad for yourself.

Tags:

About the Author

Brent Maxfield is from Salt Lake City, Utah. This is an ideal location for him because of his love for outdoor activities. He loves hiking and skiing in the nearby mountains, and also loves to explore the red rock canyons and deserts found in Southern Utah.

Brent Maxfield is a registered Professional Structural Engineer in the State of Utah. He graduated Magna Cum Laude from Brigham Young University with a degree in Civil Engineering and earned a Master of Engineering Management degree from BYU. He has been a practicing structural engineer for 36 years.

He was awarded the 2012 Utah Engineer of the Year by the Utah Engineers Council. He is active in professional associations having served on the Board of Directors of the Structural Engineers Association of Utah and the EERI Utah Chapter. He has also served on the Structural Advisory Committee to the Utah Uniform Building Codes Commission.

He has used PTC Mathcad extensively for 20 years. He is the author of “Essential PTC® Mathcad Prime® 3.0: A Guide for New and Current Users”, available on Amazon.com.

Using Integration to Derive Beam Deflection
Learn how to use PTC Mathcad to derive beam deflection for uniformly and triangular loaded beams using integration starting only with the loading condition. Comes with a Mathcad Prime worksheet for your own use.