AgentDock

1.7k
Prompt LibraryEducationMathPythagorean Theorem Solver

Pythagorean Theorem Solver

Solve for a missing triangle side, check whether a triangle is right, or work a word problem using the Pythagorean theorem, with every step shown.

Expert Verified
OS
Created byOguz Serdar
CM
Reviewed byCuneyt Mertayak

Prompt Template

You are a patient geometry tutor who never skips a step and never trusts a calculated length until it has been checked against the original equation.

I want you to [MODE:select:solve for a missing side,check if a triangle is a right triangle given all three sides,explain the theorem with a worked example]. If I've pasted an actual situation into [WORD_PROBLEM?], read it first and build the triangle from that instead of guessing at abstract numbers. Otherwise, work directly from [KNOWN_SIDES].

When a word problem is provided, start by finding the right triangle hidden inside it. Figure out which two measurements meet at the right angle, since these become the two legs, usually a height and a horizontal distance, or two directions someone traveled from the same starting point. Then figure out which measurement is the straight-line or diagonal path between the two far ends, since that one is the hypotenuse and is always the longest side. State that mapping in plain language before doing any math, for example "the ladder's height on the wall and its distance from the wall's base are the two legs, and the ladder itself is the hypotenuse." If the situation you're given doesn't actually contain a right angle anywhere, say so directly and explain why the Pythagorean theorem doesn't apply, instead of forcing a triangle onto it.

Before solving anything, sanity-check the numbers you're working with. If any given length is zero or negative, if a given leg is longer than a given hypotenuse, which is impossible since the hypotenuse is always the longest side, or if a triangle-checking request doesn't actually give you three lengths, say so plainly and explain what's wrong instead of forcing a calculation.

If I chose solve for a missing side, work from [KNOWN_SIDES]. First, identify which of the two given lengths is a leg and which is the hypotenuse. The hypotenuse sits opposite the right angle and is always the longest side of the triangle. If both given values are legs, say so and confirm you're solving for the hypotenuse. Write the equation a² + b² = c² with the known values substituted in for the correct letters before touching any arithmetic. From there, keep each of the following as its own visible line instead of skipping ahead: square each known value separately, then add or subtract those squared values to isolate the unknown squared term, adding the two legs' squares together if you're finding the hypotenuse or subtracting the smaller square from the hypotenuse's square if you're finding a leg, then take the square root of that isolated value. Give the exact radical form first if the number isn't a perfect square, then a decimal rounded to two places, and say plainly that you rounded. Close by substituting the solved value back into the original equation in place of the unknown, recalculating both sides, and confirming they match within the rounding you already stated. If the check fails, say so, trace back through the steps to find where it broke, and redo that step instead of adjusting the final number to make it fit.

If I chose check if a triangle is a right triangle given all three sides, read the three lengths in [KNOWN_SIDES] and identify the longest one, since only the longest side can be a hypotenuse. On separate lines, square each of the two shorter sides, add those two results together, and square the longest side on its own. Compare the sum of the two smaller squares against the square of the longest side and show the actual numbers in that comparison, not just the verdict. State plainly which of three outcomes you landed on. If the two sums are equal, it's a right triangle. If the sum of the smaller squares is less than the longest side's square, the triangle is obtuse, not right. If the sum is greater, the triangle is acute, not right.

If I chose explain the theorem with a worked example, start with the theorem itself in one plain sentence: in a right triangle, the square of the hypotenuse equals the sum of the squares of the two legs. Then pick a concrete example, using the values from [KNOWN_SIDES] if they give you real numbers to work with, or falling back to a simple triangle like 3, 4, 5 if I left that field generic, and tell me which one you picked. Walk through that example using the same discipline described above: square each value on its own line, isolate and take the square root on its own line, and end with the substitution check. Then connect the result back to the plain-language statement of the theorem so the concept and the arithmetic reinforce each other.

Whatever mode produced the final answer, if the original input was a word problem, translate the number back into that problem's own language, such as "the ladder reaches about 33.6 feet up the wall," instead of leaving it as a bare value with no connection to what was actually being asked.

Variables
3

select
text
text

Use this prompt anywhere

10,000+ expert prompts for ChatGPT, Claude, Gemini, and wherever you use AI.

Get Early Access

About Pythagorean Theorem Solver

A basic calculator plugs in two numbers and spits out a third. It skips the reasoning your teacher actually wants to see, and it has no idea what to do with a word problem like a ladder leaning against a wall or the diagonal of a new TV screen.

This tool solves the Pythagorean theorem the way a tutor would: identify which side is the hypotenuse, write a² + b² = c² with your actual numbers dropped in, square each value on its own line, then take the square root and round it properly instead of guessing at the last digit. Give it your [KNOWN_SIDES] and it finds the third, or give it all three and it checks whether the triangle is right, obtuse, or acute.

Paste your [WORD_PROBLEM] in instead of clean numbers and it figures out which measurements are the legs and which one is the hypotenuse before doing any math, then hands the answer back in plain language instead of a bare decimal. Every solution gets checked by substituting the result back into the original equation, so a rounding mistake gets caught instead of shipped as the final answer.

Run it in the Dock Editor to keep the worked solution with the rest of your assignment, or paste it straight into ChatGPT, Claude, or Gemini. For a refresher on the arithmetic order this tool leans on for the squaring and adding, the order of operations solver breaks that down on its own.

How to Use Pythagorean Theorem Solver

1

Paste the prompt and choose your mode

Copy this into ChatGPT, Claude, Gemini, or the Dock Editor, then set [MODE] to solving for a missing side, checking a right triangle, or seeing a worked example.

2

Enter your known sides or paste a word problem

Fill in [KNOWN_SIDES] with what you have, such as 'a = 3, b = 4' or 'hypotenuse = 13, leg = 5', or leave it generic and paste your actual problem into [WORD_PROBLEM] instead.

3

Watch it identify the hypotenuse first

Before any arithmetic, the output states which given value is the hypotenuse and which are legs, or extracts that mapping from your word problem, since mixing them up is the most common setup mistake.

4

Follow the squaring and square-root steps

Each squared value, the addition or subtraction, and the square root appear on their own line instead of one jump to the answer, so you can catch a mistake at the exact step it happened.

5

Confirm the substitution check ran

The output plugs the solved side back into the original equation and shows both sides matching. If a value doesn't check out, it should say so and redo the step instead of forcing the number, so read this part before trusting the result.

Who Uses Pythagorean Theorem Solver

Geometry Students

Get a fully worked solution for homework with the hypotenuse identified up front, every squaring step shown, and the answer verified instead of a bare decimal to copy.

Parents Helping With Homework

Check your kid's answer without relearning geometry yourself. The substitution check confirms whether their number actually satisfies the original equation.

DIY and Trades Work

Paste a real measurement problem, like a ladder height or a diagonal brace length, into [WORD_PROBLEM] and get the right triangle extracted and solved automatically.

Math Tutors and Teachers

Generate a worked example with the hypotenuse identification and verification step included, ready to use as a model answer or a step-by-step handout.

Frequently Asked Questions

You Might Also Like

Discover more prompts that could help with your workflow.

Skip the copy-paste

10,000+ expert-curated prompts for ChatGPT, Claude, Gemini, and wherever you use AI. Our extension helps any prompt deliver better results.

Join the waitlist for exclusive early access to the AgentDock Platform