Functions & Algebra UDFs (methods_udfs / m)
High-performance algebra functions for composite domains, functional identities, hybrid continuity, inverses, and simultaneous linear systems.
methods_udfs\composite_dom(f, g, var, df_min, df_max)
f: Outer function expression \(f(u)\)g: Inner function expression \(g(x)\)var: Independent variable of \(g(x)\)df_min: Outer function domain lower bound \(\min(\text{dom}(f))\)df_max: Outer function domain upper bound \(\max(\text{dom}(f))\)
Exam question example:
Let $f(x) = 2x^2 + x - 1$ for $x \in \mathbb{R}$ and $g(x) = \sin(x)$ for $x \in \mathbb{R}$.
Explain why the composite function $f(g(x))$ exists, and state its rule.
CAS Output:
methods_udfs\func_identities(f, x)
f: Function expression \(f(x)\)x: Independent variable
Exam question example:
Which one of the following functions satisfies the functional equation $f(x + y) = f(x)f(y)$ for all $x, y \in \mathbb{R}$?
CAS Output:
methods_udfs\hybrid_check(f, g, x, c)
f: Left branch function \(f(x)\) for \(x \le c\)g: Right branch function \(g(x)\) for \(x > c\)x: Independent variablec: Transition junction point \(x = c\)
Exam question example:
A piecewise function is defined by $h(x) = \begin{cases} x^2 + 2x, & x \le 1 \\ 4x - 1, & x > 1 \end{cases}$.
Determine whether $h$ is continuous and whether $h$ is differentiable at $x = 1$.
CAS Output:
methods_udfs\inverse_func(f, var)
f: Function expression \(f(x)\)var: Independent variable
Exam question example:
Let $f(x) = \frac{1}{4}(x + 2)^3 + 2$ for $x \in \mathbb{R}$.
Find the rule and domain of $f^{-1}$, and find the coordinates of any points of intersection of $y = f(x)$ and $y = f^{-1}(x)$.
CAS Output:
methods_udfs\inv_intersect_k(f, x, k)
f: Parameterized function expression \(f(x, k)\)x: Independent variablek: Parameter variable
Exam question example:
Let $f(x) = e^{kx}$ for $x \in \mathbb{R}$ where $k > 0$.
Find the values of $k$ for which the graphs of $y = f(x)$ and $y = f^{-1}(x)$ have exactly one point of intersection.
CAS Output:
methods_udfs\linear_sys_k(e1, e2, x, y, k)
e1: First linear equation containing parameter \(k\)e2: Second linear equation containing parameter \(k\)x: First variabley: Second variablek: Parameter variable
Exam question example:
Consider the system of simultaneous linear equations:
\[ \begin{aligned} kx + 3y &= k^2 \\ 2x + (2k+1)y &= 6 - 2k \end{aligned} \]Find all values of $k$ for which the system has: (i) a unique solution, (ii) no solutions, (iii) infinitely many solutions.
CAS Output:
methods_udfs\num_solutions_k(f, var, dmin, dmax)
f: Function expression \(f(x)\)var: Independent variabledmin: Domain lower bounddmax: Domain upper bound
Exam question example:
Find the number of real solutions to the equation $x e^{-x} = k$ for $x \in [0, \infty)$ across different real values of $k$.
CAS Output: