WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center

ApplySides [f,rel]

applies f to each side of the equation or inequality rel.

Details
Details and Options Details and Options
Examples  
Basic Examples  
Scope  
Applications  
Properties & Relations  
Possible Issues  
See Also
Related Guides
History
Cite this Page

ApplySides [f,rel]

applies f to each side of the equation or inequality rel.

Details

  • The relations rel can have any of the following forms:
  • lhs==rhs equations
    lhs!=rhs inequations
    lhs>rhs or lhs>=rhs inequalities
    ab>c generalized inequalities
  • ApplySides does not verify that inequalities are still valid after function application.

Examples

open all close all

Basic Examples  (2)

Exponentiate both sides of an equation:

Wolfram Language code: ApplySides[Exp, Log[x] == 2]

Take the square root of both sides of an inequality:

Wolfram Language code: ApplySides[Sqrt, x ^ 2 + 1 > 4]

Scope  (6)

Compute the logarithm of each side of an equation with three expressions:

Wolfram Language code: ApplySides[Log, a == b^2 == c^3]

Take the cube root of each side of a generalized inequality:

Wolfram Language code: ApplySides[CubeRoot, a == b > -8 > c]

Apply Factorial to both sides of an inequation:

Wolfram Language code: ApplySides[Factorial, n ≠ 5]

Raise each side of an equation to the fourth power using a pure function:

Wolfram Language code: ApplySides[# ^ 4&, a == I b]

Apply Sinh to several inequalities expressed using Piecewise :

Wolfram Language code: ApplySides[Sinh, Piecewise[{{x^2 > c/a + (b*x)/a, a > 0}, {x^2 < c/a + (b*x)/a, a < 0}}, a*x^2 > c + b*x]]

Compute the common logarithm of both sides of an equation inside ConditionalExpression :

Wolfram Language code: ApplySides[Log10, ConditionalExpression[(a/c) == (b/d), c ≠ 0]]

Applications  (1)

Derive the quadratic formula:

Wolfram Language code: quadratic = a x^2 + b x + c == 0

Multiply both sides by 4 a:

Wolfram Language code: MultiplySides[quadratic, 4a, Assumptions -> a ≠ 0]//Expand

Add b^2-4 a c to both sides:

Wolfram Language code: AddSides[%, b^2 - 4a c]

Factor the left-hand side:

Wolfram Language code: Factor[%]

Take the positive square root of both sides:

Wolfram Language code: ApplySides[Sqrt, %]

Cancel the square root of the square:

Wolfram Language code: PowerExpand[%]

Subtract b from both sides:

Wolfram Language code: SubtractSides[%, b]

Divide both sides by 2 a to obtain the quadratic formula for x with positive square root:

Wolfram Language code: DivideSides[%, 2a, Assumptions -> a ≠ 0]

Properties & Relations  (2)

True and False are considered trivial equations:

Wolfram Language code: ApplySides[Sin, True]
Wolfram Language code: ApplySides[Cos, 1 == 0]

ApplySides transforms equations to related equations:

Wolfram Language code: ApplySides[Exp, Log[x] == 5]

Solve gives values for the variables that make the equation true:

Wolfram Language code: Solve[Log[x] == 5, x]

Reduce can be used to rewrite an equation in the form var==value:

Wolfram Language code: Reduce[Log[x] == 5, x]

Possible Issues  (1)

ApplySides is a purely structural operation and does not check mathematical consistency:

Wolfram Language code: ApplySides[Sin, x > c]

The new inequality is not equivalent to the original:

Wolfram Language code: {x > c, Sin[x] > Sin[c]} /. {x -> 3Pi / 2, c -> Pi / 2}
Wolfram Research (2018), ApplySides, Wolfram Language function, https://reference.wolfram.com/language/ref/ApplySides.html.

Text

Wolfram Research (2018), ApplySides, Wolfram Language function, https://reference.wolfram.com/language/ref/ApplySides.html.

CMS

Wolfram Language. 2018. "ApplySides." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ApplySides.html.

APA

Wolfram Language. (2018). ApplySides. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ApplySides.html

BibTeX

@misc{reference.wolfram_2026_applysides, author="Wolfram Research", title="{ApplySides}", year="2018", howpublished="\url{https://reference.wolfram.com/language/ref/ApplySides.html}", note=[Accessed: 14-August-2026]}

BibLaTeX

@online{reference.wolfram_2026_applysides, organization={Wolfram Research}, title={ApplySides}, year={2018}, url={https://reference.wolfram.com/language/ref/ApplySides.html}, note=[Accessed: 14-August-2026]}

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /