Question

Use Matlab plots to determine how many real-valued solutions sin 2x = x has.

Use Matlab plots to determine how many real-valued solutions sin 2x = x has.

Homework Answers

Answer #1

Please upvote :)

clc;clear all
x=-10:0.01:10; %Taking x in range of -10 to 10
y1=x; %Value of y1
y2=sin(2*x);
plot(x,y1,'-r',x,y2,'-b','LineWidth',2) %Plots the curve sin 2x=x
xlabel('x');ylabel('y');legend('y=x','y=sin 2x') %Adds label and legend
grid on
%Clearly the graph intersects at 3 points, so 3 solutions exist to x=sin2x

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Use MATLAB to determine how many elements are in the array sin(-pi/2):0.05:cos(0). Use MATLAB to determine...
Use MATLAB to determine how many elements are in the array sin(-pi/2):0.05:cos(0). Use MATLAB to determine the 10th element.
Write a Matlab script that plots the following functions over 0 ≤ x ≤ 5π: f1(x)...
Write a Matlab script that plots the following functions over 0 ≤ x ≤ 5π: f1(x) = sin2 x − cos x, f2(x) = −0.1 x 3 + 2 x 2 + 10, f3(x) = e −x/π , f4(x) = sin(x) ln(x + 1). The plots should be in four separate frames, but all four frames should be in one figure window. To do this you can use the subplot command to create 2 × 2 subfigures.
2. Let f(x) = sin(2x) and x0 = 0. (A) Calculate the Taylor approximation T3(x) (B)....
2. Let f(x) = sin(2x) and x0 = 0. (A) Calculate the Taylor approximation T3(x) (B). Use the Taylor theorem to show that |sin(2x) − T3(x)| ≤ (2/3)(x − x0)^(4). (C). Write a Matlab program to compute the errors for x = 1/2^(k) for k = 1, 2, 3, 4, 5, 6, and verify that |sin(2x) − T3(x)| = O(|x − x0|^(4)).
1.Find all solutions on the interval [0, 2π) csc (2x)-9=0 2. Rewrite in terms of sin(x)...
1.Find all solutions on the interval [0, 2π) csc (2x)-9=0 2. Rewrite in terms of sin(x) and cos(x) Sin (x +11pi/6)
Use Descartes' Rule of Signs to determine how many positive and how many negative real zeros...
Use Descartes' Rule of Signs to determine how many positive and how many negative real zeros the polynomial can have. Then determine the possible total number of real zeros. (Enter your answers as comma-separated lists.) P(x) = 6x3 − 5x2 + 8x − 1
Construct the Taylor series of f(x) = sin(x) centered at π. Determine how many terms are...
Construct the Taylor series of f(x) = sin(x) centered at π. Determine how many terms are needed to approximate sin(3) within 10^-9. Sum that many terms to make the approximation and compare with the true (calculator) value of sin(3).
Determine the solutions to the equation 2sinx - cos^2 x = sin^2 x for 0≤x≤2pi.
Determine the solutions to the equation 2sinx - cos^2 x = sin^2 x for 0≤x≤2pi.
Matlab equation solve code please show me the code for how to solve x=1-e^-2x in Matlab...
Matlab equation solve code please show me the code for how to solve x=1-e^-2x in Matlab with explanation show me the code and result
Use the discriminant to determine whether the quadratic equation has two unequal real​ solutions, a repeated...
Use the discriminant to determine whether the quadratic equation has two unequal real​ solutions, a repeated real​ solution, or no real​ solution, without solving the equation. 5x^2−9x+6=0 Choose the sentence that describes the number of real solutions to the quadratic equation. A.There are two unequal real solutions.There are two unequal real solutions B.There is no real solution.There is no real solution. C.There is a repeated solution.
Determine conditions on a, b and c so that the following system has solutions: 2x +...
Determine conditions on a, b and c so that the following system has solutions: 2x + y + z = a x − 2y + z = b 3x − y + 2z = c Can you please show all the steps to help me understand how the problem was solved.