Skip to main content

Featured Post

How to Design a Hoeken’s Straight-Line Linkage in Excel (with VBA Simulator)

How to Design a Hoeken’s Straight-Line Linkage in Excel (with VBA Simulator) Figure 1: Geometry of the Hoeken’s straight-line linkage and resulting coupler-point trajectory. The lower portion of the curve approximates straight-line motion over ~180° of crank rotation. The Hoeken’s Linkage is a mechanical engineer's favorite magic trick. It is a four-bar mechanism that converts simple rotational input into a near-perfect straight-line output. Unlike the Watt Linkage (which traces a figure-8), the Hoeken’s Linkage creates a "tear-drop" shape with a long, flat bottom (see Figure 1). This makes it the standard choice for walking robots and intermittent linear actuators. But how do you find the link lengths? If you guess, you get a wobble. This guide provides practical "Golden Ratios" and an Excel VBA tool to simulate the motion path. 1. The Geometry: Practical Design Ratios To achieve a usable straight line, link lengths m...
Disclosure: As an Amazon Associate, I earn from qualifying purchases.

Microsoft Excel: Goal Seek Technique for solving mechanical engineering design's problems

Problems in mechanical design often require the solution of nonlinear equations such as:

3x3 - 20x2 + 1000x + 12000 = 0

These problems are stated in the form: find the zeros or roots of the function f(x); that is, find the values of x that make f(x) = 0. Therefore, they are sometimes called root solving problems. The equation shown above is typical of those encountered when finding maximum stress at a point.

While such equations can be solved by trial and error (guessing values until the left-hand side is nearly zero), there exist simple, systematic ways to solve them, such as the Method of False Position and the Newton-Raphson method.

Root Finding Methods

The Method of False Position systematically narrows down the region in which the root exists. The Newton-Raphson method is more sophisticated, using the slope of the function (derivative) to estimate the root's location. For most functions, Newton-Raphson converges much faster and is generally the method of choice.

In this post, I will share a very simple technique to solve these problems easily on your desktop PC using Microsoft Excel Goal Seek. No VBA programming knowledge is required.

Microsoft Excel: Goal Seek Technique for Mechanical Engineering Design

1. Open Microsoft Excel and enter the value and formula as shown below:

Ensure you have a cell for your input variable (x) and a cell for your equation (f(x)). The formula in the f(x) cell must reference the x cell.

2. Navigate to the Goal Seek Tool

In modern versions of Excel (2010 and later), go to the Data tab on the Ribbon. Look for the Forecast group (or Data Tools group in older versions), click on What-If Analysis, and select Goal Seek...

3. Configure the Goal Seek parameters:

A dialog box will appear. Fill it out as follows:

  • Set cell: Select the cell containing your formula (e.g., E16).
  • To value: Enter 0 (since we are solving for f(x) = 0).
  • By changing cell: Select the cell containing your variable x (e.g., E14).

Then click OK.

4. Review the result:

Excel will iterate to find the solution. If successful, it will display the Goal Seek Status. Note that the "Current value" might not be exactly zero (e.g., 0.0001) due to computational precision, but this is usually sufficient for engineering tolerances.

Application: Shaft Design for Fatigue Loading

Consider designing a shaft under fatigue loading. Often, the relationship between diameter (d) and safety factor (n) is complex and cannot be solved algebraically.

For example, if you want to know the maximum bending moment (Mm) a shaft can withstand given a known diameter:

  1. Set up cells for all input factors (d, n, Ma, Ta, etc.).
  2. Create a cell for the Left-Hand Side (LHS) of the design equation.
  3. Create a cell for the Right-Hand Side (RHS).
  4. Create a difference cell: = LHS - RHS.
  5. Use Goal Seek to set the "Difference" cell to 0 by changing the Mm cell.

This method gives you flexibility. If you later decide to fix Mm and find the required diameter instead, just change the "By changing cell" to the diameter cell.

For more complex optimization problems involving constraints, check out Microsoft Excel Solver, which is a more powerful add-in for engineering analysis.

Recommended Reading: Excel for Scientists and Engineers

Comments

Unknown said…
Hi Dear,

I need to generalize this equation solver thing for some calculations, so that, i can get the solution every time on changing value of coefficient.

for example;

in a cubic equation, if i change coefficient a,b,c,d then also, i can get the solution.

Please help.

Thanks !!

Popular posts from this blog

Hoekens Linkage: Kinematics, Optimization, and Walking Robot Applications

🚀 New Design Guide Available Don't just read about it—build it. Check out our new tutorial: How to Design a Hoeken’s Linkage in Excel (with Free VBA Simulator) Introduction to the Hoekens Linkage The Hoekens linkage is a specialized four-bar mechanism designed to convert rotational motion into an approximate straight-line motion. While it serves a similar purpose to other straight-line generators, its unique coupler curve—a "tear-drop" shape—makes it exceptionally useful for intermittent motion and walking machines. One of the most fascinating aspects of kinematic theory is the concept of "Cognates." The Hoekens linkage is actually a cognate linkage of the Chebyshev Straight-line Mechanism . This means that while the physical structure and link lengths differ, they can generate the exact same coupler curve geometry. Search for "Design of Machinery" Books Kinematics and Optimization Unlike ...

The Engineer’s Guide to Precision Alignment: Dowel Pins, Diamond Pins & Fits

The Unsung Heroes of Precision: Dowel Pins & Locators In the world of Precision Engineering , the difference between a high-quality product and a scrap part often comes down to microns. While bolts hold parts together, they are terrible at positioning them. This is where Dowel Pins and Locating Pins become essential components in industrial tooling . What is a Dowel Pin? Dowel pins are precision-ground fasteners used to secure the relative position of two parts. They are typically machined to extremely tight tolerances (often within 0.0001 inches) and are available in materials like: Hardened Steel: For high-wear applications in CNC fixtures . Stainless Steel: For corrosion resistance in medical or food processing machinery. Plastic (Thermoplastic): For lightweight, non-conductive, low-load alignment. The "Play" Problem: Bolts vs. Dowels When mechanical design engineers create components, they cannot rely on bolts for alignm...

Ball Detent Torque Limiter: The Ultimate Guide to Precision Overload Protection

The First Line of Defense: Overload Clutches In high-speed automation and heavy industrial machinery, a "jam" is not a matter of if , but when . Whether it is a cardboard box getting stuck in a packaging machine or a tool crashing in a CNC lathe, the resulting torque spike can destroy gearboxes, twist shafts, and burn out expensive servo motors in milliseconds. A torque limiter (or overload clutch) is the mechanical fuse of the drive system. While electronic monitoring (current limiting) is common, it is often too slow to prevent physical damage from the massive kinetic energy stored in the system inertia. A mechanical torque limiter provides a physical disconnect that operates in a fraction of a second. Search for Torque Limiters & Safety Couplings Why Choose a Ball Detent Limiter? Not all torque limiters are created equal. In precision applications, the Ball Detent type is superior to friction or shear types for several reason...