OnlyMath / Formula guides
Math formulas in context.
Check the conditions, understand the reasoning, and work through an example. Then try a variation, with checks, common pitfalls, and answers when you need them.
Pythagorean theorem
Find a missing side in a right triangle, or turn perpendicular horizontal and vertical distances into a straight-line distance.
Check the conditions first
- The triangle must have a right angle. The two sides meeting at that angle are the legs a and b.
- c is the hypotenuse, opposite the right angle and longer than either leg. Use positive side lengths in the same unit.
- To test whether a triangle is right-angled, put its longest side in the c position. The converse says that equality guarantees a right angle.
Why it works
Arrange four identical right triangles inside a square of side a + b, with their hypotenuses surrounding a central square of side c. The acute angles of each triangle add to 90°, so the central corners are right angles.
Count the same area as the four triangles plus the central square.
Expand both sides and cancel the matching 2ab terms.
Worked example, step by step
A right triangle has legs 3 cm and 4 cm. Find its hypotenuse.
Label the unknown hypotenuse c. Both given lengths are legs, so add their squares.
Square each number before adding.
Take the positive square root because c is a length. The hypotenuse is 5 cm.
Check your result
Substitute the result into the original relation. Also check that 5 is greater than both 3 and 4, and less than their sum 7.
Avoid these pitfalls
- Do not use a + b = c: the theorem relates squares of lengths, not the lengths themselves.
- If a leg is missing, subtract its companion’s square from c² before taking the square root.
- A picture that looks right-angled is not enough. Use a given right angle, perpendicular directions, or a justified converse test.
Try it: original variation exercises
Attempt each problem before opening the answer. Compare the reasoning as well as the result.
A 17 m support cable stretches from level ground to a vertical mast. Its ground anchor is 8 m from the mast. How high is the attachment point?
Answer and reasoning for exercise 1
The cable is the hypotenuse. Subtract to find the vertical leg; the attachment point is 15 m high.
A rectangular panel is 5 units wide and 7 units tall. Find its diagonal exactly, then to two decimal places.
Answer and reasoning for exercise 2
The width and height meet at a right angle. Keep the radical until the final rounding step.
A triangle has sides 6, 8, and 11 units. Is it a right triangle? Explain rather than relying on a sketch.
Answer and reasoning for exercise 3
No. Test the longest side, 11, as the possible hypotenuse. The squares do not satisfy the theorem.
Quadratic formula
Solve a quadratic equation even when its factors are hard to spot. The discriminant also tells you how many real solutions to expect.
Check the conditions first
- First write ax² + bx + c = 0, with real coefficients and a ≠ 0. If a = 0, the equation is not quadratic.
- Let D = b² − 4ac. If D > 0 there are two distinct real roots; if D = 0 there is one repeated real root.
- If D < 0, there are no real roots. Complex numbers extend the formula to that case, but these examples work over the real numbers.
Why it works
Start from ax² + bx + c = 0. Multiply by 4a and move the constant term to the right.
Add b² to both sides to complete the square.
When D ≥ 0, take both square-root branches, subtract b, and divide by 2a. This produces the formula above, including when a is negative.
Worked example, step by step
Solve x² − 5x + 6 = 0 and check both answers.
Read the signed coefficients from the standard form.
Compute the discriminant. It is positive, so expect two distinct real roots.
Substitute into the formula, keeping the entire numerator over 2a.
Evaluate the plus and minus cases separately.
Check your result
Both values make the original expression zero. Their sum is 5 = −b/a and their product is 6 = c/a, giving another useful check.
Avoid these pitfalls
- Read b with its sign: when b = −5, the numerator begins with −b = 5. Also, (−5)² = 25.
- Do not forget the minus branch or divide only the square-root term by 2a.
- A negative discriminant means no real solution; it does not mean the roots are negative. A zero discriminant gives the same root twice.
Try it: original variation exercises
Attempt each problem before opening the answer. Compare the reasoning as well as the result.
Solve this non-monic quadratic. Keep the negative root as a fraction.
Answer and reasoning for exercise 1
The discriminant is 25. The denominator is 4, so the roots are 2 and −1/2.
How many distinct real roots does this equation have? Find them.
Answer and reasoning for exercise 2
D = 36 − 36 = 0, so there is one distinct real root, −3, with multiplicity two. Factoring gives the same result.
Decide whether this equation has real roots. Explain with both the discriminant and a completed square.
Answer and reasoning for exercise 3
D = 4 − 20 = −16, so there are no real roots. The completed square is always positive for real x, confirming this.
Derivative power rule
Find the instantaneous rate of change of a power function. For polynomials, combine it with the sum and constant-multiple rules to differentiate one term at a time.
Check the conditions first
- For positive integer n, the rule holds at every real x. Constant functions have derivative 0; treat f(x) = 1 directly rather than writing 0 · x⁻¹ at x = 0.
- For a negative integer exponent, exclude x = 0. For any real exponent n, the rule is valid on x > 0.
- Some rational powers also allow negative inputs; check the particular function’s real domain. Behavior at x = 0 needs separate attention: √x is defined there but has no finite derivative there.
Why it works
For f(x) = x³, begin with the difference quotient, using h ≠ 0.
Let h approach zero. The terms containing h vanish, leaving 3x². The binomial expansion gives the same pattern for all positive integer powers.
For an arbitrary real n and x > 0, write xⁿ as e to the power n ln x. Once the chain rule and the derivatives of exp and ln are known, they justify the same result.
Worked example, step by step
For f(x) = x³, find the slope and tangent line at x = 2.
Multiply by the exponent, then lower that exponent by one.
Evaluate the derivative at x = 2 to obtain the slope.
Evaluate the original function to locate the point of tangency.
Use point-slope form. This line matches the function’s value and slope at the point.
Check your result
The tangent line gives y = 8 at x = 2. A nearby secant slope is 12.0601 when h = 0.01, approaching 12 as h approaches zero. A numerical check supports the calculation but is not a proof.
Avoid these pitfalls
- Subtract one from the exponent, not from the whole term: the derivative of x³ is 3x², not 3x³ − 1.
- A composite expression needs the chain rule. For (2x + 1)³, multiply 3(2x + 1)² by the inner derivative 2.
- The rule is for a constant exponent. It does not directly differentiate aˣ or xˣ. Also distinguish f(2), a function value, from f′(2), a slope.
Try it: original variation exercises
Attempt each problem before opening the answer. Compare the reasoning as well as the result.
Differentiate this polynomial, then find its slope at x = −1.
Answer and reasoning for exercise 1
Apply the constant-multiple rule term by term. The derivative of 5 is zero; then substitute −1.
Rewrite the reciprocal as a power, differentiate, and state the domain of the function and its derivative.
Answer and reasoning for exercise 2
Use exponent −2. Both the function and its derivative are defined for every real x except 0.
Find the derivative of √x at x = 9. Is the same derivative formula valid at x = 0?
Answer and reasoning for exercise 3
For positive x, use exponent 1/2. The derivative at 9 is 1/6.
No finite derivative exists at 0: even the right-hand difference quotient grows without bound. A function can be defined at a point without having a finite derivative there.