By the end of this chapter, you will be able to:
Mastering these skills will help you solve real-world engineering problems with confidence and precision.
Cartesian geometry forms the foundation for analyzing spatial relationships in mechatronics systems, where precise positioning and movement control are essential. Understanding the Cartesian plane, gradients of lines, and intercepts enables professionals to model and calculate trajectories, sensor placements, and component alignments in automated machinery and robotic arms. This chapter develops these concepts with practical examples relevant to mechatronics applications in Kenya.
Cartesian geometry uses a coordinate system defined by two perpendicular axes to locate points, lines, and shapes in a plane. The horizontal axis is usually labeled \(x\), and the vertical axis \(y\). Mechatronics technicians use Cartesian geometry to program and simulate robot movements, design control systems, and analyze sensor data.
The Cartesian plane is a two-dimensional surface defined by two perpendicular number lines intersecting at the origin \((0,0)\). Points are located by ordered pairs \((x,y)\) indicating horizontal and vertical positions. This system facilitates precise plotting and measurement of mechanical parts and motion paths in mechatronics.
The equation of a straight line in the Cartesian plane is often expressed as
$$y = mx + c$$
where \(m\) is the gradient (slope) and \(c\) is the \(y\)-intercept.
Example 1: A robotic arm moves in a straight line from point \(A(2,3)\) to point \(B(6,7)\). Find the coordinates of the midpoint \(M\).
Given: Points \(A(2,3)\), \(B(6,7)\)
Midpoint formula:
$$M = (\frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2})$$
Substitute values:
$$M = (\frac{2 + 6}{2}, \frac{3 + 7}{2})$$
Calculate:
$$M = (4, 5)$$
Answer: The midpoint is at (4, 5)
Example 2: Determine if the point \(P(5,8)\) lies on the line \(y = 2x - 1\).
Given: Point \(P(5,8)\), line \(y = 2x - 1\)
Calculate \(y\) for \(x=5\):
$$y = 2(5) - 1$$
$$y = 10 - 1$$
$$y = 9$$
Since \(8 \neq 9\), point \(P\) does not lie on the line.
Answer: Point \(P(5,8)\) is not on the line \(y=2x-1\)
Example 3: Find the distance between points \(C(1,4)\) and \(D(7,1)\).
Given: Points \(C(1,4)\), \(D(7,1)\)
Distance formula:
$$d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}$$
Substitute values:
$$d = \sqrt{(7 - 1)^2 + (1 - 4)^2}$$
Calculate:
$$d = \sqrt{6^2 + (-3)^2}$$
$$d = \sqrt{36 + 9}$$
$$d = \sqrt{45}$$
$$d = 6.708$$ (rounded to 3 decimal places)
Answer: The distance is 6.708 units
Example 4: A sensor moves along the line connecting points \(E(0,0)\) and \(F(4,8)\). Find the equation of the line.
Given: Points \(E(0,0)\), \(F(4,8)\)
Find gradient \(m\):
$$m = \frac{y_2 - y_1}{x_2 - x_1} = \frac{8 - 0}{4 - 0}$$
$$m = \frac{8}{4} = 2$$
Use point-slope form with point \(E\):
$$y, y_1 = m(x, x_1)$$
$$y - 0 = 2(x - 0)$$
$$y = 2x$$
Answer: The equation of the line is \(y = 2x\)
Example 5: Plot the points \(G(3,5)\), \(H(6,9)\), and \(I(9,13)\). Verify if these points lie on the same straight line.
Given: Points \(G(3,5)\), \(H(6,9)\), \(I(9,13)\)
Calculate gradient between \(G\) and \(H\):
$$m_1 = \frac{9 - 5}{6 - 3} = \frac{4}{3} = 1.333$$
Calculate gradient between \(H\) and \(I\):
$$m_2 = \frac{13 - 9}{9 - 6} = \frac{4}{3} = 1.333$$
Since \(m_1 = m_2\), points lie on the same line.
Answer: Points \(G\), \(H\), and \(I\) are collinear
The gradient or slope of a line represents its steepness and direction in the Cartesian plane. It is the ratio of the vertical change to the horizontal change between two points on the line. In mechatronics, gradients help analyze the velocity and acceleration in linear actuators or the inclination of conveyor belts.
The gradient \(m\) between two points \((x_1, y_1)\) and \((x_2, y_2)\) is given by
$$m = \frac{y_2 - y_1}{x_2 - x_1}$$
Example 1: Calculate the gradient of the line connecting points \(A(1,2)\) and \(B(4,8)\).
Given: Points \(A(1,2)\), \(B(4,8)\)
Formula:
$$m = \frac{y_2 - y_1}{x_2 - x_1}$$
Substitute:
$$m = \frac{8 - 2}{4 - 1}$$
Calculate:
$$m = \frac{6}{3} = 2$$
Answer: Gradient \(m = 2\)
Example 2: Find the gradient of a line passing through points \(C(-3,5)\) and \(D(2,-5)\).
Given: Points \(C(-3,5)\), \(D(2,-5)\)
Formula:
$$m = \frac{-5 - 5}{2 - (-3)}$$
Calculate numerator:
$$-5 - 5 = -10$$
Calculate denominator:
$$2 + 3 = 5$$
Calculate gradient:
$$m = \frac{-10}{5} = -2$$
Answer: Gradient \(m = -2\)
Example 3: A linear sensor output increases from 4 units at position \(x=1\) to 16 units at position \(x=5\). Find the gradient of the sensor output with respect to position.
Given: Points \((1,4)\), \((5,16)\)
Formula:
$$m = \frac{16 - 4}{5 - 1}$$
Calculate:
$$m = \frac{12}{4} = 3$$
Answer: Gradient \(m = 3\)
Example 4: Determine the gradient of the line going through points \(E(0,0)\) and \(F(7,14)\).
Given: Points \(E(0,0)\), \(F(7,14)\)
Formula:
$$m = \frac{14 - 0}{7 - 0}$$
Calculate:
$$m = \frac{14}{7} = 2$$
Answer: Gradient \(m = 2\)
Example 5: Find the gradient of a line through points \(G(2,3)\) and \(H(5,3)\). Interpret your result.
Given: Points \(G(2,3)\), \(H(5,3)\)
Formula:
$$m = \frac{3 - 3}{5 - 2} = \frac{0}{3} = 0$$
Answer: Gradient \(m = 0\), indicating a horizontal line
The \(y\)-intercept of a line is the point where the line crosses the \(y\)-axis, i.e., where \(x=0\). It represents the initial value of a dependent variable when the independent variable is zero. In mechatronics, the \(y\)-intercept can indicate sensor baseline readings or initial actuator position before movement.
The \(y\)-intercept \(c\) in the line equation
$$y = mx + c$$
is the value of \(y\) when \(x=0\).
Example 1: Find the \(y\)-intercept of the line \(y = 3x + 5\).
Given: Equation \(y = 3x + 5\)
At \(x=0\):
$$y = 3(0) + 5 = 5$$
Answer: \(y\)-intercept is 5
Example 2: Determine the \(y\)-intercept of the line passing through points \(A(2,7)\) and \(B(4,11)\).
Given: Points \(A(2,7)\), \(B(4,11)\)
Step 1: Calculate gradient \(m\):
$$m = \frac{11 - 7}{4 - 2} = \frac{4}{2} = 2$$
Step 2: Use point-slope form with point \(A\):
$$y, y_1 = m(x, x_1)$$
$$y - 7 = 2(x - 2)$$
Step 3: Expand and rearrange to slope-intercept form:
$$y - 7 = 2x - 4$$
$$y = 2x - 4 + 7$$
$$y = 2x + 3$$
Step 4: \(y\)-intercept \(c = 3\)
Answer: \(y\)-intercept is 3
Example 3: A sensor output is modeled by \(y = -4x + 10\). Find the output when \(x=0\).
Given: Equation \(y = -4x + 10\)
At \(x=0\):
$$y = -4(0) + 10 = 10$$
Answer: \(y\)-intercept is 10
Example 4: Find the equation of the line with gradient 5 that passes through the point \((1,8)\). Then find the \(y\)-intercept.
Given: \(m = 5\), point \((1,8)\)
Step 1: Use point-slope form:
$$y - 8 = 5(x - 1)$$
Step 2: Expand:
$$y - 8 = 5x - 5$$
Step 3: Rearrange:
$$y = 5x - 5 + 8$$
$$y = 5x + 3$$
Step 4: \(y\)-intercept \(c = 3\)
Answer: \(y\)-intercept is 3
Example 5: A linear actuator position \(y\) depends on input voltage \(x\) as \(y = 0.8x - 2\). Find the actuator position at zero input voltage.
Given: Equation \(y = 0.8x - 2\)
At \(x=0\):
$$y = 0.8(0) - 2 = -2$$
Answer: \(y\)-intercept is \(-2\)
Create a free account to open more of this chapter.
Free: practical guides, quick cards, workplace scenarios and more.
Create a free accountThis chapter explored the fundamentals of Cartesian geometry, starting with the Cartesian plane defined by the x and y axes and the concept of positive and negative coordinates. It examined the gradient of a line, including positive, negative, zero, and infinite gradients, as well as the relationships between gradients of parallel and perpendicular lines. The chapter also covered the y-intercept as a key characteristic of linear equations. Linear equations were discussed with a focus on straight lines, parallel lines, and perpendicular lines, highlighting their algebraic and geometric properties. The graphical representation of these linear equations was demonstrated through straight-line graphs. The chapter then introduced polar geometry, explaining the concepts of magnitude and direction, and how to plot graphs in polar form. Finally, it detailed the conversions between linear and polar coordinates and provided methods for solving polar equations, linking the two coordinate systems effectively.
Find the coordinates of a point located 5 units to the right of the origin and 3 units above the origin on the Cartesian plane. (1 mark)
Calculate the gradient of a line passing through points \(A(2, 3)\) and \(B(6, 11)\) in a robotic arm positioning system. (2 marks)
At the start of this chapter we promised you would be able to:
Tick each one you can genuinely do.
So, are you there yet?
You're competent when you can confidently do 50% or more of what this chapter promised.
Sign in to record how you're doing.