Skip to main content

Featured Post

Why I Wrote The Sheet Mechanic (And Why Calculations Aren’t Enough)

For engineers who already know the math—but still lose projects. For the last few years, I’ve been sharing technical guides here on Mechanical Design Handbook —how to size a motor, how to calculate fits, and (as you recently read) how to choose between timing belts and ball screws. But after 25 years in industrial automation, I realized something uncomfortable: Projects rarely fail because the math was wrong. They fail because: The client changed the scope three times in one week. A critical vendor lied about a shipping date (and no one verified it). The installation technician couldn’t fit a wrench into the gap we designed. University taught us the physics. It didn’t teach us the reality. That gap is why I wrote my new book, The Sheet Mechanic . This is not a textbook. It is a field manual for the messy, political, and chaotic space between the CAD model and the factory floor. It captures the systems I’ve used to survive industrial projec...
NEW RELEASE: Stop trying to be a Hero. Start being a Mechanic. Get "The Sheet Mechanic" on Amazon »
Disclosure: As an Amazon Associate, I earn from qualifying purchases.

Solving Nonlinear Engineering Equations with Excel Goal Seek

Problems in mechanical design often require the solution of nonlinear equations. A classic example is finding the roots of a polynomial stress function:

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

These are known as root solving problems: finding the value of x where f(x) = 0. While you could solve this by trial and error (guessing values until the result is zero), or use the mathematical Newton-Raphson method, there is a faster way for the practicing engineer.

Advertisement

In this post, I will share a simple technique to solve these problems instantly on your desktop using Microsoft Excel Goal Seek. No VBA programming or expensive MATLAB license is required.

Step-by-Step: Using Goal Seek for Engineering

1. Setup the Spreadsheet

Open Excel and set up two cells: one for your input variable (x) and one for your equation (f(x)). The formula cell must mathematically reference the input cell.

2. Locate the Tool

In modern Excel versions, navigate to: Data Tab > Forecast Group > What-If Analysis > Goal Seek...

3. Configure the Parameters

A dialog box will appear. To find the root of the equation, we want to force the result to be zero.

  • Set cell: The cell containing your equation (f(x)).
  • To value: Enter 0.
  • By changing cell: The cell containing your variable (x).

4. The Solution

Click OK. Excel iterates through values instantly. It will find the exact value of x that satisfies the equation. Note that due to computer floating-point precision, the result might appear as "0.0001", which is effectively zero for engineering tolerances.

Advertisement

Application: Shaft Design for Fatigue Loading

Real-world mechanical design is rarely linear. Consider designing a transmission shaft under fatigue loading. The relationship between diameter (d) and safety factor (n) often follows the rigorous ASME Elliptic or DE-Goodman criteria.

Solving for the diameter (d) algebraically is difficult because it appears inside cubic roots and squares. Here is the standard equation form:

1/n = (16 / Ï€d3) × [ (4(Kf Ma)2 + 3(Kfs Ta)2)1/2 / Se + (4(Kf Mm)2 + 3(Kfs Tm)2)1/2 / Sut ]

Instead of rearranging this massive equation to isolate d, you can simply:

  1. Set up cells for all inputs (Ma, Ta, Se, etc.).
  2. Create a cell for the Left-Hand Side (1/n).
  3. Create a cell for the Right-Hand Side (The stress terms).
  4. Create a "Check Cell": = LHS - RHS.
  5. Use Goal Seek to force the "Check Cell" to 0 by changing the Diameter cell.

This reverse-engineering approach gives you incredible flexibility. You can just as easily fix the diameter and solve for the maximum allowable Moment (Mm) without rewriting a single formula.

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

NEMA 17 vs NEMA 23: Torque, Speed, and When to Upgrade

When building a CNC router or upgrading a 3D printer, the first question is usually: "Is NEMA 17 enough, or do I need NEMA 23?" Most beginners look at the Holding Torque and stop there. This is a mistake. A NEMA 23 motor isn't just "stronger"—it is physically different in ways that affect your speed, your driver choice, and your machine's ability to avoid missed steps. If you choose a NEMA 17 for a heavy gantry, it is far more likely to overheat or lose steps under cutting load. If you choose NEMA 23 for a fast 3D printer, it might actually run slower than the smaller motor. This guide explains the engineering limits of each frame size. Table of Contents 1. Physical Difference (The Frame Size) 2. Torque & Speed (The Inductance Trap) 3. Driver Compatibility 4. Selection Summary Advertisement 1. Physical Difference (The Frame Size) "NEMA" is just a standard for ...

Dowel Pins & Locating Pins: The Basics of Fixture Design

Dowel pins are precision cylindrical pins used for accurate part alignment in assemblies. They control position, not clamping force. This guide explains tolerances, fits, sizing rules, and design best practices. Figure 1: A typical fixture setup. Notice how dowel pins (silver) provide precise location, while bolts (not shown here) provide the clamping force. 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 . Advertisement 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-wea...

Flywheel Construction and Design: A Guide to Energy Storage Wheels

A flywheel is a mechanical device with a significant moment of inertia used as a kinetic energy storage reservoir. Flywheels are designed to resist changes in rotational speed, helping to steady a shaft's rotation when a fluctuating torque is applied (as seen in reciprocating engines) or when the load itself is intermittent (such as in piston pumps or punching presses). Advertisement Beyond smoothing rotation, flywheels are increasingly used to produce high-power pulses for industrial experiments. In these cases, drawing the required instantaneous power from an electrical network would create unacceptable spikes. Instead, a small motor slowly accelerates the flywheel between pulses, storing energy to be released in a single high-torque event. Figure 1: Modern flywheels are sophisticated energy storage systems for steadying rotation and delivering power pulses. 1. Classification: Balance Wheels vs. Flywheel Pulleys Flywheels are gene...