Integrals: the basics

Finding a function defined with a definite integral

A definite integral ∫abf(t) dt\int_a^b f(t)\,dt with constant limits is just a number, so setting it equal to kk lets you write f(x)f(x) in terms of kk and then find f(x)f(x) from an equation in kk.

f(x)=g(x)+∫abf(t) dt⇒ set ∫abf(t) dt=k (a constant)\begin{gathered} f(x)=g(x)+\int_a^b f(t)\,dt \\[4pt] \Rightarrow\ \text{set } \int_a^b f(t)\,dt=k\ (\text{a constant}) \end{gathered}

∫03f(t) dt\int_0^3 f(t)\,dt contains no xx; it is a constant. Calling it kk, the equation f(x)=2x+∫03f(t) dtf(x)=2x+\int_0^3 f(t)\,dt becomes f(x)=2x+kf(x)=2x+k. Integrating this ff over [0,3][0,3] must give kk back.

k=∫03(2t+k) dt=9+3kk=\int_0^3(2t+k)\,dt=9+3k

Solving gives k=−92k=-\frac{9}{2}, so f(x)=2x−92f(x)=2x-\frac{9}{2}. The steps are: set the integral equal to kk, write f(x)f(x) in terms of kk, and integrate that expression to get an equation for kk.

Examples

  1. 01What is f(x)?f(x)=6x+k,k=−12\displaystyle f(x)=6x+k, \quad k=-12AnswerHide
    Answer6x−12\displaystyle 6x-12

    Steps

    1. Put k in
    2. f(x)\displaystyle f(x)=6x−12\displaystyle = 6x-12
    3. Integrating this f gives k back
    4. ∫02(6x−12) dx\displaystyle \int_{0}^{2} (6x-12)\,dx=−12\displaystyle = -12
  2. 02What do you get by integrating this over [0, 3]?f(x)=2x+k\displaystyle f(x)=2x+kAnswerHide
    Answer9+3k\displaystyle 9+3k

    Steps

    1. ∫032x dx\displaystyle \int_{0}^{3} 2x\,dx=9\displaystyle = 9
    2. k is integrated too, so it picks up the interval length
    3. ∫03k dx\displaystyle \int_{0}^{3} k\,dx=3k\displaystyle = 3k
  3. 03Write f(x) in terms of k.f(x)=6x+∫03f(t) dt,  ∫03f(t) dt=k\displaystyle f(x) = 6x + \int_{0}^{3} f(t)\,dt,\; \int_{0}^{3} f(t)\,dt = kAnswerHide
    Answer6x+k\displaystyle 6x+k

    Steps

    1. The integral part is a number, so call it k
    2. f(x)\displaystyle f(x)=6x+k\displaystyle = 6x+k
    3. k is a number: it is not multiplied by x
  4. 04Find k.k=48+4k\displaystyle k = 48+4kAnswerHide
    Answer−16\displaystyle -16

    Steps

    1. k=48+4k\displaystyle k = 48+4k⇒−3k=48\displaystyle \Rightarrow -3k = 48
    2. Divide both sides by -3
    3. k\displaystyle k=−16\displaystyle = -16
    4. Put it back and it checks out
    5. 48+4⋅(−16)\displaystyle 48 + 4 \cdot (-16)=−16\displaystyle = -16
  5. 05Write f(x) in terms of k.f(x)=2x+∫03f(t) dt,  ∫03f(t) dt=k\displaystyle f(x) = 2x + \int_{0}^{3} f(t)\,dt,\; \int_{0}^{3} f(t)\,dt = kAnswerHide
    Answer2x+k\displaystyle 2x+k

    Steps

    1. The integral part is a number, so call it k
    2. f(x)\displaystyle f(x)=2x+k\displaystyle = 2x+k
    3. k is a number: it is not multiplied by x
  6. 06What is f(x)?f(x)=4x+k,k=−8\displaystyle f(x)=4x+k, \quad k=-8AnswerHide
    Answer4x−8\displaystyle 4x-8

    Steps

    1. Put k in
    2. f(x)\displaystyle f(x)=4x−8\displaystyle = 4x-8
    3. Integrating this f gives k back
    4. ∫02(4x−8) dx\displaystyle \int_{0}^{2} (4x-8)\,dx=−8\displaystyle = -8

FAQ

Q1Why can ∫abf(t) dt\int_a^b f(t)\,dt be treated as a constant?AnswerHide
A
Both limits are numbers, so no xx remains after integrating and the result is a single number. An integral with xx as a limit, such as ∫axf(t) dt\int_a^x f(t)\,dt, is a function of xx and cannot be set equal to a constant.
Q2Why is the variable of integration tt?AnswerHide
A
To keep it separate from the xx in f(x)f(x). The value of a definite integral does not depend on the letter used, so ∫03f(t) dt=∫03f(x) dx\int_0^3 f(t)\,dt=\int_0^3 f(x)\,dx.

Published 2026-10-14 · Updated 2026-10-14