Use the Function Analysis Calculator

Enter your function to graph, evaluate, analyze, and perform calculus operations with detailed step-by-step solutions.

Function Calculator

Enter function and select analysis type

📈 Polynomial
🔄 Trigonometric
🎯 Exponential
📝 Logarithmic
📊 Rational
Supported: +, -, *, /, ^, sin, cos, tan, log, ln, exp, sqrt, abs

Analysis Results

TXT
PDF
JSON
Print
-
Function Type
-
Domain
-
Range
-
Zeros

Function Properties

Enter a function and click "Graph & Analyze"

Calculus Analysis

Enter a function and click "Derivative" or "Integral"

Step-by-Step Solution

Enter a function and click "Graph & Analyze" to see step-by-step solutions

Recent Functions

Types of Functions

A function is a relation between a set of inputs (domain) and a set of possible outputs (range) with the property that each input is related to exactly one output. Functions are fundamental mathematical objects used to model relationships between quantities.

Common Types of Functions:

  • Polynomial Functions: f(x) = aₙxⁿ + aₙ₋₁xⁿ⁻¹ + ... + a₁x + a₀
  • Trigonometric Functions: sin(x), cos(x), tan(x), etc.
  • Exponential Functions: f(x) = a·bˣ
  • Logarithmic Functions: f(x) = log_b(x)
  • Rational Functions: f(x) = P(x)/Q(x) where P and Q are polynomials
  • Piecewise Functions: Different rules for different intervals

Polynomial Functions

Functions consisting of variables raised to non-negative integer powers with constant coefficients. Degree determines shape.

f(x) = 3x³ - 2x² + 5x - 1
Degree: 3 (cubic)
Shape: S-shaped curve

Trigonometric Functions

Functions based on ratios of sides of right triangles. Periodic functions modeling oscillations and waves.

f(x) = 2sin(3x) + 1
Amplitude: 2
Period: 2π/3
Phase shift: 0

Exponential Functions

Functions where the variable appears in the exponent. Model growth and decay processes.

f(x) = 2·3ˣ
Base: 3
Initial value: 2
Growth factor: 3

Logarithmic Functions

Inverse of exponential functions. Used to solve exponential equations and model phenomena.

f(x) = log₂(x + 1)
Base: 2
Domain: x > -1
Vertical asymptote: x = -1

Rational Functions

Ratios of polynomial functions. Often have vertical and horizontal asymptotes.

f(x) = (x² - 1)/(x - 2)
Vertical asymptote: x = 2
Hole at: x = -1
Oblique asymptote: y = x + 2

Piecewise Functions

Functions defined by different formulas on different intervals. Model situations with changing rules.

f(x) = { x² if x < 0
2x if 0 ≤ x < 2
4 if x ≥ 2 }

Function Analysis Techniques

Analyzing functions involves understanding their key properties and behavior. This section covers essential analysis techniques.

Domain and Range

  • Domain: All possible input values (x-values)
  • Range: All possible output values (y-values)
  • Restrictions: Division by zero, square roots of negatives
  • Interval Notation: Representing continuous sets of numbers
f(x) = 1/(x-2)
Domain: (-∞, 2) ∪ (2, ∞)
Range: (-∞, 0) ∪ (0, ∞)

Intercepts

  • x-intercepts (zeros): Points where f(x) = 0
  • y-intercept: Point where x = 0
  • Finding zeros: Solve f(x) = 0
  • Multiplicity: Behavior at repeated roots
f(x) = x² - 4
x-intercepts: (-2, 0), (2, 0)
y-intercept: (0, -4)

Symmetry

  • Even functions: f(-x) = f(x), symmetric about y-axis
  • Odd functions: f(-x) = -f(x), symmetric about origin
  • Periodic functions: f(x + p) = f(x) for some period p
  • Testing symmetry: Replace x with -x and compare
Even: f(x) = x²
Odd: f(x) = x³
Periodic: f(x) = sin(x)

Asymptotes

  • Vertical asymptotes: x = a where f(x) → ±∞
  • Horizontal asymptotes: y = L as x → ±∞
  • Oblique asymptotes: Slanted lines for rational functions
  • Finding asymptotes: Limits at infinity and undefined points
f(x) = (2x²)/(x²-1)
Vertical: x = -1, x = 1
Horizontal: y = 2

Increasing/Decreasing

  • Increasing: f(x₁) < f(x₂) when x₁ < x₂
  • Decreasing: f(x₁) > f(x₂) when x₁ < x₂
  • Critical points: Where derivative is zero or undefined
  • Test intervals: Check sign of derivative between critical points
f(x) = x³ - 3x
Increasing: (-∞, -1) ∪ (1, ∞)
Decreasing: (-1, 1)

Concavity and Inflection

  • Concave up: Graph lies above tangent lines
  • Concave down: Graph lies below tangent lines
  • Inflection points: Where concavity changes
  • Second derivative test: f''(x) > 0 → concave up
f(x) = x³
Concave down: (-∞, 0)
Concave up: (0, ∞)
Inflection: (0, 0)

Graphing Functions

Mastering function graphing involves understanding transformations, key points, and asymptotic behavior.

1

Identify Function Type

Determine whether the function is polynomial, trigonometric, exponential, etc. This tells you the general shape.

f(x) = 2sin(3x) + 1
Type: Trigonometric
Shape: Sine wave
2

Find Domain and Range

Determine all possible x-values (domain) and y-values (range). Look for restrictions.

f(x) = √(x-2)
Domain: [2, ∞)
Range: [0, ∞)
3

Locate Intercepts

Find where the graph crosses the axes. Set x=0 for y-intercept and f(x)=0 for x-intercepts.

f(x) = x² - 4
y-intercept: (0, -4)
x-intercepts: (-2, 0), (2, 0)
4

Identify Asymptotes

Find vertical, horizontal, and oblique asymptotes for rational and other functions.

f(x) = 1/(x-1)
Vertical: x = 1
Horizontal: y = 0
5

Plot Key Points

Calculate function values at important points including intercepts, vertices, and inflection points.

f(x) = x² - 2x - 3
Vertex: (1, -4)
Intercepts: (-1, 0), (3, 0), (0, -3)
6

Sketch the Curve

Connect points smoothly, showing proper behavior at asymptotes and following function characteristics.

Consider:
• End behavior
• Symmetry
• Increasing/decreasing
• Concavity

Transformations of Functions

Understanding transformations helps graph complex functions quickly:

  • Vertical shift: f(x) + k moves graph up/down by k units
  • Horizontal shift: f(x - h) moves graph left/right by h units
  • Vertical stretch/compression: a·f(x) stretches by factor |a|
  • Horizontal stretch/compression: f(bx) compresses by factor 1/|b|
  • Reflections: -f(x) reflects over x-axis, f(-x) reflects over y-axis

Calculus Operations on Functions

Calculus provides powerful tools for analyzing function behavior through derivatives and integrals.

Derivatives

  • Definition: f'(x) = limₕ→₀ [f(x+h) - f(x)]/h
  • Power rule: d/dx[xⁿ] = n·xⁿ⁻¹
  • Product rule: (fg)' = f'g + fg'
  • Quotient rule: (f/g)' = (f'g - fg')/g²
  • Chain rule: (f(g(x)))' = f'(g(x))·g'(x)
f(x) = 3x² + 2x - 1
f'(x) = 6x + 2
Slope at x=2: 14

Applications of Derivatives

  • Slope of tangent: f'(a) gives slope at x=a
  • Increasing/decreasing: f'(x) > 0 → increasing
  • Local extrema: f'(c) = 0 or undefined
  • Concavity: f''(x) > 0 → concave up
  • Optimization: Finding maximum/minimum values
f(x) = x³ - 3x
Critical points: x = -1, 1
Local max: (-1, 2)
Local min: (1, -2)

Integrals

  • Indefinite integral: ∫f(x)dx = F(x) + C
  • Definite integral: ∫ₐᵇ f(x)dx = F(b) - F(a)
  • Power rule: ∫xⁿ dx = xⁿ⁺¹/(n+1) + C, n ≠ -1
  • Substitution: ∫f(g(x))g'(x)dx = ∫f(u)du
  • Integration by parts: ∫u dv = uv - ∫v du
∫(3x² + 2)dx = x³ + 2x + C
∫₀² (3x² + 2)dx = [x³ + 2x]₀² = 12

Applications of Integrals

  • Area under curve: ∫ₐᵇ f(x)dx
  • Area between curves: ∫ₐᵇ [f(x) - g(x)]dx
  • Volume of revolution: π∫ₐᵇ [f(x)]²dx (disk method)
  • Average value: (1/(b-a))∫ₐᵇ f(x)dx
  • Accumulated change: Integral of rate of change
Area under f(x)=x² from 0 to 2:
∫₀² x² dx = [x³/3]₀² = 8/3

Differential Equations

  • Ordinary DE: Equation involving derivatives
  • Separation of variables: dy/dx = f(x)g(y)
  • First-order linear: dy/dx + P(x)y = Q(x)
  • Applications: Population growth, cooling, circuits
  • Initial value problems: DE with given condition
dy/dx = ky
Solution: y = Ce^(kx)
Models: Exponential growth/decay

Series and Sequences

  • Taylor series: f(x) = Σ f⁽ⁿ⁾(a)(x-a)ⁿ/n!
  • Maclaurin series: Taylor series at a=0
  • Convergence tests: Ratio test, root test
  • Power series: Σ aₙ(x-c)ⁿ
  • Applications: Approximations, solving DEs
eˣ = 1 + x + x²/2! + x³/3! + ...
sin(x) = x - x³/3! + x⁵/5! - ...

Solved Examples

Step-by-step solutions to various function analysis problems:

Example 1: Polynomial Function
Analyze f(x) = x³ - 3x² - 4x + 12
1. Find zeros: (x-2)(x+2)(x-3) = 0
2. Zeros: x = -2, 2, 3
3. y-intercept: f(0) = 12
4. End behavior: as x→±∞, f(x)→±∞
Domain: (-∞, ∞)
Range: (-∞, ∞)
Intercepts: (-2,0), (2,0), (3,0), (0,12)
Example 2: Trigonometric Function
Graph f(x) = 2sin(πx/2) + 1
1. Amplitude: |2| = 2
2. Period: 2π/(π/2) = 4
3. Vertical shift: up 1 unit
4. Range: [-1, 3]
Amplitude: 2
Period: 4
Range: [-1, 3]
Phase shift: 0
Example 3: Exponential Function
Analyze f(x) = 3·2ˣ - 1
1. Horizontal asymptote: y = -1
2. y-intercept: f(0) = 3·1 - 1 = 2
3. Domain: (-∞, ∞)
4. Range: (-1, ∞)
Domain: (-∞, ∞)
Range: (-1, ∞)
Asymptote: y = -1
Growth factor: 2
Example 4: Derivative
Find derivative of f(x) = (x² + 1)eˣ
1. Use product rule: (fg)' = f'g + fg'
2. f(x) = x² + 1, g(x) = eˣ
3. f'(x) = 2x, g'(x) = eˣ
4. f'(x) = 2xeˣ + (x²+1)eˣ
f'(x) = (x² + 2x + 1)eˣ
Simplified: (x+1)²eˣ
Example 5: Integral
Find ∫(3x² + 2cos(x))dx
1. ∫3x² dx = x³ + C₁
2. ∫2cos(x) dx = 2sin(x) + C₂
3. Combine: x³ + 2sin(x) + C
4. Check: d/dx[x³+2sin(x)] = 3x²+2cos(x) ✓
∫(3x² + 2cos(x))dx =
x³ + 2sin(x) + C
Example 6: Rational Function
Analyze f(x) = (x²-4)/(x-2)
1. Simplify: (x-2)(x+2)/(x-2) = x+2, x≠2
2. Hole at x=2 (removable discontinuity)
3. Domain: (-∞, 2) ∪ (2, ∞)
4. Range: (-∞, 4) ∪ (4, ∞)
Simplified: f(x) = x+2, x≠2
Hole: (2, 4)
Domain: x ≠ 2
Range: y ≠ 4

Practice Problems

Test your understanding with these practice problems:

Problem 1: Find the domain of f(x) = √(4 - x²)

Solution:

For square root, radicand must be ≥ 0:

4 - x² ≥ 0

x² ≤ 4

-2 ≤ x ≤ 2

Domain: [-2, 2]

Problem 2: Find zeros of f(x) = x³ - 2x² - 5x + 6

Solution:

Try rational roots: ±1, ±2, ±3, ±6

f(1) = 1 - 2 - 5 + 6 = 0 ✓

So (x-1) is a factor

Divide: (x³-2x²-5x+6) ÷ (x-1) = x² - x - 6

Factor: x² - x - 6 = (x-3)(x+2)

Zeros: x = 1, 3, -2

Problem 3: Find derivative of f(x) = ln(x² + 1)

Solution:

Use chain rule: d/dx[ln(u)] = u'/u

Let u = x² + 1, then u' = 2x

f'(x) = (2x)/(x² + 1)

Problem 4: Find ∫(2x·e^(x²))dx

Solution:

Use substitution: Let u = x², then du = 2x dx

∫(2x·e^(x²))dx = ∫e^u du

= e^u + C

= e^(x²) + C

Problem 5: Find vertical asymptotes of f(x) = (x+1)/(x²-4)

Solution:

Vertical asymptotes occur when denominator = 0 and numerator ≠ 0

x² - 4 = 0

(x-2)(x+2) = 0

x = 2, x = -2

Check numerator at these points: f(2) = 3/0, f(-2) = -1/0

Both are non-zero, so vertical asymptotes at x = 2 and x = -2

Real-World Applications of Functions

Functions model countless real-world phenomena across various disciplines.

Physics and Engineering

  • Projectile motion: h(t) = -½gt² + v₀t + h₀
  • Spring motion: x(t) = Acos(ωt + φ)
  • Electrical circuits: I(t) = I₀e^(-t/RC)
  • Heat transfer: T(t) = Tₐ + (T₀ - Tₐ)e^(-kt)
  • Wave equations: y(x,t) = Asin(kx - ωt)

Economics and Finance

  • Cost functions: C(x) = mx + b
  • Revenue functions: R(x) = px
  • Profit functions: P(x) = R(x) - C(x)
  • Compound interest: A(t) = P(1 + r/n)^(nt)
  • Supply/demand: p = mq + b

Biology and Medicine

  • Population growth: P(t) = P₀e^(rt)
  • Logistic growth: P(t) = K/(1 + Ae^(-rt))
  • Drug concentration: C(t) = C₀e^(-kt)
  • Enzyme kinetics: v = Vₘₐₓ[S]/(Kₘ + [S])
  • Epidemiology: SIR models

Computer Science

  • Algorithm complexity: O(n), O(n²), O(log n)
  • Hash functions: h(x) = (ax + b) mod m
  • Activation functions: sigmoid, ReLU, tanh
  • Graphics transformations: matrix functions
  • Cryptography: modular exponentiation

Chemistry

  • Reaction rates: rate = k[A]^m[B]^n
  • Arrhenius equation: k = Ae^(-Eₐ/RT)
  • pH calculations: pH = -log[H⁺]
  • Beer-Lambert law: A = εlc
  • Ideal gas law: PV = nRT

Environmental Science

  • Carbon dating: N(t) = N₀e^(-λt)
  • Pollution decay: C(t) = C₀e^(-kt)
  • Resource depletion: logistic models
  • Climate models: differential equations
  • Population dynamics: predator-prey models

Frequently Asked Questions About Functions

Learn how to graph, evaluate, and analyze functions with clear explanations.

What is a function in mathematics?
A function is a relationship where each input (x-value) has exactly one output (y-value). Functions are used to model real-world relationships such as motion, growth, and change in algebra and calculus.
What’s the difference between a function and a relation?
A relation is any set of ordered pairs, while a function is a special relation where each input has only one output. Functions must pass the vertical line test.
How do you graph a function step-by-step?
To graph a function, choose input values, calculate outputs, plot the points on a coordinate plane, and connect them smoothly. Graphing calculators can automate this and highlight key features like intercepts and turning points.
What is the domain and range of a function?
The domain is the set of all possible input values (x-values), while the range is the set of all possible output values (y-values). Restrictions like division by zero or square roots affect the domain.
How do I determine if a function is one-to-one?
Use the horizontal line test: if any horizontal line intersects the graph more than once, the function is not one-to-one. One-to-one functions have unique outputs for each input.
What are piecewise functions and when are they used?
Piecewise functions use different formulas over different intervals. They are commonly used in real-life scenarios like tax rates, shipping costs, and absolute value functions.
How do you find the inverse of a function?
Swap x and y, solve for y, and rename it as f⁻¹(x). The function must be one-to-one to have an inverse.
How do you find the roots or zeros of a function?
Set the function equal to zero and solve for x. Roots represent the x-intercepts where the graph crosses the x-axis.
What is the average rate of change of a function?
It is calculated as (f(b) − f(a)) / (b − a), representing the slope between two points on a graph. It shows how a function changes over an interval.
What is the derivative of a function?
The derivative measures the instantaneous rate of change of a function. It represents the slope of the tangent line at any point on the graph.
What is the integral of a function?
The integral represents the total accumulation or area under a curve. It is widely used in physics, engineering, and economics.
What are asymptotes in functions?
Asymptotes are lines that a graph approaches but never touches. They often appear in rational and logarithmic functions.
Is this function calculator free and accurate?
Yes, this function calculator is completely free and provides accurate results with step-by-step explanations, graphs, and detailed analysis.