Overview
Giac provides a comprehensive set of functions for symbolic differentiation, including ordinary derivatives, partial derivatives, gradients, and implicit differentiation.Core Functions
derive
Compute the derivative of an expression with respect to a variable.The expression to differentiate
The variable to differentiate with respect to (single variable)
Variable or list of variables for differentiation
Order of derivative (for higher-order derivatives)
The derivative of the expression
grad
Compute the gradient of a scalar function (vector of partial derivatives).Arguments: [expression, variables]
Vector of partial derivatives (gradient)
function_diff
Differentiate a function definition.Function to differentiate
Derivative of the function
implicit_diff
Compute implicit differentiation for equations of the form F(x,y) = 0.Utility Functions
depend
Check if an expression depends on a variable.Expression to check
Variable to check dependency on
True if the expression depends on the variable
domain
Determine the domain of a function.Function expression
Variable
Domain computation mode
critical
Find critical points of a function.Function to analyze
If true, return only extrema (not inflection points)
List of critical points
Symbolic Construction
symb_derive
Create a symbolic derivative expression (unevaluated).Expression to differentiate
Variable
Order of derivative
Notes
- All derivative functions use symbolic computation
- Higher-order derivatives can be computed by specifying the order
- The system applies differentiation rules automatically (product rule, chain rule, etc.)
- For vector-valued functions, use
gradto compute the gradient - Implicit differentiation is useful for equations that cannot be solved explicitly for one variable
