If-Then Statements
Learn to write conditional statements in if-then form, find the hypothesis and conclusion, and decide when a conditional is false.
Definition
- The part after "if" is the hypothesis (), the condition.
- The part after "then" is the conclusion (), what must follow.
- Hypothesis : a number ends in 0
- Conclusion : the number is divisible by 10
| T | T | T |
| T | F | F |
| F | T | T |
| F | F | T |
Try it now
Worked Examples
Identify the hypothesis and the conclusion: "If a triangle has a right angle, then it is a right triangle."
Find the part after "if"
"a triangle has a right angle" → Hypothesis : a triangle has a right angle
Find the part after "then"
"it is a right triangle" → Conclusion : the triangle is a right triangle
Write it in symbols
The condition comes first, the result second →
Answer: Hypothesis: a triangle has a right angle. Conclusion: it is a right triangle. In symbols: .
Common Mistakes
Taking the first part of the sentence as the hypothesis, as in "I take an umbrella if it rains" → hypothesis "I take an umbrella"
Why it's wrong: The hypothesis is the part that follows the word "if" (or "when", "whenever"), wherever it stands in the sentence.
Correct: Find the condition first: "it rains". Then write: If it rains, then I take an umbrella.
Thinking that is false whenever the hypothesis is false
Why it's wrong: A conditional only promises something for the case where happens. If does not happen, the promise cannot be broken.
Correct: is false only in the case T → F. When is false, the conditional is true, whatever is.
Using a number that does not satisfy the hypothesis as a counterexample, for example against "if , then "
Why it's wrong: For the conclusion is false, but the hypothesis is false too, so this case cannot break the statement.
Correct: A counterexample must make the hypothesis true and the conclusion false. For "if , then " no such number exists, so the statement is true.
Believing that one example that works proves the statement
Why it's wrong: "If is a whole number, then is prime" works for () and (), but gives , which is not prime.
Correct: Examples can only support a statement. To prove it you need a general argument, but a single counterexample is enough to disprove it.
Interactive Visual
Truth Table
| p | q | p → q |
|---|---|---|
| F | F | T |
| F | T | T |
| T | F | F |
| T | T | T |
T= TrueF= False
Truth Table
| p | q | p → q |
|---|---|---|
| F | F | |
| F | T | |
| T | F | |
| T | T |
T= TrueF= False
Interactive Sandbox
Expression Calculator
Try these:
History
No calculations yet
Practice Problems
18 problemsWhat is the hypothesis of the statement "If it rains, then the football match is cancelled"?
Why It Matters
- Shopping: "If your order is at least 40 euros, then delivery is free."
- Rules and games: "If you roll a 6, then you roll again."
- Science: "If water is heated to 100 °C at sea level, then it boils."
- Programming: every app is full of commands like "if the password is correct, then open the account".
- Mathematics: almost every rule and theorem is a conditional, for example "if a triangle has a right angle, then " (where is the longest side).
Real World Applications
Online Shopping
Shops use if-then rules for free delivery, discounts and gifts. To use the offer, you must make the hypothesis true.
Example:
"If your order is at least 40 dollars, then delivery is free." An order of 52 dollars makes the hypothesis true, so delivery must be free.
A shop promises: if your order is at least 40 dollars, then delivery is free. Your basket has a T-shirt for 18 dollars and a cap for 15 dollars.
How many more dollars do you need to spend so that the hypothesis becomes true?
Step 1: Write the mathematical expression
Subtract your total from 40:
Testing Claims in Mathematics
Mathematicians test a conditional by searching for a counterexample. If they find one, the claim is false.
Example:
"If a number is prime, then it is odd" is false, because 2 is prime and even.
A classmate claims: if a whole number is a multiple of 3, then it is odd.
What is the smallest positive counterexample?
Step 1: Write the mathematical expression
The multiples of 3 are 3, 3 + 3, 3 + 3 + 3, ... Write the second one:
Smart Homes and Programming
A thermostat runs on a conditional: if the room is colder than a set value, then the heating turns on.
Example:
"If the temperature is below 18 °C, then the heating turns on." At 17 °C the hypothesis is true, so the heating must turn on. At 20 °C nothing is promised.
The rule is: if the temperature is below 18 °C, then the heating turns on. At 7:00 the room is 22 °C and it cools by 3 °C every hour.
What is the temperature after 2 hours, and is the heating on?
Step 1: Write the mathematical expression
Start at 22 and subtract 3 twice:
Key Takeaways
- 1A conditional statement has the form "if , then ", written
- 2The hypothesis is the condition after "if"; the conclusion is the result after "then"
- 3Many sentences hide a conditional: "every A is B" means "if something is A, then it is B"
- 4 is false only when is true and is false (T → F); in the other three cases it is true
- 5A counterexample makes the hypothesis true and the conclusion false, and one is enough to disprove a statement
- 6Examples that work support a statement, but they do not prove it
Frequently Asked Questions
Glossary
- Conditional statement
- A statement of the form "if , then ", also called an if-then statement
- Hypothesis
- The condition of a conditional, the part after "if" ()
- Conclusion
- The result of a conditional, the part after "then" ()
- Implication
- Another name for a conditional; is read " implies "
- Counterexample
- A case where the hypothesis is true and the conclusion is false; it shows that a conditional is false
- Truth value
- Whether a statement is true (T) or false (F)
Formula Card
Conditional
Read "if $p$, then $q$": $p$ is the hypothesis, $q$ is the conclusion
Only false case
A conditional is false only when the hypothesis is true and the conclusion is false
Counterexample
One such case is enough to disprove $p \to q$