Firstly, my question is not Python related, but maths A-level related. I don't know how to change that in my profile but I would like to only tutor maths GCSE and potentially A-level. My question: Integrate sin(x)^3 over x=0 and x=pi/2.

I Cant write up my solution without LaTeX (markup language for mathematical text) and can't seem to find a way to use the whiteboard, so I shall try to explain my answer, and show my answer exactly if need be during the interview.
answer:re-write sin3x as sinxsin2x. Then using the identity of (sinx)^2+(cosx)^2=1, make the relevant substitution. I then expanded the brackets of the sinx. I then integrate sinx as normal and for the sinx(cosx)^2 I use the chain rule. I then evaluate the integral at the limits and obtain 2/3 as the answer.

AS
Answered by Arjun S. Python tutor

1155 Views

See similar Python Mentoring tutors

Related Python Mentoring answers

All answers ▸

Write a simple number guessing game, give the user 3 tries to guess a number between 1 and 10


Define a function that takes in the age of the user and adds it to an output sentence such as "You are ..... old".


Write a function that takes a string, and outputs that string formatted in camelcase. (alternating upper and lower case for each character, e.g. cAmElCaSe)


What are recursive functions and when should they be used?


We're here to help

contact us iconContact ustelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

© MyTutorWeb Ltd 2013–2025

Terms & Conditions|Privacy Policy
Cookie Preferences