Parametric and Polar Equations

Parametric Equations

Typically, we draw a graph by finding a direct relationship between xx and yy. Sometimes, though, it is more natural to think of xx and yy as both functions of some third variable tt (think time in physical applications), and then see how xx and yy vary as tt varies.

In other words, instead of having yy be a function of xx (y=f(x)y = f(x)), we will write xx and yy as functions of a parameter tt: x=f(t)y=g(t)\begin{aligned} x &= f(t)\ y &= g(t) \end{aligned} We can still draw a graph in the xyxy plane; now for each value of tt, we calculate values for xx and yy and plot the point (x,y)=(f(t),g(t))(x,y)=(f(t),g(t)).

Graph the parametric curve for the following set of equations. x=2t,  y=12t24  for 0t8x = 2t,\ \ y = \dfrac{1}{2}t^2−4\ \ \text{for } 0 ≤ t ≤ 8

Solution

To draw this graph, let t=0t=0, t=1t=1, etc. until t=8t=8 (since tt is limited to values from 00 to 88). For each value of tt, calculate xx and yy and plot the corresponding point. The final graph looks like the following.

Parametric graph

Note the red arrows; these indicate the direction of the graph as tt increases.

We can also eliminate the parameter to get a direct relationship between xx and yy. To do so, solve for tt in one of the equations (if you can) and substitute this expression for tt into the other equation.

Eliminate the parameter tt in the following set of equations. x=2t,  y=12t24  for 0t8x = 2t,\ \ y = \dfrac{1}{2}t^2−4\ \ \text{for } 0 ≤ t ≤ 8

Solution

Since x=2tx=2t, t=12xt=\dfrac{1}{2}x, and we can substitute this into the equation for yy: y=12t24=12(12x)24y=18x24\begin{aligned} &y = \dfrac{1}{2}t^2-4 = \dfrac{1}{2}\left(\dfrac{1}{2}x\right)^2-4\ &\ans{y = \dfrac{1}{8}x^2-4} \end{aligned}

More Examples of Parametric Graphs

1. Parametric Circle

The following set of parametric equations describe a circle: x=4cos2πt        0t1y=4sin2πt\begin{aligned} x &= 4 \cos 2\pi t \ \ \ \ \ \ \ \ 0 \leq t \leq 1\ y &= 4 \sin 2\pi t \end{aligned}

Note: x2+y2=(4cos2πt)2+(4sin2πt)2=16(cos22πt+sin22πt)=16\begin{aligned} x^2+y^2 &= (4\cos 2\pi t)^2 + (4\sin 2\pi t)^2\ &= 16(\cos^2 2\pi t + \sin^2 2\pi t)\ &= 16 \end{aligned}

and x2+y2=16x^2+y^2=16 is the equation of a circle centered at the origin with radius 44.

Circle of radius 4 centered at the origin

Notice that as tt increases, the graph moves counterclockwise.

Also note (and this is important) that the same equation x2+y2=16x^2+y^2=16 could have been written as the set of parametric equations x=4cost        0t2πy=4sint\begin{aligned} x &= 4 \cos t \ \ \ \ \ \ \ \ 0 \leq t \leq 2\pi\ y &= 4 \sin t \end{aligned}

The key here is that parametrization is not unique. It is possible to parametrize a curve in different ways; one way may be easier than others, though.

2. Parametric Line

An example of a line in the xyxy plane is written parametrically as x=2+3t        ty=12t\begin{aligned} x &= 2+3t \ \ \ \ \ \ \ \ -\infty \leq t \leq \infty\ y &= -1-2t \end{aligned}

Of course, to graph a line, we only need to plot two points and connect them, so the following graph shouldn't be hard to obtain:

Parametric line passing through (-4,3), (-1,1), etc

Notice what's happening here: when t=0t=0, we get a starting point (the point (2,1)(2,−1) in this case), and then every time tt increases by 11, xx increases by 33 and yy decreases by 22 (the coefficients of tt in the parametric equations). Therefore, the slope of this line (rise over run) will be 2/3-2/3.

Parametric Equations of a Line

In general, the equations x=x0+at        <t<y=y0+bt\begin{aligned} x &= x_0+at \ \ \ \ \ \ \ \ -\infty < t < \infty\ y &= y_0+bt \end{aligned}

where a = 0a\ \cancel=\ 0, describe a line in the xyxy plane passing through the point (x0,y0)(x_0, y_0) with slope ba\dfrac{b}{a}.

Eliminate the parameter t in the following set of equations. x=2+3t        <t<y=46t\begin{aligned} x &= -2+3t \ \ \ \ \ \ \ \ -\infty < t < \infty\ y &= 4-6t \end{aligned}

Solution

Since x=2+3tx=−2+3t, t=x+23t=\dfrac{x+2}{3}, and we can substitute this into the equation for yy: y=46t=46(x+23)=42x4y=2x\begin{aligned} &y = 4-6t = 4-6\left(\dfrac{x+2}{3}\right) = 4-2x-4\ &\ans{y = -2x} \end{aligned}

Alternate Solution

We could also do this using what we know from above about the parametric equations of a line (if we recognize it). Here, (x0,y0)=(2,4)(x_0,y_0)=(−2,4) and the slope is b/a=6/3=2b/a=−6/3=−2. Thus, we can use the point-slope formula (or the slope intercept form) to find the equation of this line.

yy0=m(xx0)y4=2(x+2)y4=2x4y=2x\begin{aligned} y - y_0 &= m(x-x_0)\ y-4 &= -2(x+2)\ y -4 &= -2x-4\ &\longrightarrow \ans{y = -2x} \end{aligned}

Find two pairs of parametric equations for the line with slope 25\dfrac{2}{5} passing through the point (1,4)(−1,4).

Solution

Here again, we're seeing that parametric equations are not unique. There are infinitely many pairs of parametric equations that we could use to describe this line; any multiple of the slope will give us new values for aa and bb (although b/ab/a will remain constant), and we can use any point on the line as the initial point (x0,y0)(x_0,y_0). In this problem, we'll two different multiples of the slope, since that's a bit easier.

  1. ba=25a=5,b=2\dfrac{b}{a} = \dfrac{2}{5} \longrightarrow a=5, b=2 x=1+5t,    y=4+2t,        <t<\ans{x=-1+5t,\ \ \ \ y=4+2t,\ \ \ \ \ \ \ \ -\infty < t < \infty}

  2. ba=410a=10,b=4\dfrac{b}{a} = \dfrac{4}{10} \longrightarrow a=10, b=4 x=1+10t,    y=4+4t,        <t<\ans{x=-1+10t,\ \ \ \ y=4+4t,\ \ \ \ \ \ \ \ -\infty < t < \infty}

Find parametric equations for the line segment starting at (0,7)(0,7) and ending at (3,2)(3,−2).

Solution

The slope is m=y2y1x2x1=273=3,m=\dfrac{y_2-y_1}{x_2-x_1} = \dfrac{-2-7}{3} = -3,

so one choice is a=1a=1 and b=3b=−3. Therefore, x=t,    y=73t,        0t3\ans{x=t,\ \ \ \ y=7-3t,\ \ \ \ \ \ \ \ 0 \leq t \leq 3}

Notice that here t does not extend to infinity, since we're only dealing with a line segment.

Derivatives for Parametric Curves

We'll wrap up our discussion of parametric equations with a quick mention of how to differentiate them.

Recall the Chain Rule: dydt=dydxdxdt\dfrac{dy}{dt} = \dfrac{dy}{dx} \cdot \dfrac{dx}{dt}

Therefore, dydx=dy/dtdx/dt,  if dxdt = 0.\dfrac{dy}{dx} = \dfrac{dy/dt}{dx/dt},\ \ \textrm{if } \dfrac{dx}{dt}\ \cancel=\ 0.

Find dydx\dfrac{dy}{dx} if x=4cost        0t2πy=16sint\begin{aligned} x &= 4\cos t \ \ \ \ \ \ \ \ 0 \leq t \leq 2\pi\ y &= 16\sin t \end{aligned}

Solution

The derivative is dydx=16cost4sint=4cott\ans{\dfrac{dy}{dx}=\dfrac{16 \cos t}{-4\sin t} = -4\cot t}

Graphs in Polar Coordinates

Recall how polar coordinates are defined.

Ray with magnitude r and angle theta

x=rcosθy=rsinθr=x2+y2θ=tan1yx\begin{aligned} x &= r \cos \theta\ y &= r \sin \theta\ \ r &= \sqrt{x^2+y^2}\ \theta &= \tan^{-1} \dfrac{y}{x} \end{aligned}

We can use this to graph polar equations.

Graph r=3r=3.

Solution

This describes a curve with a constant radius (i.e. a circle centered at the origin with radius 33).

Circle with radius 3 centered at the origin

Graph r=4cosθr = 4 \cos \theta.

Solution

Use the definition of polar coordinates to find xx and yy: x=rcosθ=4cos2θy=rsinθ=4cosθsinθ\begin{aligned} x &= r \cos \theta = 4 \cos^2 \theta\ y &= r \sin \theta = 4 \cos \theta \sin \theta \end{aligned}

Build a table of values to draw the graph: θxy040π422π2003π422π40\begin{array}{c c c} \theta & x & y\ \hline 0 & 4 & 0\ & & \ \dfrac{\pi}{4} & 2 & 2\ & & \ \dfrac{\pi}{2} & 0 & 0\ & & \ \dfrac{3\pi}{4} & 2 & -2\ & & \ \pi & 4 & 0 \end{array}

This graph ends up being a circle centered at (2,0)(2,0) with radius 22.

Circle centered at (2,0) with radius 2

In general,

Graphing Polar Equations with Matlab

  1. For example, to graph r=1+sinθr=1 + \sin θ, follow these steps:
>> theta = 0:0.01:2*pi;
>> r = 1+sin(theta);
>> polarplot(theta,r)

Polar plot

  1. r=3sin2θr = 3 \sin 2\theta:
>> theta = 0:0.01:2*pi;
>> r = 3*sin(2*theta);
>> polarplot(theta,r)

Polar plot

  1. r=cos2θ5,0θ5πr = \cos \dfrac{2\theta}{5}, 0 \leq \theta \leq 5\pi:
>> theta = 0:0.01:5*pi;
>> r = cos(2*theta/5);
>> polarplot(theta,r)

Polar plot

  1. r=sin2θ cos2θr = \sin 2\theta\ \cos 2\theta:
>> theta = 0:0.01:2*pi;
>> r = sin(2*theta).*cos(2*theta);    %Note the use of .* (component-wise multiplication)
>> polarplot(theta,r)

alt text