Example \(\PageIndex{4}\): Finding a Price–Demand Equation
Find the price–demand equation for a particular brand of toothpaste at a supermarket chain when the demand is 50 tubes per week at $2.35 per tube, given that the marginal price—demand function, \(p′(x),\) for x number of tubes per week, is given as
\[p'(x)=−0.015e^{−0.01x}.\]
If the supermarket chain sells 100 tubes per week, what price should it set?
Solution
To find the price–demand equation, integrate the marginal price–demand function. First find the antiderivative, then look at the particulars. Thus,
\[p(x)=∫−0.015e^{−0.01x}dx=−0.015∫e^{−0.01x}dx.\]
Using substitution, let \(u=−0.01x\) and \(du=−0.01dx\). Then, divide both sides of the du equation by −0.01. This gives
\[\dfrac{−0.015}{−0.01}∫e^udu=1.5∫e^udu=1.5e^u+C=1.5e^{−0.01}x+C.\]
The next step is to solve for C. We know that when the price is $2.35 per tube, the demand is 50 tubes per week. This means
\[p(50)=1.5e^{−0.01(50)}+C=2.35.\]
Now, just solve for C:
\[C=2.35−1.5e^{−0.5}=2.35−0.91=1.44.\]
Thus,
\[p(x)=1.5e^{−0.01x}+1.44.\]
If the supermarket sells 100 tubes of toothpaste per week, the price would be
\[p(100)=1.5e−0.01(100)+1.44=1.5e−1+1.44≈1.99.\]
The supermarket should charge $1.99 per tube if it is selling 100 tubes per week.
Example \(\PageIndex{5}\): Evaluating a Definite Integral Involving an Exponential Function
Evaluate the definite integral \[∫^2_1e^{1−x}dx.\]
Solution
Again, substitution is the method to use. Let \(u=1−x,\) so \(du=−1dx\) or \(−du=dx\). Then \(∫e^{1−x}dx=−∫e^udu.\) Next, change the limits of integration. Using the equation \(u=1−x\), we have
\[u=1−(1)=0\]
\[u=1−(2)=−1.\]
The integral then becomes
\[∫^2_1e^{1−x}\,dx=−∫^{−1}_0e^u\,du=∫^0_{−1}e^u\,du=eu|^0_{−1}=e^0−(e^{−1})=−e^{−1}+1.\]
See Figure.

Figure \(\PageIndex{2}\): The indicated area can be calculated by evaluating a definite integral using substitution.
Exercise \(\PageIndex{4}\)
Evaluate \(∫^2_0e^{2x}dx.\)
- Hint
-
Let \(u=2x.\)
- Answer
-
\(\dfrac{1}{2}∫^4_0e^udu=\dfrac{1}{2}(e^4−1)\)
Example \(\PageIndex{6}\): Growth of Bacteria in a Culture
Suppose the rate of growth of bacteria in a Petri dish is given by \(q(t)=3^t\), where t is given in hours and \(q(t)\) is given in thousands of bacteria per hour. If a culture starts with 10,000 bacteria, find a function \(Q(t)\) that gives the number of bacteria in the Petri dish at any time t. How many bacteria are in the dish after 2 hours?
Solution
We have
\[Q(t)=∫3^tdt=\dfrac{3^t}{\ln 3}+C.\]
Then, at \(t=0\) we have \(Q(0)=10=\dfrac{1}{\ln 3}+C,\) so \(C≈9.090\) and we get
\[Q(t)=\dfrac{3^t}{\ln 3}+9.090.\]
At time \(t=2\), we have
\[Q(2)=\dfrac{3^2}{\ln 3}+9.090\]
\[=17.282.\]
After 2 hours, there are 17,282 bacteria in the dish.
Exercise \(\PageIndex{5}\)
From Example, suppose the bacteria grow at a rate of \(q(t)=2^t\). Assume the culture still starts with 10,000 bacteria. Find \(Q(t)\). How many bacteria are in the dish after 3 hours?
- Hint
-
Use the procedure from Example to solve the problem
- Answer
-
\(Q(t)=\dfrac{2^t}{\ln 2}+8.557.\) There are 20,099 bacteria in the dish after 3 hours.
Example \(\PageIndex{7}\): Fruit Fly Population Growth
Suppose a population of fruit flies increases at a rate of \(g(t)=2e^{0.02t}\), in flies per day. If the initial population of fruit flies is 100 flies, how many flies are in the population after 10 days?
Solution
Let \(G(t)\) represent the number of flies in the population at time t. Applying the net change theorem, we have
\(G(10)=G(0)+∫^{10}_02e^{0.02t}dt\)
\(=100+[\dfrac{2}{0.02}e^{0.02t}]∣^{10}_0\)
\(=100+[100e^{0.02t}]∣^{10}_0\)
\(=100+100e^{0.2}−100\)
\(≈122.\)
There are 122 flies in the population after 10 days.
Exercise \(\PageIndex{6}\)
Suppose the rate of growth of the fly population is given by \(g(t)=e^{0.01t},\) and the initial fly population is 100 flies. How many flies are in the population after 15 days?
- Hint
-
Use the process from Example to solve the problem.
- Answer
-
There are 116 flies.
Example \(\PageIndex{8}\): Evaluating a Definite Integral Using Substitution
Evaluate the definite integral using substitution: \[∫^2_1\dfrac{e^{1/x}}{x^2}\,dx.\]
Solution
This problem requires some rewriting to simplify applying the properties. First, rewrite the exponent on e as a power of x, then bring the \(x^2\) in the denominator up to the numerator using a negative exponent. We have
\[∫^2_1\dfrac{e^{1/x}}{x^2}\,dx=∫^2_1e^{x^{−1}}x^{−2}\,dx.\]
Let \(u=x^{−1},\) the exponent on \(e\). Then
\[du=−x^{−2}\,dx\]
\[−du=x^{−2}\,dx.\]
Bringing the negative sign outside the integral sign, the problem now reads
\[−∫e^u\,du.\]
Next, change the limits of integration:
\[u=(1)^{−1}=1\]
\[u=(2)^{−1}=\dfrac{1}{2}.\]
Notice that now the limits begin with the larger number, meaning we must multiply by −1 and interchange the limits. Thus,
\[−∫^{1/2}_1e^udu=∫^1_{1/2}e^udu=e^u|^1_{1/2}=e−e^{1/2}=e−\sqrt{e}.\]
Exercise \(\PageIndex{7}\)
Evaluate the definite integral using substitution: \[∫^2_1\dfrac{1}{x^3}e^{4x^{−2}}dx.\]
- Hint
-
Let \(u=4x^{−2}.\)
- Answer
-
\[∫^2_1\dfrac{1}{x^3}e^{4x^{−2}}dx=\dfrac{1}{8}[e^4−e]\].
Integrals Involving Logarithmic Functions
Integrating functions of the form \(f(x)=x^{−1}\) result in the absolute value of the natural log function, as shown in the following rule. Integral formulas for other logarithmic functions, such as \(f(x)=\ln x\) and \(f(x)=log_ax\), are also included in the rule.
Rule: Integration Formulas Involving Logarithmic Functions
The following formulas can be used to evaluate integrals involving logarithmic functions.
\[\begin{align} ∫x^{−1}dx &=\ln |x|+C \\ ∫\ln x\,dx &= x\ln x−x+C =x (\ln x−1)+C \\ ∫log_a\,x\,dx &=\dfrac{x}{\ln a}(\ln x−1)+C \end{align}\]
Example \(\PageIndex{9}\): Finding an Antiderivative Involving \(\ln x\)
Find the antiderivative of the function \[\dfrac{3}{x−10}.\]
Solution
First factor the 3 outside the integral symbol. Then use the \(u^{−1}\) rule. Thus,
\[∫\dfrac{3}{x−10}dx=3∫\dfrac{1}{x−10}dx=3∫\dfrac{du}{u}=3\ln |u|+C=3\ln |x−10|+C,x≠10.\]
See Figure.

Figure \(\PageIndex{3}\): The domain of this function is \(x \neq 10.\)
Exercise \(\PageIndex{8}\)
Find the antiderivative of \[\dfrac{1}{x+2}.\]
- Hint
-
Follow the pattern from Example to solve the problem.
- Answer
-
\[\ln |x+2|+C\]
Example \(\PageIndex{10}\): Finding an Antiderivative of a Rational Function
Find the antiderivative of \[\dfrac{2x^3+3x}{x^4+3x^2}.\]
Solution
This can be rewritten as \(∫(2x^3+3x)(x^4+3x^2)^{−1}dx.\) Use substitution. Let \(u=x^4+3x^2\), then \(du=4x^3+6x.\) Alter du by factoring out the 2. Thus,
\[du=(4x^3+6x)dx=2(2x^3+3x)dx\]
\[\dfrac{1}{2}du=(2x^3+3x)dx.\]
Rewrite the integrand in u:
\[∫(2x^3+3x)(x^4+3x^2)^{−1}dx=\dfrac{1}{2}∫u^{−1}du.\]
Then we have
\[\dfrac{1}{2}∫u^{−1}du=\dfrac{1}{2}\ln |u|+C=\dfrac{1}{2}\ln ∣x^4+3x^2∣+C.\]
Example \(\PageIndex{11}\): Finding an Antiderivative of a Logarithmic Function
Find the antiderivative of the log function \[log_2x.\)
Solution
Follow the format in the formula listed in the rule on integration formulas involving logarithmic functions. Based on this format, we have
\[∫log_2xdx=\dfrac{x}{\ln 2}(\ln x−1)+C.\]
Exercise \(\PageIndex{9}\)
Find the antiderivative of \(log_3x\).
- Hint
-
Follow Example and refer to the rule on integration formulas involving logarithmic functions.
- Answer
-
\[\dfrac{x}{\ln 3}(\ln x−1)+C\]
Example is a definite integral of a trigonometric function. With trigonometric functions, we often have to apply a trigonometric property or an identity before we can move forward. Finding the right form of the integrand is usually the key to a smooth integration.
Example \(\PageIndex{12}\): Evaluating a Definite Integral
Find the definite integral of \[∫^{π/2}_0\dfrac{\sin x}{1+\cos x}dx.\]
Solution
We need substitution to evaluate this problem. Let \(u=1+\cos x\) so \(du=−\sin x\,dx.\) Rewrite the integral in terms of u, changing the limits of integration as well. Thus,
\[u=1+cos(0)=2\]
\[u=1+cos(\dfrac{π}{2})=1.\]
Then
\[∫^{π/2}_0\dfrac{\sin x}{1+\cos x}=−∫^1+2u^{−1}du=∫^2_1u^{−1}du=\ln |u|^2_1=[\ln 2−\ln 1]=\ln 2\]
Key Concepts
- Exponential and logarithmic functions arise in many real-world applications, especially those involving growth and decay.
- Substitution is often used to evaluate integrals involving exponential functions or logarithms.
Key Equations
- Integrals of Exponential Functions
\(∫e^xdx=e^x+C\)
\(∫a^xdx=\dfrac{a^x}{\ln a}+C\)
- Integration Formulas Involving Logarithmic Functions
\(∫x^{−1}dx=\ln |x|+C\)
\(∫\ln xdx=x\ln x−x+C=x(\ln x−1)+C\)
\(∫log_axdx=\dfrac{x}{\ln a}(\ln x−1)+C\)