Kalkulator Komposisi Fungsi
Evaluasi f(x), g(x), f(g(x)), dan g(f(x)) untuk dua fungsi pada nilai x tertentu, dengan derivasi substitusi langkah demi langkah.
Input
Sebuah fungsi dari x, ditulis dalam notasi matematika standar (^ untuk pangkat, sqrt(), sin(), dll.).
Fungsi kedua dari x, dalam notasi yang sama.
Nilai x untuk mengevaluasi kedua fungsi dan komposisinya.
Output
Cara lain menggunakan alat ini
REST API
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"
}'Ganti dengan kunci Anda sendiri dari akun Anda. Bidang alat menjadi isi permintaan — tanpa pembungkus.
Tanyakan ke agen AI
Use the IOTools `function-composition-calculator` tool (Function Composition Calculator) on this input:
YOUR_INPUT_HERETempelkan ini ke agen mana pun yang terhubung ke server MCP IOTools, lalu tambahkan input Anda.
Widget sematan
<iframe
src="https://iotools.cloud/embed/function-composition-calculator/"
width="100%" height="520" frameborder="0" scrolling="no" loading="lazy"
title="Kalkulator Komposisi Fungsi — 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>Tempelkan ini di halaman Anda sendiri — gratis, tanpa kunci, cukup tautan balik.
| Biaya per panggilan API/MCP | Mulai dari 5 kredit |
|---|---|
| Butuh kredit lebih? | Lihat harga |
Juga tersedia melalui
Panduan
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
- Enter f(x) and g(x) in terms of x — standard math notation works:
^for powers, plussqrt(),sin(),cos(),log(), and the other functions supported by mathjs's expression parser. - Enter the x value to evaluate both functions and their compositions at.
- Read f(x), g(x), f(g(x)), and g(f(x)) for the four evaluated results.
- 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.