Back to Blog
    Math

    How to Solve Calculus Problems Step by Step (With Examples)

    Y
    Ytools Team
    October 2, 2026 5 min read
    Share →
    Calculus, step by step — derivatives, integrals and limits solved and explained

    Most calculus homework looks harder than it is because the first move is unclear. Once you know which kind of problem you are looking at, each one follows a short, repeatable routine. This guide gives you that routine for the three problem types you will meet most often — derivatives, integrals and limits — with a fully worked example for each and a way to check every answer yourself.

    Step 1 — Identify the type of calculus problem

    Read the question and ask what it actually wants to know:

    • "How fast is something changing?" — a slope, speed, rate or gradient. That is a derivative.
    • "How much is there in total?" — an area, distance travelled, accumulated amount. That is an integral.
    • "What value does this get close to?" — usually a fraction that breaks when you plug the number straight in. That is a limit.
    Flowchart matching calculus questions to derivative, integral or limit
    Flowchart matching calculus questions to derivative, integral or limit

    Words in the question are strong clues: rate, slope, tangent, maximum, minimum point to derivatives; area, total, accumulated, volume point to integrals; approaches, tends to, as x gets close to point to limits.

    How to solve a derivative step by step

    A derivative measures the instantaneous rate of change of a function — geometrically, the slope of the tangent line at a point. For polynomials you only need three rules:

    RuleFormula
    Power ruleddxxn=n xn−1\frac{d}{dx}x^n = n\,x^{n-1}
    Constant multipleddx[k f(x)]=k f′(x)\frac{d}{dx}[k\,f(x)] = k\,f'(x)
    Sum ruleddx[f(x)+g(x)]=f′(x)+g′(x)\frac{d}{dx}[f(x)+g(x)] = f'(x)+g'(x)

    Worked example: differentiate 3x2+5x3x^2 + 5x

    1. Split with the sum rule: ddx(3x2)+ddx(5x)\frac{d}{dx}(3x^2) + \frac{d}{dx}(5x).
    2. Power rule on the first term: 3⋅2x1=6x3 \cdot 2x^{1} = 6x.
    3. Power rule on the second term (5x=5x15x = 5x^1): 5⋅1⋅x0=55 \cdot 1 \cdot x^0 = 5.
    4. Combine: ddx(3x2+5x)=6x+5\frac{d}{dx}(3x^2+5x) = 6x + 5.

    At x=2x = 2 the slope is 6(2)+5=176(2)+5 = 17. If a function contains a "function inside a function", such as sin⁡(4x)\sin(4x) or ln⁡(5x)\ln(5x), you also need the chain rule — see our guide to derivatives of ln(ax), sin(ax) and cos(ax). For quick power-rule checks, the power rule calculator shows each step.

    How to solve an integral step by step

    Integration reverses differentiation. An indefinite integral asks "which function has this derivative?", and because any constant disappears when you differentiate, every answer ends with + C+\,C.

    The reverse power rule is:

    ∫xn dx=xn+1n+1+C(n≠−1)\int x^n\,dx = \frac{x^{n+1}}{n+1} + C \qquad (n \neq -1)

    Worked example: ∫(2x+3) dx\int (2x + 3)\,dx

    1. Integrate term by term: ∫2x dx+∫3 dx\int 2x\,dx + \int 3\,dx.
    2. ∫2x dx=2⋅x22=x2\int 2x\,dx = 2 \cdot \frac{x^2}{2} = x^2.
    3. ∫3 dx=3x\int 3\,dx = 3x.
    4. Add the constant: x2+3x+Cx^2 + 3x + C.

    Check: differentiate the answer. ddx(x2+3x+C)=2x+3\frac{d}{dx}(x^2+3x+C) = 2x + 3 ✓ — this is the fastest way to verify any integral.

    Definite integrals: the area under x2x^2 from 0 to 2

    A definite integral has limits and gives a number. By the Fundamental Theorem of Calculus, find an antiderivative FF and compute F(b)−F(a)F(b) - F(a):

    ∫02x2 dx=[x33]02=83−0=83≈2.67\int_0^2 x^2\,dx = \left[\frac{x^3}{3}\right]_0^2 = \frac{8}{3} - 0 = \frac{8}{3} \approx 2.67
    Graph of y = x squared with tangent line at x = 1 and shaded area from 0 to 2
    Graph of y = x squared with tangent line at x = 1 and shaded area from 0 to 2

    The picture shows both ideas on one curve: the dashed tangent at x=1x=1 has slope f′(1)=2f'(1) = 2 (derivative), and the shaded region has area 83\frac{8}{3} (integral). You can reproduce this with the definite integral calculator.

    How to solve a limit step by step

    Try direct substitution first

    If plugging the value in gives an ordinary number, that number is the limit. For example, lim⁡x→3(x2+1)=10\lim_{x\to3}(x^2+1) = 10.

    Worked example: when substitution gives 0/0

    Find lim⁡x→2x2−4x−2\lim_{x\to2}\frac{x^2-4}{x-2}.

    1. Substitute x=2x=2: 00\frac{0}{0} — an indeterminate form, so more work is needed.
    2. Factor the numerator: x2−4=(x−2)(x+2)x^2 - 4 = (x-2)(x+2).
    3. Cancel the common factor (allowed because x≠2x \neq 2 while approaching 2): (x−2)(x+2)x−2=x+2\frac{(x-2)(x+2)}{x-2} = x+2.
    4. Substitute again: 2+2=42 + 2 = 4.

    So lim⁡x→2x2−4x−2=4\lim_{x\to2}\frac{x^2-4}{x-2} = 4. A numerical sanity check: at x=2.0001x = 2.0001 the original fraction equals 4.00014.0001. Our limits and continuity guide covers other techniques, and the limit calculator shows the steps.

    How to check your answer

    • Derivative: pick a value of xx, compute f(x+h)−f(x−h)2h\frac{f(x+h)-f(x-h)}{2h} with a small hh (like 0.001) and compare.
    • Integral: differentiate your answer; you should get back the original function.
    • Limit: evaluate the original expression at values very close to the target from both sides.

    Common mistakes

    • Forgetting + C+\,C on indefinite integrals.
    • Applying the power rule to x−1x^{-1} when integrating (∫x−1 dx=ln⁡∣x∣+C\int x^{-1}\,dx = \ln|x| + C, not x00\frac{x^0}{0}).
    • Cancelling terms instead of factors (you can cancel (x−2)(x-2) from (x−2)(x+2)(x-2)(x+2), but not the "2"s from x2−4x−2\frac{x^2-4}{x-2}).
    • Concluding a limit "does not exist" just because substitution gave 00\frac{0}{0}.
    • Dropping the inner derivative when the chain rule is needed.

    Using a calculus solver with steps (and when not to)

    A good solver is most useful after you have tried the problem: compare your steps line by line and find exactly where you diverged. Use the calculus solver with steps to check derivatives, integrals and limits. Be aware of its limits: answers may be shown in a different but equivalent form (for example x2+3x+Cx^2+3x+C vs x(x+3)+Cx(x+3)+C), decimals may be rounded, and the solver cannot know the conditions in a word problem unless you include them.

    FAQ

    How do I know if a problem needs a derivative or an integral? Derivatives answer "how fast is it changing?"; integrals answer "how much in total?". Look for words like rate and slope versus area and total.

    What is the easiest way to check an integral? Differentiate your answer. If you get back the function you started with, the integral is correct.

    Why does an indefinite integral need + C? Constants differentiate to zero, so infinitely many functions share the same derivative. +C+C represents all of them.

    What does 0/0 mean in a limit? It is an indeterminate form: it tells you substitution alone isn't enough, not that the limit doesn't exist. Factor, simplify or use another technique.

    Can a calculus solver show the steps? Yes — step-by-step solvers display each rule applied. Use them to check your own working rather than to replace it.

    Is the derivative the same as the slope? The derivative at a point equals the slope of the tangent line to the curve at that point.

    Conclusion

    Every calculus problem starts with the same question: rate, total or approach? Answer that, apply the matching rule, and check by differentiating back or plugging in nearby numbers. When you want a second opinion, run the problem through the calculus solver and compare each step.

    Further reading: OpenStax Calculus Volume 1 · Wolfram MathWorld: Derivative, Integral.