# Example 6

## Goals

This example has two goals:

1. To extend the earlier Example 2 in order to demonstrate how to linearize the basic functional model of the distance between two points; and
2. To demonstrate good practice in documenting your solution to such a problem, i.e. to demonstrate what I am looking for in your written responses to questions of this type.

## Situation

We first looked at the simple case of measuring the distance between two points in Example 2.

There, we were asked to imagine that we wanted to know the coordinates of two unknown points and in a planar 2D coordinate system, and that we had gone out and to further imagine that we had the ability to measure the distance between them.

Then you were asked to write out the functional model and identify what form it took.

Here I want to start with the same situation and I want you to further imagine that you are given some initial approximate coordinates for the two unknown points: , and .

And that we went out and measured the distance between them once to be .

## Problem

Now I want you to do the following:

1. Practice deriving the functional model and put it into one of the three main forms
2. Linearize it

## Sample solution

When responding to a problem like this I would encourage you to have the following sections.

### 1. Sketch

The situation was sketched for us in Example 2, so I’d simply repeat that here:

### 2. Given

Next you need a statement of what you’ve been given in terms and using variables from the course.

We know that the desired parameter vector is made up by the coordinates of the stations and . In other words, , , and will become part of . The vector could be written out in full if you wish.

And the measurements of the distance will become part of the measurement vector .

We’ve also been given that:

and

We also know that:

### 3. Required

Next, re-state what has been required of you. In this case we are asked to:

• Derive the functional model
• Put it in one of the three main forms
• Linearize it

And then, as shown below, solve the problem.

### 4. The functional model

Normally I’d want to see your derivation (or logic behind) the functional model, but we did this in Example 2 so I won’t repeat it here.

The result was as follows:

which we can rewrite in the general form as follows:

And to keep things simple in the following, we’ll define the following shorthand:

E.g. so that our functional model can be written as follows:

### 5. The linearized model

Next I would write that we know that the general linearized form of the functional model for observation equations is as follows:

Where  and are given as follows:

and

In our case , and we get the following for the misclosure vector, :

which is based on values we were given or can easily computed from what we were given.

And we get the following for the design matrix, , by taking the partial derivatives of the left side of the equation in the box above:

Each of the partial derivatives is computed as in the following example:

Similarly, we get the following for the other partial derivatives:

Which are all based on values we were given or can easily compute from what we were given.

So, finally, we can substitute what we’ve found into the general linearized model  to obtain:

Which provides the linearized form of the equation that we were asked to find.

### Notes

Here we know all but the corrections and  which we seek to estimate. But this form of the equation is linear. And it is based on our available approximate values, unlike the original:

which was non-linear and was in terms of the unknown values and .

Lesson Assessments