S6-SA2-0231
What is the Use of Trigonometry in AI/ML?
Grade Level:
Class 10
AI/ML, Physics, Biotechnology, Space Technology, Chemistry, Engineering, Medicine
Definition
What is it?
Trigonometry helps AI/ML understand angles, distances, and shapes in data, especially when dealing with things that have a direction or position. It provides the mathematical tools (like sine, cosine, and tangent) to process and interpret spatial information, which is crucial for many AI tasks.
Simple Example
Quick Example
Imagine an AI trying to recognize if a photo shows a cricket bat or a hockey stick. Both are long objects. Trigonometry helps the AI calculate the angle at which the object is held, or the angle between different parts of the object, which can be a key difference in identifying it correctly. It's like measuring angles with a protractor, but for computers.
Worked Example
Step-by-Step
Let's say an AI needs to figure out if a car is turning left or right based on sensor data. The sensor gives coordinates (x, y) of the car's front and back.
1. **Front of car (P1):** (10, 5)
2. **Back of car (P2):** (7, 3)
3. **Goal:** Find the angle the car is making with the horizontal (x-axis) to determine its direction.
4. **Calculate change in x (delta_x):** x2 - x1 = 7 - 10 = -3
5. **Calculate change in y (delta_y):** y2 - y1 = 3 - 5 = -2
6. **Use arctan (inverse tangent):** The angle (theta) = arctan(delta_y / delta_x)
7. **Calculation:** theta = arctan(-2 / -3) = arctan(0.666...)
8. **Result:** theta is approximately 33.7 degrees (or 213.7 degrees if considering the quadrant). This angle helps the AI understand the car's orientation and turning direction.
Answer: The car is oriented at an angle of approximately 33.7 degrees relative to the positive x-axis (or 213.7 degrees from the origin if considering standard angle conventions).
Why It Matters
Trigonometry is vital for AI in fields like robotics, where robots need to know angles to move their arms, or in self-driving cars to understand road curves. Doctors use AI with trigonometry in medical imaging to analyze organ shapes. Learning this helps you understand how smart tech works and opens doors to careers in AI engineering, data science, and robotics.
Common Mistakes
MISTAKE: Thinking trigonometry is only about triangles on paper. | CORRECTION: Trigonometry is about relationships between angles and sides, which can be applied to any data that has direction or position, even if it doesn't look like a simple triangle.
MISTAKE: Confusing sine, cosine, and tangent and applying them incorrectly. | CORRECTION: Remember SOH CAH TOA (Sine = Opposite/Hypotenuse, Cosine = Adjacent/Hypotenuse, Tangent = Opposite/Adjacent) and practice which ratio to use for specific problems.
MISTAKE: Forgetting that angles can be measured in degrees or radians, and not converting when needed. | CORRECTION: Most AI/ML computations use radians for angles. Always check the required unit and convert if your input is in degrees.
Practice Questions
Try It Yourself
QUESTION: If an AI is tracking a drone flying upwards, and its position changes from (0,0) to (3,4) in 1 second. What is the sine of the angle its path makes with the ground? | ANSWER: The opposite side is 4, the adjacent is 3. The hypotenuse is sqrt(3^2 + 4^2) = sqrt(9 + 16) = sqrt(25) = 5. Sine = Opposite/Hypotenuse = 4/5 = 0.8.
QUESTION: A security camera uses AI to detect objects. If an object is detected at a horizontal distance of 12 meters from the camera and its angle of elevation is 30 degrees, how high is the object off the ground? (tan 30 degrees = 1/sqrt(3) or approx 0.577) | ANSWER: Let height be 'h'. tan(angle) = Opposite/Adjacent. tan(30) = h/12. So, h = 12 * tan(30) = 12 * (1/sqrt(3)) = 12 / 1.732 = 6.928 meters (approx).
QUESTION: An AI for a robotic arm needs to position a tool. The arm has two segments. The first segment is 10 cm long and makes an angle of 45 degrees with the base. The second segment is 8 cm long and makes an angle of 30 degrees *relative to the first segment*. What is the total horizontal distance from the base to the end of the second segment? (cos 45 = 0.707, cos 75 = 0.259) | ANSWER: 1. Horizontal contribution from first segment: 10 * cos(45) = 10 * 0.707 = 7.07 cm. 2. The second segment's absolute angle from the base is 45 + 30 = 75 degrees. 3. Horizontal contribution from second segment: 8 * cos(75) = 8 * 0.259 = 2.072 cm. 4. Total horizontal distance = 7.07 + 2.072 = 9.142 cm.
MCQ
Quick Quiz
Which trigonometric function would an AI most likely use to find the angle of a slope if it knows the vertical rise and horizontal run?
Sine
Cosine
Tangent
Secant
The Correct Answer Is:
C
Tangent (Opposite/Adjacent) directly relates the vertical rise (opposite) to the horizontal run (adjacent), which is exactly what's needed to find the angle of a slope. Sine and Cosine involve the hypotenuse.
Real World Connection
In the Real World
In India, AI-powered drones are used for surveying agricultural fields. These drones use trigonometry to calculate precise distances, heights, and angles from their camera images. This helps farmers understand crop health, land boundaries, and even plan irrigation systems more efficiently, all based on the drone's spatial data analysis.
Key Vocabulary
Key Terms
VECTOR: A quantity with both magnitude (size) and direction | ANGLE OF ELEVATION: The angle measured upwards from a horizontal line to a point above | RADIANS: A unit for measuring angles, where 1 radian is the angle subtended at the center of a circle by an arc equal in length to the radius | SPATIAL DATA: Information that describes the position, shape, and orientation of objects in space | ARCTAN: The inverse tangent function, used to find an angle when you know the ratio of opposite to adjacent sides.
What's Next
What to Learn Next
Next, explore 'Vectors in AI/ML'. Vectors use trigonometry to represent direction and magnitude, which is how AI understands movement and forces. Understanding vectors will help you see how AI combines these mathematical tools to make complex decisions.


