Rocket exiting atmosphere representing partial integration
Outlier Articles Home

Calculus

Partial Integration Explained

06.09.2022 • 7 min read

Rachel McLean

Subject Matter Expert

In this article, we’ll discuss how to integrate partial derivatives using partial integration. To refresh our knowledge, we’ll also review the definition of integration and partial derivatives.

In This Article

  1. What Is Partial Integration?

  2. How Do You Solve Partial Integration?

  3. Integration Rules

  4. Partial Integration Examples

  5. Practice Makes Perfect

What Is Partial Integration?

To understand partial integration, you need to know first the definition of integration. Integration is the process of finding a function’s antiderivative function. You can think about integration as the reverse operation of differentiation.

When you integrate some function f(x)f(x), you find its antiderivative function. We often denoted this function as F(x)F(x), and this process is called taking the indefinite integral. Using this function, a definite integral ‌calculates the area underneath the curve of f(x)f(x) on a specific interval.

The notation for integrating f(x)f(x) looks like this:

f(x)dx=F(x)+C\int f(x)\,dx = F(x) + C

Taking the derivative of F(x)F(x) outputs back f(x)f(x), which is why F(x)F(x) is called the antiderivative function. The fundamental theorem of calculus assures this relationship between integration and differentiation. In other words, if f(x)dx=F(x)+C\int f(x)\,dx = F(x) + C, then F(x)=f(x)F’(x) = f(x). We can also say that f(x)dx=f(x)+C\int f’(x)\,dx = f(x) + C.

But what happens if we are integrating a partial derivative?

As a reminder, we use partial differentiation to differentiate a function of two or more variables. Partial derivatives measure the rate of change of a multivariable function when ​​we let just one of its variables change, while the rest are held constant.

For example, consider the function f(x,y)=xy+x2yf(x, y) = xy + x^2y, which is a function of two variables. To find fx\frac{\partial{f}}{\partial{x}}, we treat yy as a constant, and then differentiate the function normally. To find fy\frac{\partial{f}}{\partial{y}}, we treat xx as a constant, and then differentiate the function normally.

So for our function f(x,y)=xy+x2yf(x, y) = xy + x^2y, the partial derivative with respect to xx is xf(x,y)=y+2yx\frac{\partial}{\partial{x}}f(x, y) = y + 2yx. The partial derivative with respect to yy is yf(x,y)=x+x2\frac{\partial}{\partial{y}}f(x, y) = x + x^2.

A similar logic holds for partial integration. Suppose we take the integral of a partial derivative of f(x,y)f(x, y). To integrate a partial derivative with respect to xx, we would integrate with respect to xx while treating yy as a constant.

The resulting partial integration formula would look something like:

xf(x,y) dx=F(x,y)+C(y)\int \frac{\partial}{\partial x} f(x, y) \ dx = F(x, y) + C(y)

To integrate a partial derivative with respect to yy, we would integrate with respect to yy while treating xx as a constant.

This would look something like:

yf(x,y) dy=F(x,y)+C(x)\int \frac{\partial}{\partial y} f(x, y) \ dy = F(x, y) + C(x)

Note that in this context, partial integration is different than integration by parts and integration by partial fractions. Here, partial integration outputs an integral of a partial derivative with respect to one variable of a multivariable function. By contrast, integration by parts is a technique used to integrate a product of functions, and partial fraction integration is a method used to integrate rational functions.

How Do You Solve Partial Integration?

To use partial integration, we fix one variable as a constant. To integrate a partial derivative with respect to xx, we must treat yy as a constant. To integrate a partial derivative with respect to yy, we must treat xx as a constant.

Integrating a partial derivative with respect to one variable by treating the other variable as a constant looks like this:

xf(x,y) dx=F(x,y)+C(y)\int \frac{\partial}{\partial x} f(x, y) \ dx = F(x, y) + C(y)

or

yf(x,y) dy=F(x,y)+C(x)\int \frac{\partial}{\partial y} f(x, y) \ dy = F(x, y) + C(x)

Note that our integrand is a derivative. By the fundamental theorem of calculus, the integral of the derivative of a function should equal the original function itself. So, in the above cases, F(x,y)+C(y)=f(x,y)F(x, y) + C(y) = f(x, y) and F(x,y)+C(x)=f(x,y)F(x, y) + C(x) = f(x, y).

Dr. Hannah Fry is an associate professor at University College London. She discusses more about the fundamental theorem:

After we designate one variable as a constant, partial integration becomes nearly identical to normal integration. But, notice that C(y)C(y) and C(x)C(x) appear at the end of our antiderivative function, instead of the normal constant of integration CC. Why is this?

When integrating a function of one variable, the constant CC always accompanies the antiderivative function, since the derivative of any constant evaluates to zero. Since CC can be any constant, F(x)+CF(x) + C gives us a family of infinitely many functions whose derivative is f(x,y)f(x, y).

Similarly, when taking the derivative of a function with respect to xx, we treat the variable yy as a constant. As a result, the derivative of any function of yy evaluates to zero. Thus the expression F(x,y)+C(y)F(x, y) + C(y) represents a family of infinitely many functions whose derivative is f(x,y)f(x, y).

Let’s walk through an example with our polynomial function f(x,y)=xy+x2yf(x, y) = xy + x^2y, using its partial derivatives xf(x,y)=y+2yx\frac{\partial}{\partial{x}}f(x,y) = y + 2yx and yf(x,y)=x+x2\frac{\partial}{\partial{y}}f(x,y) = x + x^2.

First, let’s find the integral of the partial derivative with respect to xx. So, we will treat yy as a constant when integrating xf(x,y)=y+2yx\frac{\partial}{\partial{x}}f(x,y) = y + 2yx. To more easily imagine yy as a constant, one handy trick is to replace yywith cc or kk, which are two variables that are commonly used to represent constant values.

Let’s use this trick and replace yy with kk. Then, we’ll use the power rule for integration. Remember to change kk back to yy at the end.

xf(x,y) dx=(y+2yx) dx\int \frac{\partial}{\partial x} f(x, y) \ dx = \int (y + 2yx) \ dx
=(k+2kx) dx= \int (k + 2kx) \ dx
=kx+2kx22= kx + \frac{2kx^2}{2}
=kx+kx2= kx + kx^2
=xy+x2y+C(y)= xy + x^2y + C(y)

Now, let’s find the integral of the partial derivative with respect to yy. So, we will treat xx as a constant when integrating yf(x,y)=x+x2\frac{\partial}{\partial{y}}f(x, y) = x + x^2. To more easily imagine xx as a constant, we’ll replace xx with kk.

Using the power rule for integration, we have:

yf(x,y) dy=(x+x2) dy\int \frac{\partial}{\partial y} f(x, y) \ dy = \int (x + x^2) \ dy
=(k+k2) dy= \int (k + k^2) \ dy
=ky+k2y= ky + k^2y
=xy+x2y+C(x)= xy + x^2y + C(x)

Integration Rules

To quickly calculate antiderivative functions of partial derivatives, it’s helpful to memorize the list of integration rules below. Assume that ff and gg are continuous functions:

Sum Rule

[f(x)+g(x)]dx=f(x)dx+g(x)dx\int [f(x) + g(x)]\,dx = \int f(x)\,dx + \int g(x)\,dx

Difference Rule

[f(x)g(x)]dx=f(x)dxg(x)dx\int [f(x) - g(x)]\,dx = \int f(x)\,dx - \int g(x)\,dx

Constant Multiplier Rule

kf(x)dx=kf(x)dx\int kf(x)\,dx = k\int f(x)\,dx for some constant kk

Power Rule

xndx=xn+1n+1+C\int x^n\,dx = \frac{x^{n+1}}{n+1} + C for some real number nn

Constant Rule

adx=ax+C\int a\,dx = ax + C for some constant aa

Reciprocal Rules

1xdx=x1dx=lnx+C\int \frac{1}{x}\,dx = \int x^{-1}\,dx = \ln{|x|} + C

1ax+bdx=1aln(ax+b)+C\int\frac{1}{ax+b}\,dx = \frac{1}{a} \ln{(ax+b)} + C

Exponential and Logarithmic Function Rules

exdx=ex+C\int e^x\,dx = e^x + C

axdx=axln(a)+C\int a^x\,dx = \frac{a^x}{\ln{(a)}} + C, for any positive real number aa

ln(x)dx=xln(x)x+C\int \ln{(x)}\,dx = x\ln{(x)}-x + C

Trigonometric Function Rules

For these rules, assume that x is in radians. sinxdx=cosx+C\int \sin{x}\,dx = -\cos{x} + C

cosxdx=sinx+C\int \cos{x}\,dx = \sin{x} + C

sec2xdx=tanx+C\int \sec ^2 x\,dx = \tan{x} + C

csc2xdx=cotx+C\int \csc ^2 x\,dx = -\cot{x} + C

secxtanxdx=secx+C\int \sec{x}\tan{x}\,dx = \sec{x} + C

cscxcotxdx=cscx+C\int \csc{x}\cot{x}\,dx = -\csc{x} + C

dx1x2=sin1x+C\int \frac{dx}{\sqrt{1-x^2}}=\sin ^{-1}x + C

dx1x2=cos1x+C\int \frac{-dx}{\sqrt{1-x^2}}=\cos ^{-1}x + C

dx1+x2=tan1x+C\int \frac{dx}{1+x^2}=\tan ^{-1}x + C

sin(ax)dx=cos(ax)a+C\int \sin{(ax)}\,dx = \frac{-\cos{(ax)}}{a}+C for some real number aa

cos(ax)dx=sin(ax)a+C\int \cos{(ax)}\,dx = \frac{\sin{(ax)}}{a}+C for some real number aa

Absolute Value Rule

xdx=xx2+C\int |x|\,dx = \frac{x |x|}{2} + C

Dr. Hannah Fry explains more about integration rules in this lecture clip:

Partial Integration Examples

Example 1

Suppose that xf(x,y)=xy2+sin(x)\frac{\partial}{\partial x} f(x, y) = xy^2 + \sin{(x)} is the partial derivative with respect to yy of some function f(x,y)f(x, y). Find f(x,y)f(x, y).

Solution

We’ll integrate with respect to yy, so we must treat xx as a constant. Then, using the sum rule, power rule, and trigonometry rules, we have:

xf(x,y) dy=(xy2+sin(x)) dy\int \frac{\partial}{\partial x} f(x, y) \ dy = \int (xy^2 + \sin{(x)}) \ dy
=(ky2+sin(k)) dy= \int (ky^2 + \sin{(k)}) \ dy
=ky33+ysin(k)= \frac{ky^3}{3} + y\sin{(k)}
=xy33+ysin(x)+C(x)= \frac{xy^3}{3} + y\sin{(x)} + C(x)

Thus f(x,y)=xy33+ysin(x)+C(x)f(x, y) = \frac{xy^3}{3} + y\sin{(x)} + C(x). To check our answer, we can take the partial derivative of f(x,y)f(x, y) with respect to yy. By hand or with an integral calculator, the resulting partial derivative is xf(x,y)=xy2+sin(x)\frac{\partial}{\partial x} f(x, y) = xy^2 + \sin{(x)}, which is the partial derivative we started with.

Example 2

Suppose that xf(x,y)=yex+yx\frac{\partial}{\partial x} f(x, y) = ye^x + \frac{y}{x} is the partial derivative with respect to xx of some function f(x,y)f(x, y). Find f(x,y)f(x, y).

Solution

We’ll integrate with respect to xx, so we must treat yy as a constant. Then, using the sum rule, exponential rule, and logarithmic rule, we have:

xf(x,y) dx=(yex+yx) dx\int \frac{\partial}{\partial x} f(x, y) \ dx = \int (ye^x + \frac{y}{x}) \ dx
=(kex+kx) dx= \int (ke^x + \frac{k}{x}) \ dx
=kex+kln(x)= ke^x + k\ln{(x)}
=yex+yln(x)+C(y)= ye^x + y\ln{(x)} + C(y)

Thus $f(x, y) = ye^x + y\ln{(x)} + C(y)$.

Practice Makes Perfect

Outlier’s calculus course is a fantastic way to master integration and other skills in integral calculus:

  • Outlier offers accessible college classes at a fraction of the cost—80% less expensive than traditional college.

  • Earn 3 college credits towards your degree for every course you complete, accredited by the University of Pittsburgh, a top 60 school.

  • Calculus courses are interactive and taught by world-renowned math professors, including Tim Chartier of Davidson College, Hannah Fry of University College London, and John Urschel of MIT.

  • Course resources include question sets, quizzes, and an active-learning based digital textbook. You’ll also have access to free tutors and a study group.

  • Transferring credits is easy.

  • If you do the work and don’t pass, you’ll receive a full refund.

  • Exam windows are flexible, and lectures are viewable on demand, anywhere.

Explore Outlier's Award-Winning For-Credit Courses

Outlier (from the co-founder of MasterClass) has brought together some of the world's best instructors, game designers, and filmmakers to create the future of online college.

Check out these related courses:

Calculus I

Calculus I

The mathematics of change.

Explore course
Intro to Statistics

Intro to Statistics

How data describes our world.

Explore course
Intro to Microeconomics

Intro to Microeconomics

Why small choices have big impact.

Explore course

Share