Calculus Solver

Got a photo of your Math homework?

Upload it and let AI solve it instantly.

Upload Image →
Calculus Solver Derivatives · Integrals · Limits

Result

Graph  Blue = f(x)  |  Green = f'(x)  |  Shaded = integral region

Quick Examples

Polynomial:
Trig:
Chain Rule:
Product:
Exp / Log:
Indefinite:
Definite:
Trig:
Exp:
Direct Sub:
Indeterminate:
Infinity:

Calculus Solver: Derivatives, Integrals, and Limits Step by Step

Your complete guide to calculus, from understanding limits and continuity to mastering derivatives, integrals, and their real-world applications.

How to Use This Calculus Solver

Derivatives

Click the Derivative tab. Type f(x) using x, ^, and function names. Select the order (1st, 2nd, 3rd). Press Calculate.

3x^2 + sin(x)
x^2*ln(x)
e^(2x) + arctan(x)

Integrals

Click the Integral tab. For definite integrals, check the box and enter bounds a and b. Press Calculate.

Indefinite: 3x^2 → x³ + C
Definite: x^2 [0, 3] → 9

Limits

Click the Limit tab. Enter f(x), the approach value, and select the direction. Press Calculate.

(x^2-1)/(x-1) as x→1 = 2
sin(x)/x as x→0 = 1

Calculus by Student Level

Pre-Calculus / Intro Level

Topics here: Limits, basic derivatives (power rule), and introduction to integrals. Suitable for precalculus students meeting calculus ideas for the first time.

How to use: Start with simple polynomials like x² or x³ in the Derivative tab. Use the Limit tab with simple functions like x² at x=3 to understand the concept.

Tip: Read the rule name shown in each step. This helps you memorize which rule to reach for on a test.

AP Calculus AB / IB SL

Topics here: All derivative rules, indefinite and definite integrals, FTC, area under a curve, basic optimization, and limits including L'Hopital candidates.

How to use: Work problems by hand first, then enter them to verify. Pay close attention to the chain rule step in composite functions, as that is the most common error on AP exams.

Tip: Use the 2nd derivative button to check your concavity work for optimization problems.

AP Calculus BC / College

Topics here: Higher-order derivatives, integration by substitution patterns, numerical integration for complex integrands, and limits at infinity for series convergence checks.

How to use: Verify sub-steps in longer multi-part problems. The symbolic integration engine handles most patterns from BC. For integration by parts or partial fractions, use the AI Math Solver.

Tip: For definite integrals where symbolic antiderivative fails, the numerical result from Simpson's rule is still highly accurate and useful for checking your work.

Using This Tool for Calculus Assignments

Homework Problems

Work each problem on paper first, then enter it here to verify. If the answers differ, compare your working step by step against the solver output. The most common errors are forgetting to apply the chain rule and sign mistakes when using the quotient rule.

Case Studies and Projects

Many applied calculus projects involve real functions like population models or revenue curves. Set up the derivative or integral from the word problem, then use this tool to evaluate it. The step-by-step output can guide the solution section of a written report.

Quiz and Exam Preparation

Click Random to load a random function, differentiate or integrate it on paper in under 90 seconds, then check. Repeat 10 times before a test. Timed repetition is the fastest way to build the pattern recognition that calculus exams reward.

Problem Sets

For multi-part problem sets, verify each derivative or integral before using it in the next step. A wrong antiderivative in part (a) of a problem produces wrong answers in parts (b) and (c). Catching the error early saves a lot of time and marks.

What Is Calculus?

What is calculus and why does it matter?

Calculus is the branch of mathematics that studies how things change. It gives you the tools to answer questions like: how fast is something moving at this exact moment, what is the total area under a curve, and what value does a function approach as x gets close to a number? These questions appear in physics, engineering, economics, biology, and computer science every day.

What are the two main branches of calculus?

Differential calculus focuses on rates of change. The derivative of a function tells you how fast the output is changing relative to the input at any point. Integral calculus focuses on accumulation. The integral of a function tells you the total amount accumulated over an interval. The two branches are connected by the Fundamental Theorem of Calculus.

Who invented calculus?

Isaac Newton and Gottfried Wilhelm Leibniz independently developed calculus in the late 17th century. Newton used it to describe motion and gravity. Leibniz introduced the notation we still use today, including the integral sign and d/dx for derivatives. Their work transformed science and mathematics permanently.

Limits and Continuity

What is a limit in calculus?

A limit describes the value a function approaches as the input gets closer and closer to a specific point. You write it as lim(x→a) f(x) = L. The function does not need to equal L at x = a. It only needs to approach L from both sides. Limits are the foundation of both derivatives and integrals.

How do I evaluate a limit by direct substitution?

The simplest method is to substitute the approach value directly into the function. For example, lim(x→3) x² = 3² = 9. Direct substitution works whenever the function is defined and continuous at that point. If substitution gives a finite number, that is the limit.

What is an indeterminate form?

An indeterminate form occurs when direct substitution produces 0/0, ∞/∞, or similar undefined expressions. For example, lim(x→1) (x² − 1)/(x − 1) gives 0/0 at x = 1. You need to simplify the function first. Factor the numerator: (x−1)(x+1)/(x−1) = x+1, so the limit is 1+1 = 2.

What are one-sided limits?

A left-hand limit lim(x→a⁻) approaches from values smaller than a. A right-hand limit lim(x→a⁺) approaches from values larger than a. The two-sided limit exists only when both one-sided limits exist and are equal. For 1/x at x = 0, the left limit is −∞ and the right limit is +∞, so the two-sided limit does not exist.

What is a limit at infinity?

A limit at infinity asks what value f(x) approaches as x grows without bound. For example, lim(x→∞) 1/x = 0 because 1/x gets closer and closer to zero as x increases. Limits at infinity describe the horizontal asymptotes of a function. Enter "infinity" in the approach field of this solver to compute them.

What does it mean for a function to be continuous?

A function is continuous at a point x = a if three conditions hold: f(a) is defined, the limit lim(x→a) f(x) exists, and the limit equals f(a). If any condition fails, the function has a discontinuity at that point. Common discontinuities are holes (removable), jumps, and vertical asymptotes (infinite).

Differential Calculus — Derivatives

What is a derivative?

The derivative f'(x) of a function f(x) measures the instantaneous rate of change of f with respect to x. Geometrically it is the slope of the tangent line to the curve at a given point. Physically, if f(x) is position, then f'(x) is velocity and f''(x) is acceleration.

What is the power rule?

The power rule states: d/dx(x^n) = n · x^(n−1). It is the most frequently used differentiation rule. For example, d/dx(x³) = 3x², and d/dx(x⁴) = 4x³. The rule works for any real exponent n, including fractions and negative numbers.

What is the product rule?

The product rule handles derivatives of products of two functions: d/dx[f · g] = f' · g + f · g'. For example, d/dx[x² · sin(x)] = 2x · sin(x) + x² · cos(x). A helpful way to remember it: "derivative of first times second, plus first times derivative of second."

What is the quotient rule?

The quotient rule handles derivatives of fractions: d/dx[f/g] = (f'g − fg') / g². For example, d/dx[sin(x)/x] = (cos(x) · x − sin(x) · 1) / x² = (x·cos(x) − sin(x)) / x². A memory aid: "low d-high minus high d-low over low squared."

What is the chain rule?

The chain rule applies when differentiating a function of a function: d/dx[f(g(x))] = f'(g(x)) · g'(x). Think of it as "derivative of the outside, keep the inside, times derivative of the inside." For sin(3x), the outside is sin, the inside is 3x, so the result is cos(3x) · 3 = 3cos(3x).

What are the derivatives of trigonometric functions?

The six standard trig derivatives are: d/dx(sin x) = cos x, d/dx(cos x) = −sin x, d/dx(tan x) = sec²x, d/dx(cot x) = −csc²x, d/dx(sec x) = sec x · tan x, d/dx(csc x) = −csc x · cot x. For composite arguments, multiply by the inner derivative via the chain rule.

What is the derivative of e^x and ln(x)?

These two are the simplest exponential and logarithmic derivatives: d/dx(e^x) = e^x (the function is its own derivative), and d/dx(ln x) = 1/x. For a composite version like e^(3x), the chain rule gives 3e^(3x). For ln(x²+1), the chain rule gives 2x/(x²+1).

What are higher-order derivatives?

The second derivative f''(x) is the derivative of f'(x). It measures how quickly the rate of change is itself changing. Geometrically it determines concavity: f''(x) > 0 means concave up (cup-shaped), f''(x) < 0 means concave down. Use the order selector in the Derivative tab to compute 1st, 2nd, or 3rd derivatives.

What are inverse trigonometric derivatives?

The most important ones are: d/dx(arcsin x) = 1/√(1−x²), d/dx(arccos x) = −1/√(1−x²), d/dx(arctan x) = 1/(1+x²). These appear frequently in integration problems because they arise as antiderivatives of algebraic expressions.

Applications of Derivatives

How do I find the equation of a tangent line?

To find the tangent line at x = a: compute f(a) to get the y-coordinate, then compute f'(a) to get the slope m. Use the point-slope formula: y − f(a) = f'(a)(x − a). For example, for f(x) = x² at x = 2: f(2) = 4, f'(2) = 4, so the tangent is y − 4 = 4(x − 2), or y = 4x − 4.

How do I find maximum and minimum values?

Set f'(x) = 0 and solve for the critical points. Then use the second derivative test: if f''(c) > 0, the critical point c is a local minimum; if f''(c) < 0, it is a local maximum; if f''(c) = 0, the test is inconclusive. For absolute extrema on a closed interval, also check the endpoints.

What is curve sketching using derivatives?

The first derivative tells you where the function is increasing (f'>0) or decreasing (f'<0). The second derivative tells you where it is concave up (f''>0) or concave down (f''<0). Points where concavity changes are called inflection points. Together, these features let you sketch an accurate graph without plotting hundreds of points.

What is an optimization problem in calculus?

Optimization problems ask for the maximum or minimum value of a quantity given certain constraints. The process is: write the objective function, express it in one variable using the constraint, differentiate, set equal to zero, and solve for the critical point. Common examples include maximizing area, minimizing cost, and finding the shortest path.

What is the Mean Value Theorem?

The Mean Value Theorem states that if f is continuous on [a, b] and differentiable on (a, b), then there exists at least one point c in (a, b) where f'(c) = (f(b) − f(a)) / (b − a). Geometrically, there is a point where the tangent line slope equals the average slope over the interval. It is a key theoretical tool in calculus.

What is related rates?

Related rates problems involve two or more quantities that change with time and are connected by an equation. Differentiate both sides of the equation with respect to time using the chain rule. For example, if the radius r and volume V of a sphere are related by V = (4/3)πr³, then dV/dt = 4πr² · dr/dt.

Integral Calculus — Integrals

What is an integral?

An integral is the reverse process of differentiation. The indefinite integral ∫ f(x) dx finds a function F(x) such that F'(x) = f(x). The answer always includes + C, the constant of integration, because the derivative of any constant is zero. The definite integral ∫ₐᵇ f(x) dx gives a specific numerical value representing the signed area under the curve.

What is the power rule for integration?

The reverse power rule states: ∫ x^n dx = x^(n+1)/(n+1) + C, for n ≠ −1. For example, ∫ x² dx = x³/3 + C and ∫ x⁴ dx = x⁵/5 + C. The special case n = −1 gives ∫ (1/x) dx = ln|x| + C.

What are the basic trig integrals?

The standard trigonometric integrals are: ∫ sin(x) dx = −cos(x) + C, ∫ cos(x) dx = sin(x) + C, ∫ sec²(x) dx = tan(x) + C. For linear arguments like sin(ax), divide by the coefficient: ∫ sin(2x) dx = −cos(2x)/2 + C.

What is integration by substitution?

Substitution (also called u-substitution) is the integration version of the chain rule. Choose u = g(x), compute du = g'(x)dx, and rewrite the integral in terms of u. After integrating, substitute back. For example, ∫ 2x · e^(x²) dx: let u = x², du = 2x dx, so ∫ e^u du = e^u + C = e^(x²) + C.

What is the Fundamental Theorem of Calculus?

The Fundamental Theorem connects differentiation and integration. Part 1 states that if F(x) = ∫ₐˈ f(t) dt, then F'(x) = f(x). Part 2 states that ∫ₐᵇ f(x) dx = F(b) − F(a) where F is any antiderivative of f. Part 2 is what makes definite integral calculation practical. This solver applies Part 2 in every definite integral calculation.

What is integration by parts?

Integration by parts is the integration version of the product rule: ∫ u dv = uv − ∫ v du. Choose u to be the part that simplifies when differentiated (usually logarithms, inverse trig, or polynomials) and dv to be the rest. For ∫ x · e^x dx: u = x, dv = e^x dx, so du = dx, v = e^x. Result: xe^x − ∫ e^x dx = xe^x − e^x + C.

How do I integrate exponential functions?

The standard result is: ∫ e^x dx = e^x + C. For ∫ e^(ax) dx, divide by a: ∫ e^(2x) dx = e^(2x)/2 + C. For ∫ a^x dx where a ≠ 1: ∫ a^x dx = a^x / ln(a) + C. Enter these patterns directly into the Integral tab and the solver will handle them.

What is numerical integration and when is it used?

Some functions cannot be integrated symbolically, for example e^(x²) or sin(x)/x for definite integrals. In these cases, numerical methods approximate the answer by summing thin rectangular or trapezoidal strips. This solver uses Simpson's rule with n = 1000 intervals, which gives very accurate results for smooth functions. Check the Definite integral box to access numerical integration.

Applications of Integrals

How do I find the area under a curve?

The area under f(x) between x = a and x = b is given by the definite integral ∫ₐᵇ f(x) dx. If f(x) is negative in part of the interval, the integral counts that part as negative area. To find the total enclosed area regardless of sign, split the integral at the zeros and take absolute values of each piece.

How do I find the area between two curves?

The area between f(x) and g(x) from a to b is ∫ₐᵇ [f(x) − g(x)] dx, where f(x) ≥ g(x) on [a, b]. First find the intersection points by setting f(x) = g(x). These become your bounds. If the curves cross, split the integral and swap the order where g is on top.

What are volumes of revolution?

When you rotate a region around the x-axis, the disk method gives the volume as π ∫ₐᵇ [f(x)]² dx. The washer method for regions between two curves uses π ∫ₐᵇ ([f(x)]² − [g(x)]²) dx. The shell method rotates around the y-axis instead and is often easier for certain shapes.

Frequently Asked Questions

1. What calculus topics can this solver handle?
Derivatives (power, product, quotient, chain rules for polynomials, trig, exponential, logarithmic, inverse trig, and hyperbolic functions), indefinite integrals (common patterns plus linear substitution), definite integrals (symbolic FTC or numerical Simpson's rule), and limits (two-sided, one-sided, and limits at infinity) with step-by-step working shown for every calculation.
2. How do I enter a function for differentiation?
Use x as the variable. Use ^ for powers: x^2, x^3. Use * for explicit multiplication: x^2*sin(x). Functions: sin(x), cos(x), tan(x), sec(x), csc(x), cot(x), arcsin(x), arctan(x), ln(x), log(x), sqrt(x), exp(x). For e^x write exp(x) or e^(x). Chain rule: sin(3x+1), ln(x^2+1). Quotient: (x^2+1)/(x-1).
3. What is the chain rule and how does this tool apply it?
The chain rule states d/dx[f(g(x))] = f'(g(x)) times g'(x). When differentiating sin(3x), the outer function is sin and the inner is 3x. The result is cos(3x) times 3 = 3cos(3x). This solver identifies the outer and inner functions automatically and shows which rule was applied, including the u substitution used, directly in the step output.
4. Can I compute definite integrals?
Yes. Check the "Definite integral" checkbox and enter lower and upper bounds a and b. For common patterns the solver finds the exact symbolic antiderivative and applies FTC: result = F(b) minus F(a). For expressions that cannot be integrated symbolically, it uses numerical integration via Simpson's rule with n=1000 intervals and shows the approximate result with high accuracy.
5. How do I evaluate a limit at a specific point?
Enter f(x) in the Limit tab, type the approach value (a number, or "infinity" for limits at infinity), and select the direction (both sides, from left, or from right). The tool tries direct substitution first. If that gives a defined finite value, that is the limit. If not, it approaches numerically and compares one-sided limits to determine whether the two-sided limit exists.
6. Is this calculus solver useful for AP Calculus AB and BC?
Yes. All AP Calculus AB topics are covered: limits, continuity, all derivative rules, indefinite and definite integrals, and the Fundamental Theorem of Calculus. Key BC topics are also supported: higher-order derivatives, integration by substitution patterns, and limits at infinity. Use the tool to verify your hand-written work before submitting homework or before a practice exam.
7. How do I find the derivative of a trigonometric function?
In the Derivative tab enter sin(x), cos(x), tan(x), sec(x), csc(x), or cot(x). For chain rule compositions enter sin(3x), cos(x^2), or tan(2x+1). The solver applies the standard trig derivative formula and multiplies by the inner derivative via the chain rule. The step display shows which rule was used and identifies the inner function u.
8. What notation does this calculator use for input?
Use x as the variable. Use ^ for exponents: x^2, x^3, e^(2x). Use * for explicit multiplication where needed: x^2*sin(x). Functions: sin(), cos(), tan(), sec(), csc(), cot(), arcsin(), arccos(), arctan(), ln(), log(), sqrt(), exp(). Type pi for the constant π. Spaces are ignored. Implicit multiplication like 3x or 2sin(x) is supported.
9. Can this solver handle implicit differentiation?
Not directly. Implicit differentiation requires treating both x and y as variables and applying the chain rule to y terms, such as for x^2 + y^2 = 25. This tool differentiates explicit functions of x only (functions already solved for y). For implicit differentiation problems, use the AI Math Solver which handles multi-variable expressions.
10. What is the Fundamental Theorem of Calculus and how does this tool use it?
The Fundamental Theorem of Calculus states that if F(x) is an antiderivative of f(x), then the definite integral from a to b of f(x) dx equals F(b) minus F(a). This solver finds the symbolic antiderivative F(x) first, then evaluates it at both bounds b and a separately, and finally subtracts to give the definite integral result. Every step is shown so you can follow the working.