Trigonometric Function Grapher

Plot any trigonometric expression with custom variables and parameters. Supports complex expressions like sin(x)+cos(2x), 2*sin(3x-pi/4)+1, and more with real-time evaluation.

Function Expressions

Math Keyboard
sin( )
cos( )
tan( )
csc( )
sec( )
cot( )
asin( )
acos( )
atan( )
sinh( )
cosh( )
tanh( )
x
π
e
+
-
×
÷
^
sqrt( )
log( )
ln( )
abs( )
(
)
.
0
1
2
Graph Actions
Graph Settings
Smaller step = smoother curve but slower rendering
Display Options
f1(x) = sin(x)
f2(x) = cos(x)

Expression Examples

Click any example to load it into the grapher. You can modify these expressions or create your own.

Basic Sine Wave
sin(x)
Standard sine function with amplitude 1, period 2π
Phase-Shifted Sine
2*sin(3*x - pi/4) + 1
Amplitude: 2, Frequency: 3, Phase: π/4, Vertical shift: +1
Sum of Functions
sin(x) + cos(2*x)
Combination of sine and cosine with different frequencies
Tangent Function
tan(x)
Standard tangent function with vertical asymptotes
Sinc Function
sin(x)/x
Important in signal processing and Fourier analysis
Damped Sine Wave
exp(-0.1*x)*sin(x)
Sine wave with exponential decay, models damped oscillations
Trigonometric Identity
sin(x)^2 + cos(x)^2
Should equal 1 for all x (Pythagorean identity)
Inverse Sine
asin(x)
Arcsin function, domain: [-1, 1], range: [-π/2, π/2]
Complex Combination
sin(x)*cos(2*x) + sin(3*x)
Product and sum of trigonometric functions
Absolute Sine
abs(sin(x))
Absolute value of sine, creates a rectified sine wave
Oscillating Function
x*sin(1/x)
Interesting function that oscillates infinitely near x=0
Hyperbolic Cosine
cosh(x)
Hyperbolic cosine function, (e^x + e^(-x))/2

Supported Functions and Syntax

Expression Syntax: Use standard mathematical notation with x as the independent variable.

Examples: 2*sin(3*x - pi/4) + 1, sin(x)^2 + cos(x)^2, exp(-x)*cos(2*x)

Basic Arithmetic
Operation Symbol Example
Addition + sin(x) + cos(x)
Subtraction - sin(x) - 1
Multiplication * 2*sin(x)
Division / sin(x)/x
Exponentiation ^ sin(x)^2
Parentheses ( ) sin(2*(x+1))
Mathematical Constants
Constant Symbol Approximate Value
Pi pi 3.1415926535
Euler's Number e 2.7182818285
Mathematical Functions

Trigonometric

  • sin(x) - Sine
  • cos(x) - Cosine
  • tan(x) - Tangent
  • csc(x) - Cosecant
  • sec(x) - Secant
  • cot(x) - Cotangent

Inverse Trigonometric

  • asin(x) - Arcsine
  • acos(x) - Arccosine
  • atan(x) - Arctangent

Other Functions

  • sqrt(x) - Square root
  • exp(x) - Exponential
  • log(x) - Logarithm base 10
  • ln(x) - Natural logarithm
  • abs(x) - Absolute value
Advanced Features
Real-time Calculation

Expressions are evaluated as you type with immediate visual feedback

Derivative Computation

Automatic calculation and visualization of function derivatives