Graph Formulas Guide

Learn how to write mathematical expressions for different graph types. FlashcardZen supports 2D functions, 3D surfaces, parametric curves, vector fields, and vectors.

Graph Types

FlashcardZen supports five types of mathematical graphs. Each type uses different variables and expression formats.

TypeVariablesFormatExample
2D Functionxy = f(x)sin(x)
3D Surfacex, yz = f(x, y)x^2 + y^2
Parametric Curvetx(t), y(t), z(t)sin(t), cos(t), t/5
Vector Fieldx, y, zvx, vy [, vz]y, -x
Vector—ox, oy, oz, vx, vy, vz0, 0, 0, 1, 1, 1

Supported Functions

All standard mathematical operations are supported:

Basic Operators

+Addition
-Subtraction
*Multiplication
/Division
^Power (e.g., x^2)

Trigonometric

sin(x)Sine
cos(x)Cosine
tan(x)Tangent
asin(x)Arc sine
acos(x)Arc cosine
atan(x)Arc tangent

Exponential & Log

exp(x)e^x
log(x)Natural log (ln)
log10(x)Base-10 log
sqrt(x)Square root
cbrt(x)Cube root

Other Functions

abs(x)Absolute value
floor(x)Round down
ceil(x)Round up
round(x)Round to nearest
sign(x)Sign (-1, 0, 1)

Constants

pi = 3.14159...
e = 2.71828...

Examples by Graph Type

2D Function (y = f(x))

sin(x)
x^2
cos(x) + 1
1/x
exp(-x^2)
abs(sin(x) * x)

3D Surface (z = f(x, y))

x^2 + y^2
sin(x) * cos(y)
sqrt(x^2 + y^2)
exp(-(x^2 + y^2))
sin(sqrt(x^2 + y^2))

Parametric Curve (x(t), y(t), z(t))

Three comma-separated expressions for x, y, and z coordinates:

sin(t), cos(t), t/5          // helix
cos(t), sin(t), 0            // circle in XY plane
t*cos(t), t*sin(t), t        // 3D spiral
sin(t), sin(2*t), sin(3*t)   // Lissajous curve

Vector Field (vx, vy [, vz])

Two or three comma-separated expressions for velocity components:

y, -x              // 2D rotation (counterclockwise)
-y, x              // 2D rotation (clockwise)
x, y               // divergence (outward flow)
-x, -y             // convergence (inward flow)
y, -x, z           // 3D helical field

Vector (origin + direction)

Six numbers: origin (ox, oy, oz) and direction (vx, vy, vz):

0, 0, 0, 1, 1, 1      // from origin to (1,1,1)
0, 0, 0, 1, 0, 0      // unit vector along X
2, 0, 0, 0, 1, 0      // from (2,0,0) along Y
1, 1, 1               // shorthand: origin at (0,0,0)

Tip: Use just 3 values (vx, vy, vz) for vectors starting from origin.

Domain Configuration

Use the "Domain" tab in the graph editor to adjust the viewing range:

X, Y, Z Range

Controls the viewing area for all axes. Range is symmetric, e.g., [-5, 5].

t Range (Parametric only)

For parametric curves, controls the parameter t range independently.