Calculus learning library

Learn calculus rules from the reason, not just the answer

Read concise proofs, domain conditions, worked examples and common mistakes, then try the same problem in the calculator.

Function derivative formulas and methods

Natural logarithms

Derivative of ln(x): Formula, Proof, and Examples

ddx[ln⁡x]=1x\frac{\mathrm{d}}{\mathrm{d}x}\left[\ln x\right] = \frac{1}{x}

For real-valued ln(x), x > 0.

Read the guide

Reciprocal derivatives

Derivative of 1/x: Power Rule, Chain Rule and Domain

ddx[1x]=−1x2\frac{\mathrm{d}}{\mathrm{d}x}\left[\frac{1}{x}\right] = \frac{-1}{x^{2}}

The function and derivative are defined only for x ≠ 0. For 1/g(x), require g(x) ≠ 0 and differentiability.

Read the guide

Differentiation methods

How to Do Implicit Differentiation: Steps and Examples

Differentiate both sides, collect every y′ term, then solve for y′.

A local slope formula for y=y(x) requires the coefficient of y′ to be nonzero at the point being studied.

Read the guide

Differentiation methods

How to Find Partial Derivatives: Steps and Examples

Choose one variable; hold the other independent variables constant.

A partial derivative describes change in one independent direction while the remaining independent variables stay fixed.

Read the guide

Higher-order partial derivatives

Mixed Partial Derivatives: fxy vs fyx and Differentiation Order

Here f_xy means differentiate first with respect to x, then y: f_xy = ∂/∂y(∂f/∂x). Independent f_x and f_y both start from the original function.

Check the notation convention before calculating. Continuous second partial derivatives in a neighborhood are a sufficient condition for f_xy=f_yx; equality is not unconditional.

Read the guide

Calculus learning

Derivative of cot(x): Quotient Rule, Sign and Chain Rule

d/dx cot(x)=−csc²(x). For cot(g(x)), multiply by g′(x).

Use radians and exclude sin(x)=0. For a composition, exclude sin(g(x))=0.

Read the guide

Calculus learning

Derivative of csc(x): Reciprocal Rule and Composite Functions

d/dx csc(x)=−csc(x)cot(x)=−cos(x)/sin²(x).

Angles are in radians; sin(x) must not be zero.

Read the guide

Calculus learning

Derivative of arcsin(x): Inverse Function Proof and Endpoint Limits

d/dx arcsin(x)=1/√(1−x²), for −1<x<1.

The real function is defined on [−1,1], but a finite two-sided derivative is only available in the interior.

Read the guide

Calculus learning

Derivative of arccos(x): Negative Sign, Domain and Chain Rule

d/dx arccos(x)=−1/√(1−x²), for −1<x<1.

The principal real arccos range is [0,π]. The function exists at endpoints, but the finite derivative formula does not.

Read the guide

Calculus learning

Derivative of log Base a: Change of Base and Inner Derivatives

d/dx log_a(x)=1/[x ln(a)] for a>0, a≠1 and x>0.

The base is a positive constant different from one. A variable base requires a different derivative.

Read the guide

Calculus learning

Derivatives of Hyperbolic Functions: sinh, cosh and tanh

(sinh x)′=cosh x, (cosh x)′=sinh x, and (tanh x)′=1/cosh²x.

These three real functions are defined for every real x. Hyperbolic functions are not periodic trigonometric functions.

Read the guide

Exponential derivatives

Derivative of exp(x): Why eˣ Is Its Own Derivative

ddx[ex]=ex\frac{\mathrm{d}}{\mathrm{d}x}\left[e^{x}\right] = e^{x}

For a real aˣ, a>0; exp(g(x)) also requires g′(x).

Read the guide

Core derivative rules

Power Rule for Derivatives: Exponents and Conditions

d/dx xⁿ = nxⁿ⁻¹

The real interval must support the original power; a composite base also requires the chain rule.

Read the guide

Differentiation methods

How to Use the Product Rule Without Losing a Term

(fg)′ = f′g + fg′

Both factors may depend on x; a true constant factor can be pulled out.

Read the guide

Differentiation methods

How to Use the Quotient Rule and Keep the Order

(f/g)′ = (f′g − fg′)/g²

The denominator g(x) must be nonzero.

Read the guide

Higher derivatives

How to Find a Second Derivative Step by Step

f″(x) = d/dx [f′(x)]

The first derivative must itself be differentiable on the interval.

Read the guide

Radical derivatives

Derivative of √x: Formula, Domain, and x=0

d/dx √x = 1/(2√x)

Over the reals √x exists for x≥0, but this finite derivative requires x>0.

Read the guide

Piecewise derivatives

Derivative of |x|: Piecewise Rule and the Corner at Zero

d/dx |x| = x/|x| for x≠0; undefined at x=0

The formula excludes zero; every zero of a composite inside expression needs direct analysis.

Read the guide

Trigonometric derivatives

Derivative of sin(x): Why It Is cos(x)

ddx[sin⁡x]=cos⁡x\frac{\mathrm{d}}{\mathrm{d}x}\left[\sin x\right] = \cos x

The standard formula assumes radians; sin(g(x)) also requires multiplication by g′(x).

Read the guide

Trigonometric derivatives

Derivative of cos(x): The Negative Sine Sign Explained

ddx[cos⁡x]=−sin⁡x\frac{\mathrm{d}}{\mathrm{d}x}\left[\cos x\right] = -\sin x

The standard formula assumes radians; cos(g(x)) also requires g′(x).

Read the guide

Inverse trigonometric functions

Derivative of arctan(x): Formula, Proof, and Examples

ddx[arctan⁡x]=11+x2\frac{\mathrm{d}}{\mathrm{d}x}\left[\arctan x\right] = \frac{1}{1 + x^{2}}

Valid for every real x; angles are measured in radians.

Read the guide

Trigonometric derivatives

Derivative of tan(x): Formula, Proof, and Examples

ddx[tan⁡x]=sec⁡2x\frac{\mathrm{d}}{\mathrm{d}x}\left[\tan x\right] = \sec^{2} x

Requires cos(x) ≠ 0; angles are measured in radians.

Read the guide

Reciprocal trigonometric functions

Derivative of sec(x): Formula, Proof, and Examples

ddx[sec⁡x]=sec⁡x tan⁡x\frac{\mathrm{d}}{\mathrm{d}x}\left[\sec x\right] = \sec x\,\tan x

Requires cos(x) ≠ 0; angles are measured in radians.

Read the guide

Differentiation methods

How to Use the Chain Rule: Steps and Examples

If y=f(g(x)), then y′=f′(g(x))g′(x).

Use the chain rule when one differentiable function is evaluated inside another differentiable function.

Read the guide

Chain-rule mistakes

Why Do You Multiply by the Inner Derivative?

For y=f(g(x)), multiply by g'(x) because the input of f changes at the rate g'(x), not at one unit per x.

The rule applies when one differentiable function is evaluated inside another; every nontrivial nested layer contributes a factor.

Read the guide

Choosing a derivative rule

Chain Rule vs. Product Rule: How to Tell the Difference

Use the chain rule for f(g(x)), the product rule for f(x)g(x), and apply both when a multiplied factor contains a composition.

Identify the top-level operation before differentiating: function application means composition, while an explicit product joins separate factors.

Read the guide

Partial-derivative meaning

Why Are Other Variables Constant in Partial Derivatives?

A partial derivative measures change in one coordinate direction, so the other independent variables are held fixed during that measurement.

This interpretation assumes the listed variables are independent coordinates; variables connected by a constraint require a different analysis.

Read the guide

Choosing the active variable

Partial Derivative with Respect to x vs. y

With respect to x, hold y fixed; with respect to y, hold x fixed. The same expression can therefore produce two different valid derivatives.

Always identify the active variable before applying derivative rules, and preserve any other variables that act as coefficients.

Read the guide

Integration methods and definite integrals

Definite integral methods

How to Evaluate Definite Integrals: Bounds and Worked Steps

∫……f x dx=F b−F a\int_{\ldots}^{\ldots} f\,x\,\mathrm{d}x = F\,b - F\,a

This form of the fundamental theorem applies when f is continuous on the closed finite interval and F′=f. Singularities and improper integrals need separate analysis.

Read the guide

Rational expressions

Partial Fraction Decomposition: Setup, Coefficients and Checks

3 x+5(x+1) (x+2)=2x+1+1x+2\frac{3\,x + 5}{\left(x + 1\right)\,\left(x + 2\right)} = \frac{2}{x + 1} + \frac{1}{x + 2}

Keep every original denominator restriction; here x ≠ −1,−2. The calculator handles supported rational expressions, not every possible factorization.

Read the guide

Integration methods

Integration by Substitution: Match the Inner Derivative

If u=g(x), then ∫f(g(x))g′(x)dx=∫f(u)du

The substitution must account for the differential factor and preserve or transform the bounds.

Read the guide

Absolute values and integration

Integral of Absolute Value: Split at Zeros and Check the Sign

To integrate |g(x)|, locate the zeros and any domain boundaries of g, determine its sign on each interval, and integrate g or −g accordingly. In real arithmetic √(x²)=|x|.

Use real inputs. A complete sign analysis requires every relevant zero and domain boundary; a few sampled values do not prove a global sign pattern.

Read the guide

Calculus learning

Trigonometric Substitution: Choosing a Substitution and Its Domain

Use x=a sin θ for √(a²−x²), x=a tan θ for √(a²+x²), or x=a sec θ for √(x²−a²).

Assume a>0 and choose an angle interval on which the substitution is one-to-one. Square roots are nonnegative; √(u²)=|u|.

Read the guide

Calculus learning

Integrating Rational Functions: Division, Partial Fractions and Domains

Divide first if needed, decompose the proper fraction, then integrate its simpler pieces.

The denominator must not be zero. An antiderivative applies separately on each interval of the original domain.

Read the guide

Calculus learning

Improper Integrals: Infinite Bounds, Singularities and Convergence

Replace each infinite endpoint or singular endpoint by its own limit. Every required limit must converge.

Split at every interior singularity. A Cauchy principal value is not the ordinary improper integral.

Read the guide

Calculus learning

Area Between Curves: Intersections, Top Minus Bottom and Splitting

A=∫ₐᵇ |f(x)−g(x)| dx. Split wherever the upper and lower curves exchange places.

The curves must be integrable on the chosen finite interval. Geometric area is nonnegative and uses square units.

Read the guide

Calculus learning

Volumes of Revolution: Disk, Washer and Shell Setup

About the x-axis with nonnegative radii, V=π∫ₐᵇ [R(x)²−r(x)²] dx.

Use perpendicular slices for disks/washers and parallel slices for shells. Distances are measured from the stated rotation axis.

Read the guide

Integration methods

Integration by Parts: Choosing u and dv

∫u dv\int u\,\mathrm{d}v

Choose dv so it can be integrated and u so differentiation makes the remaining integral simpler.

Read the guide

Logarithmic integrals

Integral of 1/x: Why It Is ln|x| + C

∫1x dx=ln⁡∣x∣+C\int \frac{1}{x}\,\mathrm{d}x = \ln\left|x\right| + C

The integrand is defined only for x≠0, so antiderivatives live on intervals that do not cross zero.

Read the guide

Trigonometric integrals

Integrals of sin(x) and cos(x): Signs and Factors

∫sin(x)dx=−cos(x)+C; ∫cos(x)dx=sin(x)+C

For sin(ax+b) or cos(ax+b), divide by the nonzero inner slope a.

Read the guide

Integration methods

U-Substitution vs. Integration by Parts: How to Choose

Use substitution for a composite pattern f(g(x))g′(x); use integration by parts when a product becomes simpler after differentiating one factor.

This is a method-selection test, not a guarantee that either technique finishes every integral.

Read the guide

Definite integrals

Why a Definite Integral Is Not Always the Total Area

A definite integral gives net signed area; total area adds the magnitudes of regions above and below the axis.

If the integrand changes sign on the interval, split at every relevant zero before calculating total area.

Read the guide

Limits and directional behavior

Algebraic limits

Limits by Factoring: Remove a Hole Correctly

Factor, cancel the common nonzero factor near the point, then evaluate.

Cancellation is valid only for nearby x where the canceled factor is nonzero.

Read the guide

Directional limits

One-Sided Limits: Read Left and Right Separately

A two-sided limit exists only when the left and right limits agree.

The function value at the target does not determine either one-sided limit.

Read the guide

Calculus learning

Squeeze Theorem: Bounding an Oscillating Function Near a Point

If g(x)≤f(x)≤h(x) near a and both outer functions tend to L, then f(x) tends to L.

The inequalities must hold throughout a punctured neighborhood, not merely at selected sample points.

Read the guide

Calculus learning

Limits at Infinity: Leading Terms, Signs and Horizontal Asymptotes

For a rational function, compare numerator and denominator degrees; equal degrees give the ratio of leading coefficients.

End behavior at +∞ and −∞ can differ. These are limits, not evaluations at a numeric value called infinity.

Read the guide

Calculus learning

Continuity and Discontinuities: Values, Limits, Holes and Jumps

At an interior point a, continuity requires f(a) to exist, lim x→a f(x) to exist, and the two to agree.

At a domain endpoint use the appropriate one-sided condition. Continuity and differentiability are different properties.

Read the guide

Limit methods

When to Use L’Hôpital’s Rule—and When Not To

Use L’Hôpital only after substitution gives 0/0 or ∞/∞ and its hypotheses hold.

The quotient must have an eligible indeterminate form, and the differentiated quotient must be meaningful near the target.

Read the guide

One-sided limits

When Left and Right Limits Differ, the Limit Does Not Exist

A two-sided limit exists only when the left-hand and right-hand limits approach the same value.

Check both directions separately whenever the expression changes behavior across the approach point.

Read the guide