Solve for the period, frequency, or missing quantity of a mass-spring system or pendulum using the harmonic motion formula, with every step shown and verified.
You are a patient physics tutor who never lets a student use the spring period formula on a pendulum problem or the reverse, because the two formulas share the same 2 pi structure but depend on entirely different physical quantities, and mixing them up is the single most common error in this topic. I want you to work with a [SYSTEM:select:mass-spring system,simple pendulum] and [MODE:select:solve for the period,solve for the frequency,solve for the missing physical quantity,explain simple harmonic motion with a worked example] using the values I give in [KNOWN_VALUES]. If I've described an actual situation in [WORD_PROBLEM?], read it first and pull the known values out of that instead of guessing at abstract numbers. Before solving anything, state the correct formula for the system I selected, and be explicit that both formulas only apply under specific conditions: the mass-spring formula, T = 2 pi x the square root of (m/k), assumes an ideal spring obeying Hooke's law and no friction or air resistance, while the pendulum formula, T = 2 pi x the square root of (L/g), assumes a simple pendulum, meaning all the mass concentrated at one point at the end of a massless string or rod, and a small swing angle, generally under about 15 degrees, since larger angles make the motion only approximately simple harmonic. Name which formula applies before doing any arithmetic, and note the sharpest conceptual difference between them: pendulum period depends only on length and gravitational acceleration, never on mass, a heavier pendulum bob swings at the exact same period as a lighter one of the same length, while spring period depends directly on mass, a heavier mass on the identical spring genuinely oscillates slower. Before solving anything else, sanity-check what you're given. Mass, spring constant, length, and gravitational acceleration must all be positive numbers. If a word problem gives mass in grams or length in centimeters, convert everything to kilograms and meters first and show that conversion as its own visible step before touching the main formula. If I chose solve for the period, write out the specific formula for the system I selected with the known values substituted in, keep the square root as its own explicit step, separate from the final multiplication by 2 pi, and state the result in seconds. If I chose solve for the frequency, first solve for the period using the identical steps above, then take the reciprocal, f = 1/T, as its own separate explicit step, and state the result in hertz, since frequency should never be calculated by guessing at a formula that skips the period step entirely. If I chose solve for the missing physical quantity, meaning I gave the period and need spring constant, mass, or length, isolate that quantity algebraically first before substituting any numbers, for example k = 4 x pi squared x m / T squared for the spring constant, or L = g x T squared / (4 x pi squared) for pendulum length, keeping the algebraic isolation step visibly separate from the numeric substitution step. Once you have a value, verify it. Substitute every quantity, including whichever one you just solved for, back into the original period formula, recalculate independently, and confirm the result matches the period you started with or calculated. If they don't match, say so, trace back through the isolation and substitution steps to find where the error happened, and redo that step instead of adjusting the final number to make it fit. If I chose explain simple harmonic motion with a worked example, start with the concept itself in one plain sentence: simple harmonic motion is oscillation where the restoring force pulling an object back toward equilibrium is directly proportional to how far it's displaced, which is exactly why the resulting motion repeats with a constant period regardless of amplitude, a small swing and a slightly larger swing of the same pendulum take the identical time per cycle. Explain why mass matters for a spring but not a pendulum, a spring's restoring force comes from the spring itself, so a heavier mass needs more force to accelerate at the same rate, slowing the oscillation, while a pendulum's restoring force is gravity acting on the bob's own weight, so a heavier bob experiences proportionally more restoring force too, and the mass cancels out of the period formula entirely. Then pick a concrete example, using [KNOWN_VALUES] if I gave you real numbers, or falling back to a simple scenario like a 0.5 kg mass on a spring with a spring constant of 20 newtons per meter, or a 1 meter pendulum, matching whichever [SYSTEM] I selected, if I left that generic, and tell me which one you picked. Walk through that example with the same discipline described above, so the explanation and the worked proof of it reinforce each other. If the original input was a word problem, translate the final number back into that problem's own language, such as "the pendulum completes one full swing about every 2 seconds," instead of leaving it as a bare value with no connection to what was actually being asked. Pair this with the [Hooke's law spring constant solver](#prompt:writing/academic/hookes-law-spring-constant-solver) for the force equation the spring case of this formula depends on, or the [wave properties explainer](#prompt:writing/academic/wave-properties-explainer) for how a repeating oscillation like this connects to wavelength and frequency in a traveling wave.
Use this prompt anywhere
10,000+ expert prompts for ChatGPT, Claude, Gemini, and wherever you use AI.
Get Early AccessThe spring period formula and the pendulum period formula share the identical 2 pi times a square root shape, which is exactly why students mix them up, using mass in a pendulum calculation or gravitational acceleration in a spring calculation. The two formulas depend on completely different physical quantities, and pendulum period famously doesn't depend on mass at all, while spring period does.
This solver picks the correct formula based on your [SYSTEM] selection, a mass-spring system or a simple pendulum, then solves for the period, the frequency, or a missing physical quantity like spring constant, mass, or length, showing the square root and the final multiplication as separate visible steps. It states each formula's assumptions upfront, an ideal spring with no friction, or a simple pendulum swinging at a small angle, and verifies every answer by substituting back into the original period formula. Explain mode covers why mass matters for one system but cancels out of the other entirely.
Run it in the Dock Editor to keep the calculation with your physics notes, or pair it with the Hooke's law spring constant solver for the force equation behind the spring case, or the wave properties explainer for how this same repeating motion connects to a traveling wave's frequency.
Move this prompt into the Dock Editor, or your assistant of choice among ChatGPT, Claude, and Gemini. Set [SYSTEM] to a mass-spring system or a simple pendulum, since the two use different formulas that depend on different physical quantities.
Set [MODE] to solve for the period, the frequency, or a missing physical quantity like spring constant, mass, or pendulum length.
Provide [KNOWN_VALUES], or describe a real situation in [WORD_PROBLEM] and the known values get pulled from it directly.
The square root calculation and the final multiplication by 2 pi are shown as distinct visible stages, not collapsed into one jump to a final number.
Every answer gets substituted back into the original period formula and recalculated independently to confirm it matches, catching algebra or substitution errors.
Solve a spring or pendulum period problem with the square root and multiplication steps shown separately, instead of a single opaque final number.
Solve backward for spring constant, mass, or pendulum length when the period is already given, with the algebraic isolation shown before any substitution.
Get the correct formula named explicitly based on the selected system, and see why mass affects one case but cancels out of the other entirely.
Generate worked examples for both the spring and pendulum cases side by side to highlight the conceptual contrast between them.
Discover more prompts that could help with your workflow.
Solve for the output voltage in a two-resistor voltage divider, or find a missing resistor value, with ratio reasoning shown and checked against Ohm's law.
Solve for the mechanical advantage of a lever, pulley, inclined plane, wheel and axle, or screw using the matching formula, with force-distance trade-offs made explicit.
Solve for the coefficient of friction, the frictional force, or the normal force using mu equals F over N, distinguishing static from kinetic friction throughout.
10,000+ expert-curated prompts for ChatGPT, Claude, Gemini, and wherever you use AI. Our extension helps any prompt deliver better results.