Pular para o conteúdo principal

Calculadora de Composição de Funções

Avalie f(x), g(x), f(g(x)) e g(f(x)) para duas funções em um determinado valor x, com derivação de substituição passo a passo.

Entrada

Uma função de x, escrita em notação matemática padrão (^ para potências, sqrt(), sin(), etc.).

Uma segunda função de x, na mesma notação.

O valor de x para avaliar ambas as funções e suas composições.

Saída

Derivação Passo a Passo
Isso foi útil?

Mais formas de usar esta ferramenta

API REST

curl -X POST https://api.iotools.cloud/v1/tool/function-composition-calculator \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "functionF": "x + 3",
    "functionG": "x - 3",
    "x": "5"
  }'

Troque pela sua própria chave, da sua conta. Os campos da ferramenta viram o corpo da requisição — sem envelope.

Peça a um agente de IA

Use the IOTools `function-composition-calculator` tool (Function Composition Calculator) on this input:

YOUR_INPUT_HERE

Cole isto em qualquer agente conectado ao servidor MCP do IOTools e depois adicione sua entrada.

Widget para incorporar

<iframe
  src="https://iotools.cloud/embed/function-composition-calculator/"
  width="100%" height="520" frameborder="0" scrolling="no" loading="lazy"
  title="Calculadora de Composição de Funções — iotools.cloud"
  sandbox="allow-scripts allow-forms allow-same-origin allow-downloads allow-popups allow-popups-to-escape-sandbox"
  allow="clipboard-write"
  style="width:100%;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden"></iframe>
<script src="https://iotools.cloud/embed.js" async></script>

Coloque isso na sua própria página — grátis, sem chave, só um link de volta.

Custo por chamada de API/MCPA partir de 5 créditos
Precisa de mais créditos?Ver preços

Também disponível via

Guias

The Function Composition Calculator evaluates two functions, f(x) and g(x), at a given value of x, then combines them into the composite functions f(g(x)) and g(f(x)) — showing every substitution along the way.

It's built for algebra and precalculus students checking composition homework, and anyone who needs to verify how two functions combine without working through the algebra by hand.

How to use it

  1. Enter f(x) and g(x) in terms of x — standard math notation works: ^ for powers, plus sqrt(), sin(), cos(), log(), and the other functions supported by mathjs's expression parser.
  2. Enter the x value to evaluate both functions and their compositions at.
  3. Read f(x), g(x), f(g(x)), and g(f(x)) for the four evaluated results.
  4. Step-by-Step Derivation shows the substitution behind each composition.

Results update automatically as you type. For example, f(x) = x + 3, g(x) = x - 3, at x = 5 gives f(x) = 8, g(x) = 2, f(g(x)) = 5, and g(f(x)) = 5 — since these two functions are inverses of each other, both compositions return the original x.

What is function composition?

Composing two functions means feeding the output of one into the other. f(g(x)) means "first apply g to x, then apply f to that result" — computed as f(g(x)), not f(x) · g(x). g(f(x)) reverses the order: apply f first, then g. The two compositions are generally not equal — composition isn't commutative, which is exactly why this calculator computes both.

Why do f(g(x)) and g(f(x)) usually differ?

Because the order of substitution changes which expression gets plugged into which. For f(x) = 2x + 1 and g(x) = x^2, f(g(x)) = 2x^2 + 1 while g(f(x)) = (2x + 1)^2 — entirely different expressions that only coincide at specific x values, if at all. Checking both, as this calculator does, is the fastest way to confirm which composition a problem is actually asking for.

What functions can I enter?

Anything mathjs's expression evaluator understands: polynomials (x^3 - 2x + 1), trigonometric functions (sin(x), cos(x), tan(x)), roots and logarithms (sqrt(x), log(x)), and combinations of these. Angles in trig functions are in radians by default — write pi for π. If a composition isn't defined at your chosen x (for example, f(x) = sqrt(x) composed with a g(x) that goes negative), the calculator flags it rather than showing an invalid result.

To check whether a function is symmetric rather than compose two of them, see the Function Odd/Even/Neither Checker. To evaluate arbitrary math expressions directly, see the Math Evaluator.

Privacy

This calculator runs entirely in your browser. Your functions and x value are never uploaded, logged, or stored — the computation happens locally on your device.

composite functionfunction compositionf of g of xnested functionsalgebracalculusf(x)g(x)

Ama as ferramentas? Livre-se dos anúncios.

Um único pagamento remove todos os anúncios da sua conta, para sempre. Sem assinatura, sem rastreamento.