PRODUCTS
Products Overview
Mathematica
Mathematica Student Edition
Mathematica Home Edition
Wolfram
CDF Player
(free download)
Computable Document Format (CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Wolfram
SystemModeler
Wolfram
Finance Platform
Mathematica
Add-Ons
Wolfram|Alpha Products
SOLUTIONS
Solutions Overview
Engineering
Aerospace Engineering & Defense
Chemical Engineering
Control Systems
Electrical Engineering
Image Processing
Industrial Engineering
Materials Science
Mechanical Engineering
Operations Research
Optics
Petroleum Engineering
Biotechnology & Medicine
Bioinformatics
Medical Imaging
Finance, Statistics & Business Analysis
Actuarial Sciences
Data Analysis & Mining
Econometrics
Economics
Financial Engineering & Mathematics
Financial Risk Management
Statistics
Software Engineering & Content Delivery
Authoring & Publishing
Interface Development
Software Engineering
Web Development
Science
Astronomy
Biological Sciences
Chemistry
Environmental Sciences
Geosciences
Social & Behavioral Sciences
Design, Arts & Entertainment
Game Design, Special Effects & Generative Art
Education
STEM Education Initiative
Higher Education
Community & Technical College Education
Primary & Secondary Education
Students
Technology
Computable Document Format (CDF)
High-Performance & Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
Merchandise
SUPPORT
Support Overview
Mathematica
Documentation
Knowledge Base
Learning Center
Technical Services
Community & Forums
Training
Does My Site Have a License?
Wolfram User Portal
COMPANY
About Wolfram Research
News
Events
Wolfram Blog
Partnerships
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
All Sites
Wolfram|Alpha
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Media
Wolfram
Tones
Wolfram Science
Stephen Wolfram
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE
DOCUMENTATION CENTER
FOR THE LATEST INFORMATION.
DOCUMENTATION CENTER SEARCH
New to
Mathematica
?
Find your learning path
»
Mathematica
>
Mathematics and Algorithms
>
Formula Manipulation
>
Assumptions and Domains
>
ForAll (
)
>
BUILT-IN MATHEMATICA SYMBOL
Quantifiers
Tutorials »
|
Exists
Resolve
Conjunction
Reduce
Element
Blank
SolveAlways
TautologyQ
See Also »
|
Assumptions and Domains
Boolean Computation
Formula Manipulation
Logic & Boolean Algebra
Polynomial Systems
More About »
ForAll
ForAll
represents the statement that
expr
is
True
for all values of
.
ForAll
states that
expr
is
True
for all
x
satisfying the condition
cond
.
ForAll
states that
expr
is
True
for all values of all the
.
MORE INFORMATION
ForAll
can be entered as
. The character
can be entered as
Esc
fa
Esc
or
\[ForAll]
. The variable
is given as a subscript.
ForAll
can be entered as
.
In
StandardForm
,
ForAll
is output as
.
ForAll
is output as
.
ForAll
can be used in such functions as
Reduce
,
Resolve
, and
FullSimplify
.
The condition
cond
is often used to specify the domain of a variable, as in
x
Integers
.
ForAll
is equivalent to
ForAll
[
x
,
Implies
[
cond
,
expr
]]
.
ForAll
is equivalent to
.
The value of
in
ForAll
is taken to be localized, as in
Block
.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
This states that for all
,
is positive:
Use
Resolve
to get a condition on real parameters for which the statement is true:
Reduce
gives the condition in a solved form:
This states that for all
,
is positive:
In[1]:=
Out[1]=
Use
Resolve
to get a condition on real parameters for which the statement is true:
In[2]:=
Out[2]=
Reduce
gives the condition in a solved form:
In[3]:=
Out[3]=
Scope
(6)
This states that for all
the inequation is true:
Use
Resolve
to prove that the statement is false:
This states that for all real
the inequation is true:
Use
Resolve
to prove that the statement is true:
This states that for all pairs
the inequality is true:
With domain not specified,
Resolve
considers algebraic variables in inequalities to be real:
With domain
Complexes
, complex values that make the inequality
False
are allowed:
This states the tautology
implies
:
Prove it:
If the expression does not explicitly contain a variable,
ForAll
simplifies automatically:
TraditionalForm
formatting:
Applications
(5)
This states the inequality between the arithmetic mean and the geometric mean:
Use
Resolve
to prove the inequality:
This states a special case of Hölder's inequality:
Use
Resolve
to prove the inequality:
This states a special case of Minkowski's inequality:
Use
Resolve
to prove the inequality:
Prove geometric inequalities for
,
, and
sides of a triangle:
This states that an inequality is satisfied for all triangles:
Use
Resolve
to prove the inequality:
This states that an inequality is satisfied for all acute triangles:
Use
Resolve
to prove the inequality:
Test whether one region is included in another:
This states that all points satisfying
also satisfy
:
The statement is true, hence the region defined by
is included in the region defined by
:
Plot the relationship:
Properties & Relations
(3)
Negation of
ForAll
gives
Exists
:
Quantifiers can be eliminated using
Resolve
or
Reduce
:
This eliminates the quantifier:
This eliminates the quantifier and solves the resulting equations and inequalities:
This states that an equation is true for all complex values of
:
Use
Reduce
to find the values of parameters for which the statement is true:
This solves the same problem using
SolveAlways
:
SEE ALSO
Exists
Resolve
Conjunction
Reduce
Element
Blank
SolveAlways
TautologyQ
TUTORIALS
Quantifiers
MORE ABOUT
Assumptions and Domains
Boolean Computation
Formula Manipulation
Logic & Boolean Algebra
Polynomial Systems
RELATED LINKS
NKS|Online
(
A New Kind of Science
)
New in 5