1. Home
  2. Explore
  3. Mathematics
  4. Introduction to Calculus

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Introduction to Calculus

Calculus and Gradients

What calculus studies

Calculus is the branch of mathematics concerned with change. It provides ways to describe and calculate rates of change, including changes over extremely small intervals.

Many natural and human-made phenomena change over time or across space. Calculus helps model and predict such changes—for example, population growth or the changing position of a moving object.

Calculus was developed independently by Isaac Newton and Gottfried Wilhelm Leibniz. Two central ideas in calculus are:

  • Differentiation, which describes a function’s rate of change and the slope of its graph at a point.

  • Integration, which is used to study accumulation, such as the total distance traveled from a velocity function.

The material here focuses on differentiation.


Gradients of straight lines

The gradient, or slope, of a straight line measures how steeply it rises or falls. Given two points (x1,y1)(x_1,y_1)(x1​,y1​) and (x2,y2)(x_2,y_2)(x2​,y2​) on a line, its gradient is

m=y2−y1x2−x1m=\frac{y_2-y_1}{x_2-x_1}m=x2​−x1​y2​−y1​​

This is often remembered as rise over run:

  • Rise: the change in the yyy-coordinate, y2−y1y_2-y_1y2​−y1​.

  • Run: the change in the xxx-coordinate, x2−x1x_2-x_1x2​−x1​.

A line with a larger positive gradient is steeper than a line with a smaller positive gradient. A negative gradient indicates that the line falls as xxx increases.

In the equation of a straight line,

y=mx+cy=mx+cy=mx+c

mmm is the gradient and ccc is the yyy-intercept, the point where the line crosses the yyy-axis.


Secants, tangents, and the gradient of a curve

A curve does not usually have one fixed gradient: its steepness can vary from point to point. To find its gradient at a particular point, first consider the gradient between two points on the curve.

Suppose a curve is described by y=f(x)y=f(x)y=f(x). Choose two points with xxx-coordinates xxx and x+hx+hx+h. Their corresponding yyy-coordinates are f(x)f(x)f(x) and f(x+h)f(x+h)f(x+h).

A line passing through two points on a curve is called a secant. Its gradient is

ms=f(x+h)−f(x)(x+h)−x=f(x+h)−f(x)hm_s=\frac{f(x+h)-f(x)}{(x+h)-x} =\frac{f(x+h)-f(x)}{h}ms​=(x+h)−xf(x+h)−f(x)​=hf(x+h)−f(x)​

The horizontal change between the two points is hhh, which explains the denominator.

A line that touches the curve at a single point and represents its direction there is called a tangent. To find the tangent’s gradient at xxx, the second point is brought closer and closer to the first by letting hhh approach zero:

dydx=lim⁡h→0f(x+h)−f(x)h\frac{dy}{dx} = \lim_{h\to 0}\frac{f(x+h)-f(x)}{h}dxdy​=limh→0​hf(x+h)−f(x)​

This is the derivative from first principles. The limit describes the value approached by the secant gradients as the two points merge. The resulting derivative gives the gradient of the tangent at the chosen point.

The notation dydx\frac{dy}{dx}dxdy​ represents the derivative of yyy with respect to xxx. When it depends on xxx, it is called the gradient function: it gives the curve’s tangent gradient at any suitable value of xxx.


Deriving the power rule from first principles

Example: y=xy=xy=x

For f(x)=xf(x)=xf(x)=x, the derivative from first principles is

dydx=lim⁡h→0f(x+h)−f(x)h\frac{dy}{dx} = \lim_{h\to 0}\frac{f(x+h)-f(x)}{h}dxdy​=limh→0​hf(x+h)−f(x)​

Since f(x+h)=x+hf(x+h)=x+hf(x+h)=x+h and f(x)=xf(x)=xf(x)=x,

dydx=lim⁡h→0(x+h)−xh=lim⁡h→0hh=1\frac{dy}{dx} = \lim_{h\to 0}\frac{(x+h)-x}{h} = \lim_{h\to 0}\frac{h}{h} =1dxdy​=limh→0​h(x+h)−x​=limh→0​hh​=1

Thus, the line y=xy=xy=x has gradient 111 at every point, consistent with the form y=mx+cy=mx+cy=mx+c.

Example: y=x2y=x^2y=x2

For f(x)=x2f(x)=x^2f(x)=x2, substitute f(x+h)=(x+h)2f(x+h)=(x+h)^2f(x+h)=(x+h)2 and f(x)=x2f(x)=x^2f(x)=x2 into the first-principles formula:

dydx=lim⁡h→0(x+h)2−x2h\frac{dy}{dx} = \lim_{h\to 0}\frac{(x+h)^2-x^2}{h}dxdy​=limh→0​h(x+h)2−x2​

Expand and simplify:

dydx=lim⁡h→0x2+2xh+h2−x2h=lim⁡h→02xh+h2h=lim⁡h→0(2x+h)=2x\begin{aligned} \frac{dy}{dx} &= \lim_{h\to 0}\frac{x^2+2xh+h^2-x^2}{h}\\ &= \lim_{h\to 0}\frac{2xh+h^2}{h}\\ &= \lim_{h\to 0}(2x+h)\\ &=2x \end{aligned}dxdy​​=h→0lim​hx2+2xh+h2−x2​=h→0lim​h2xh+h2​=h→0lim​(2x+h)=2x​

The factor hhh can be cancelled before evaluating the limit. Directly substituting h=0h=0h=0 into the original fraction would make its denominator zero, so the expression must first be simplified.


The power rule

The two examples lead to a general rule. For a function of the form y=axny=ax^ny=axn, where aaa is a constant,

dydx=anxn−1\boxed{\frac{dy}{dx}=anx^{n-1}}dxdy​=anxn−1​

To differentiate a power of xxx:

  1. Multiply the coefficient by the exponent.

  2. Reduce the exponent by 111.

The power rule applies to positive, negative, and fractional exponents wherever the function and derivative are defined.


Applying the power rule

Example: y=10x5y=10x^5y=10x5

Here, a=10a=10a=10 and n=5n=5n=5:

ddx(10x5)=10⋅5x5−1=50x4\frac{d}{dx}(10x^5) = 10\cdot 5x^{5-1} = 50x^4dxd​(10x5)=10⋅5x5−1=50x4

Example: y=1x3y=\frac{1}{x^3}y=x31​

Rewrite the reciprocal using a negative exponent:

1x3=x−3\frac{1}{x^3}=x^{-3}x31​=x−3

Then apply the power rule:

ddx(x−3)=−3x−4=−3x4\frac{d}{dx}(x^{-3}) = -3x^{-4} = -\frac{3}{x^4}dxd​(x−3)=−3x−4=−x43​

Example: y=2xy=\frac{2}{\sqrt{x}}y=x​2​

Since x=x1/2\sqrt{x}=x^{1/2}x​=x1/2, rewrite the expression as

2x=2x−1/2\frac{2}{\sqrt{x}}=2x^{-1/2}x​2​=2x−1/2

Then

ddx(2x−1/2)=2(−12)x−1/2−1=−x−3/2=−1x3\frac{d}{dx}(2x^{-1/2}) = 2\left(-\frac12\right)x^{-1/2-1} = -x^{-3/2} = -\frac{1}{\sqrt{x^3}}dxd​(2x−1/2)=2(−21​)x−1/2−1=−x−3/2=−x3​1​

Rewriting roots and reciprocals as powers makes them suitable for the power rule.

Example: simplifying before differentiating

When an expression contains multiple factors or powers of xxx, it can be useful to simplify it first into a single power. For example, if simplification gives

y=5x−5/2y=5x^{-5/2}y=5x−5/2

then

dydx=5(−52)x−5/2−1=−252x−7/2\frac{dy}{dx} = 5\left(-\frac52\right)x^{-5/2-1} = -\frac{25}{2}x^{-7/2}dxdy​=5(−25​)x−5/2−1=−225​x−7/2

Keeping the answer in exponent form is often simpler than converting a negative fractional power back into a radical.

Example: differentiating a difference of powers

For

y=x1/4−x−1/4y=x^{1/4}-x^{-1/4}y=x1/4−x−1/4

differentiate each term separately. The minus sign in front of the second term must be retained:

dydx=14x1/4−1−(−14x−1/4−1)=14x−3/4+14x−5/4\begin{aligned} \frac{dy}{dx} &= \frac14x^{1/4-1} - \left(-\frac14x^{-1/4-1}\right)\\ &= \frac14x^{-3/4} + \frac14x^{-5/4} \end{aligned}dxdy​​=41​x1/4−1−(−41​x−1/4−1)=41​x−3/4+41​x−5/4​

Subtracting a term whose derivative is negative produces a positive term.


Simplifying fractional exponents

The exponents that arise in differentiation can be simplified using the ordinary rules for fractions. For example,

−14−1=−14−44=−54-\frac14-1 = -\frac14-\frac44 = -\frac54−41​−1=−41​−44​=−45​

The whole number 111 is written as 44\frac4444​ so both fractions have the same denominator. Similarly,

14−1=14−44=−34\frac14-1 = \frac14-\frac44 = -\frac3441​−1=41​−44​=−43​

These steps explain the exponents in the derivative of x1/4−x−1/4x^{1/4}-x^{-1/4}x1/4−x−1/4.


Constant terms

A constant has no change as xxx changes, so its derivative is zero:

ddx(c)=0\frac{d}{dx}(c)=0dxd​(c)=0

In particular, any nonzero quantity raised to the power 000 equals 111, so x0=1x^0=1x0=1 where defined. The derivative of x0x^0x0 is therefore the derivative of the constant 111, which is zero.


Finding a curve’s gradient at a point

Consider the function

y=2x+1y=2\sqrt{x}+1y=2x​+1

First express the square root as a power:

y=2x1/2+1y=2x^{1/2}+1y=2x1/2+1

Differentiate each term. The constant 111 has derivative zero:

dydx=2(12)x1/2−1+0=x−1/2=1x\begin{aligned} \frac{dy}{dx} &= 2\left(\frac12\right)x^{1/2-1}+0\\ &=x^{-1/2}\\ &=\frac{1}{\sqrt{x}} \end{aligned}dxdy​​=2(21​)x1/2−1+0=x−1/2=x​1​​

At x=16x=16x=16, the gradient is

dydx∣x=16=116=14\left.\frac{dy}{dx}\right|_{x=16} = \frac{1}{\sqrt{16}} = \frac14dxdy​​x=16​=16​1​=41​

Therefore, the tangent to the curve at the point where x=16x=16x=16 has gradient 14\frac1441​.


Key ideas to remember

  • A straight-line gradient is the change in yyy divided by the change in xxx.

  • A secant passes through two points on a curve; as its points approach each other, its gradient approaches the tangent gradient.

  • The derivative from first principles is

dydx=lim⁡h→0f(x+h)−f(x)h\frac{dy}{dx} = \lim_{h\to 0}\frac{f(x+h)-f(x)}{h}dxdy​=limh→0​hf(x+h)−f(x)​
  • For y=axny=ax^ny=axn, the power rule gives

dydx=anxn−1\frac{dy}{dx}=anx^{n-1}dxdy​=anxn−1
  • Negative and fractional powers allow reciprocals and roots to be differentiated using the same rule.

  • Constants differentiate to zero, and expressions should be simplified before evaluating a limit or applying the power rule when necessary.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent